plesk/docker

In Dokku: DEBUGGER DETECTED... Bye!

Closed this issue · 3 comments

The Problem

Using the 12.0 Dockerfile inside the Docker manager dokku results in this fatal error:

DEBUGGER DETECTED... Bye!
Killed

The Ubuntu Server Setup

Ubuntu 14.04 LTS "Trusty Tahr" Minimal: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/mini.iso

Note: Install SSH server during setup or configure manually.

Ubuntu Configuration

sudo passwd
su

apt-get update
sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
wget https://raw.githubusercontent.com/progrium/dokku/v0.4.4/bootstrap.sh
DOKKU_TAG=v0.4.4 bash bootstrap.sh
reboot

Dockerfile Upload from Client Machine

NOTE: This assumes that 192.168.1.100 is the server IP address.

scp ~/.ssh/id_rsa.pub root@192.168.1.100:
ssh root@192.168.1.100 'cat id_rsa.pub | sshcommand acl-add dokku test'

mkdir test
cd test
wget https://raw.githubusercontent.com/plesk/docker/master/12.0/Dockerfile
git init .
git add Dockerfile
git commit -m 'test'
git remote add test dokku@192.168.1.100:test
git push -v --set-upstream test master

Output

[...]
===> Installing psa database
Trying to check psa database... Trying to find psa database... not found
Trying to install initial psa database... done
Trying to set psa database version to 012000018... done
Trying to insert Hostname to the MySQL database... done
done
DEBUGGER DETECTED... Bye!
Killed

ERROR while trying to SMB database not created
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

***** problem report *****
ERROR while trying to SMB database not created
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

ERROR: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.
remote: The command '/bin/sh -c apt-get update && apt-get install -y wget && wget -q -O /root/ai http://autoinstall.plesk.com/plesk-installer && chmod +x /root/ai && /root/ai --select-product-id=plesk --select-release-id=PLESK_12_0_18 --install-component common --install-component panel --install-component psa-autoinstaller --install-component phpgroup --install-component sitebuilder --install-component web-hosting --install-component mod_fcgid --install-component proftpd --install-component webservers --install-component nginx --install-component mysqlgroup --install-component php5.6 && plesk sbin ch_admin_passwd' returned a non-zero code: 1
To dokku@192.168.1.100:test
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@192.168.1.100:test'

More details:

If I disable apparmor on the host machine by adding apparmor=0 to the linux ... boot commands in Ubuntu's /boot/grub/grub.cfg file, the Plesk build/install succeeds. I will consider this to be a work-around. Is there a way to run Plesk with apparmor?

Unfortunately there are problems with Plesk installer and AppArmor both for 12.0 and 12.5 version. I've added information about AppArmor issue to the list of known issues (README.md) Thank you.

Issue has been fixed in scope of Plesk Onyx (latest image).