dokku / dokku-pro-issues

Temporary location for issues with installing or using dokku pro
1 stars 0 forks source link

Dokku Pro installation issue #3

Closed wdiechmann closed 2 years ago

wdiechmann commented 2 years ago

Description of problem

Purchased the Dokku-Pro (I can verify by forwarding the key in any channel you like) and installed Dokku latest by following the installation description and then followed the installation description for Dokku-Pro

Running systemctl status dokku-pro.service does, however, give this answer:

● dokku-pro.service - web process for dokku-pro
     Loaded: loaded (/etc/systemd/system/dokku-pro.service; static; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2022-04-20 14:26:58 UTC; 4s ago
    Process: 53372 ExecStartPre=/usr/bin/mkdir -p /var/lib/dokku/data/pro/db (code=exited, status=0/SUCCESS)
    Process: 53373 ExecStart=/usr/bin/dokku-pro server (code=exited, status=1/FAILURE)
   Main PID: 53373 (code=exited, status=1/FAILURE)

Where as dokku-pro.target reports as expected

root@srv005415:~# systemctl status dokku-pro.target
● dokku-pro.target
     Loaded: loaded (/etc/systemd/system/dokku-pro.target; disabled; vendor preset: enabled)
     Active: active since Wed 2022-04-20 14:26:00 UTC; 1min 29s ago

How reproducible

root@srv005415:/etc# uname -a
Linux docker.alco.company 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Not sure what other 'system information' you will need?

Steps to Reproduce

root@srv005415:/etc# hostname
docker.alco.company
root@srv005415:/etc# cd
root@srv005415:~# wget https://raw.githubusercontent.com/dokku/dokku/v0.27.0/bootstrap.sh;
--8<--
2022-04-20 11:52:33 (97.0 MB/s) - ‘bootstrap.sh’ saved [9562/9562]
root@srv005415:~# DOKKU_TAG=v0.27.0 bash bootstrap.sh
Preparing to install v0.27.0 from https://github.com/dokku/dokku.git...
--8<--
Selecting previously unselected package dokku.
(Reading database ... 153891 files and directories currently installed.)
Preparing to unpack .../dokku_0.27.0_amd64.deb ...
Error: keyfile '/root/.ssh/id_rsa.pub' not found.
       To deploy, you will need to generate a keypair and add with 'dokku ssh-keys:add'.
Unpacking dokku (0.27.0) ...
--8<--
Pruning dangling images
Error response from daemon: invalid reference format: repository name must be lowercase
Pruning unused gliderlabs/herokuish images
"docker rmi" requires at least 1 argument.
See 'docker rmi --help'.

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]

Remove one or more images
--8<--
0 old database entries were purged.
Setting up dokku user
Adding user `dokku' ...
Adding new group `dokku' (1001) ...
Adding new user `dokku' (1001) with group `dokku' ...
Creating home directory `/home/dokku' ...
Copying files from `/etc/skel' ...
docker:x:998:
--8<--
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
....................................+................................................................................................................................................................................................................................................................................................................................................+........+....................................................................+...............................+........................................................................+..................................................+...+......................................+..............+.............................................................................................+..........................................................................................+................+.........................................+.....................................................................................+....................................................................................................................................+.....................................+..............................................+........................................+...+................................................+.......................................................+.........................................................................+.....................................................................................+......................................................................................................................+................................................................................................................+.................................................................................................................................+....................................................................................................................................................+.......................................................................................................................................+......................................................................................................+..........................................+............................+...............................................................................................................+......+.............................+..........................................+..................................................................................+........+.....................................................................................................................................................+...............................................................................+.................................................................................................+...................................................................................................+............+............................................+..........................................................................................................................................................................................................................................................+..........+..................................................................................................................................................+..........+..........+......................................................................+.................................................................................................+.................................................+....................+...................................................................+.............................................................................................+..+.....................................................................................+............+..................................................................+....................+.+................................................................................................................................................+..........................................................+..................................................................................+.............................+.............................................................................................................................................................................................................................................+..................................................................+...........................................+..+...........................................................................................................................................................................................................................................................................................+............++*++*++*++*
Adding user dokku to group adm
 !     You haven't deployed any applications yet
Starting nginx (via systemctl): nginx.service.
-----> Priming bash-completion cache
Ensure proper sshcommand path
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.16) ...
Processing triggers for man-db (2.9.1-1) ...
--> Running post-install dependency installation

 ! Setup a user's ssh key for deployment by passing in the public ssh key as shown:

     echo 'CONTENTS_OF_ID_RSA_PUB_FILE' | dokku ssh-keys:add admin

root@srv005415:~# dokku domains:set-global docker.alco.company
-----> Set docker.alco.company
root@srv005415:~# vi /etc/default/dokku-pro
root@srv005415:~# mkdir /etc/dokku-pro
root@srv005415:~# mv product.key /etc/dokku-pro/license.key
root@srv005415:~# dpkg -i ~/dokku-pro_1.1.2_amd64.deb 
Selecting previously unselected package dokku-pro.
(Reading database ... 154738 files and directories currently installed.)
Preparing to unpack .../root/dokku-pro_1.1.2_amd64.deb ...
Unpacking dokku-pro (1.1.2) ...
Setting up dokku-pro (1.1.2) ...
root@srv005415:~# systemctl daemon-reload
root@srv005415:~# systemctl start dokku-pro.target
root@srv005415:~# systemctl start dokku-pro.service
root@srv005415:~# ps ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:05 /sbin/init maybe-ubiquity
      2 ?        S      0:00 [kthreadd]
      3 ?        I<     0:00 [rcu_gp]
      4 ?        I<     0:00 [rcu_par_gp]
      5 ?        I      0:02 [kworker/0:0-mm_percpu_wq]
      6 ?        I<     0:00 [kworker/0:0H-events_highpri]
      9 ?        I<     0:00 [mm_percpu_wq]
     10 ?        S      0:00 [rcu_tasks_rude_]
     11 ?        S      0:00 [rcu_tasks_trace]
     12 ?        S      0:00 [ksoftirqd/0]
     13 ?        I      0:00 [rcu_sched]
     14 ?        S      0:00 [migration/0]
     15 ?        S      0:00 [idle_inject/0]
     16 ?        S      0:00 [cpuhp/0]
     17 ?        S      0:00 [cpuhp/1]
     18 ?        S      0:00 [idle_inject/1]
     19 ?        S      0:00 [migration/1]
     20 ?        S      0:00 [ksoftirqd/1]
     22 ?        I<     0:00 [kworker/1:0H-events_highpri]
     23 ?        S      0:00 [cpuhp/2]
     24 ?        S      0:00 [idle_inject/2]
     25 ?        S      0:00 [migration/2]
     26 ?        S      0:00 [ksoftirqd/2]
     28 ?        I<     0:00 [kworker/2:0H-events_highpri]
     29 ?        S      0:00 [cpuhp/3]
     30 ?        S      0:00 [idle_inject/3]
     31 ?        S      0:00 [migration/3]
     32 ?        S      0:00 [ksoftirqd/3]
     34 ?        I<     0:00 [kworker/3:0H-events_highpri]
     35 ?        S      0:00 [cpuhp/4]
     36 ?        S      0:00 [idle_inject/4]
     37 ?        S      0:00 [migration/4]
     38 ?        S      0:00 [ksoftirqd/4]
     40 ?        I<     0:00 [kworker/4:0H-events_highpri]
     41 ?        S      0:00 [cpuhp/5]
     42 ?        S      0:00 [idle_inject/5]
     43 ?        S      0:00 [migration/5]
     44 ?        S      0:00 [ksoftirqd/5]
     46 ?        I<     0:00 [kworker/5:0H-events_highpri]
     47 ?        S      0:00 [kdevtmpfs]
     48 ?        I<     0:00 [netns]
     49 ?        I<     0:00 [inet_frag_wq]
     50 ?        S      0:00 [kauditd]
     52 ?        S      0:00 [khungtaskd]
     53 ?        S      0:00 [oom_reaper]
     54 ?        I<     0:00 [writeback]
     55 ?        S      0:03 [kcompactd0]
     56 ?        SN     0:00 [ksmd]
     57 ?        SN     0:00 [khugepaged]
    107 ?        I<     0:00 [kintegrityd]
    108 ?        I<     0:00 [kblockd]
    109 ?        I<     0:00 [blkcg_punt_bio]
    110 ?        I<     0:00 [tpm_dev_wq]
    111 ?        I<     0:00 [ata_sff]
    112 ?        I<     0:00 [md]
    113 ?        I<     0:00 [edac-poller]
    114 ?        I<     0:00 [devfreq_wq]
    115 ?        S      0:00 [watchdogd]
    117 ?        I<     0:00 [kworker/1:1H-kblockd]
    119 ?        S      0:00 [kswapd0]
    120 ?        S      0:00 [ecryptfs-kthrea]
    122 ?        I<     0:00 [kthrotld]
    123 ?        I<     0:00 [acpi_thermal_pm]
    126 ?        S      0:00 [scsi_eh_0]
    127 ?        I<     0:00 [scsi_tmf_0]
    128 ?        S      0:00 [scsi_eh_1]
    129 ?        I<     0:00 [scsi_tmf_1]
    130 ?        I<     0:00 [vfio-irqfd-clea]
    131 ?        I<     0:00 [mld]
    132 ?        I<     0:00 [kworker/4:1H-kblockd]
    133 ?        I<     0:00 [ipv6_addrconf]
    143 ?        I<     0:00 [kstrp]
    146 ?        I<     0:00 [zswap-shrink]
    147 ?        I<     0:00 [kworker/u257:0]
    153 ?        I<     0:00 [charger_manager]
    175 ?        I<     0:00 [kworker/2:1H-kblockd]
    188 ?        I<     0:00 [kworker/5:1H-kblockd]
    209 ?        I<     0:00 [cryptd]
    221 ?        I<     0:00 [kworker/3:1H-kblockd]
    232 ?        I<     0:00 [kworker/0:1H-kblockd]
    313 ?        S      0:00 [jbd2/vda2-8]
    314 ?        I<     0:00 [ext4-rsv-conver]
    371 ?        S<s    0:01 /lib/systemd/systemd-journald
    391 ?        I<     0:00 [ipmi-msghandler]
    403 ?        Ss     0:00 /lib/systemd/systemd-udevd
    424 ?        Ss     0:00 /lib/systemd/systemd-networkd
    567 ?        I<     0:00 [kaluad]
    568 ?        I<     0:00 [kmpath_rdacd]
    569 ?        I<     0:00 [kmpathd]
    570 ?        I<     0:00 [kmpath_handlerd]
    571 ?        SLsl   0:12 /sbin/multipathd -d -s
    597 ?        Ssl    0:00 /lib/systemd/systemd-timesyncd
    642 ?        Ssl    0:00 /sbin/dhclient -1 -4 -v -i -pf /run/dhclient.eth2.pid -lf /var/lib/dhcp/dhclient.eth2.leases -I -df /var/lib/dhcp/dhclient6.eth2.leases eth2
    643 ?        Ssl    0:00 /sbin/dhclient -1 -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
    662 ?        Ssl    0:02 /usr/lib/accountsservice/accounts-daemon
    663 ?        Ss     0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
    667 ?        Ssl    0:03 /usr/sbin/irqbalance --foreground
    671 ?        Ss     0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
    673 ?        Ssl    0:00 /usr/lib/policykit-1/polkitd --no-debug
    681 ?        Ss     0:00 /lib/systemd/systemd-logind
    682 ?        Ssl    0:00 /usr/lib/udisks2/udisksd
    696 ?        Ssl    0:00 /usr/sbin/ModemManager
    753 ?        Ss     0:00 /lib/systemd/systemd-resolved
    838 ?        Ss     0:00 /usr/sbin/cron -f
    843 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
    846 ?        Ss     0:00 /usr/sbin/atd -f
    852 ?        Ss     0:01 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
    871 tty1     Ss+    0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
    886 ?        Ss     0:09 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
   6009 ?        I      0:00 [kworker/2:0-events]
   9842 ?        I      0:03 [kworker/4:2-events]
  10963 ?        Ss     0:00 sshd: root@pts/0
  10966 ?        Ss     0:00 /lib/systemd/systemd --user
  10967 ?        S      0:00 (sd-pam)
  11070 pts/0    Ss     0:00 -bash
  13234 ?        Ssl    0:22 /usr/bin/containerd
  13243 ?        I      0:00 [kworker/3:2-mm_percpu_wq]
  13249 ?        I      0:00 [kworker/5:1-mm_percpu_wq]
  13386 ?        Ssl    0:52 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
  13401 ?        S      0:00 bpfilter_umh
  15853 ?        Ss     0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
  15854 ?        S      0:00 nginx: worker process
  15855 ?        S      0:00 nginx: worker process
  15856 ?        S      0:00 nginx: worker process
  15857 ?        S      0:00 nginx: worker process
  15858 ?        S      0:00 nginx: worker process
  15859 ?        S      0:00 nginx: worker process
  16050 ?        I      0:00 [kworker/1:2-events]
  23479 ?        Ssl    0:00 /usr/sbin/rsyslogd -n -iNONE
  40195 ?        I      0:00 [kworker/3:0-cgroup_destroy]
  42802 ?        I      0:00 [kworker/5:2-cgroup_destroy]
  46274 ?        I      0:00 [kworker/0:1-cgroup_destroy]
  48867 ?        I      0:00 [kworker/2:1-cgroup_destroy]
  48870 ?        I      0:00 [kworker/u256:0-events_unbound]
  50619 ?        I      0:00 [kworker/u256:2-events_unbound]
  51486 ?        I      0:00 [kworker/1:0-cgroup_destroy]
  52424 ?        I      0:00 [kworker/4:0-cgroup_destroy]
  52427 ?        I      0:00 [kworker/u256:1-events_unbound]
  53333 ?        I      0:00 [kworker/1:1-events]
  53346 ?        I      0:00 [kworker/3:1-events]
  53347 pts/0    R+     0:00 ps ax
root@srv005415:~# systemctl status dokku-pro.service
● dokku-pro.service - web process for dokku-pro
     Loaded: loaded (/etc/systemd/system/dokku-pro.service; static; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2022-04-20 14:26:58 UTC; 4s ago
    Process: 53372 ExecStartPre=/usr/bin/mkdir -p /var/lib/dokku/data/pro/db (code=exited, status=0/SUCCESS)
    Process: 53373 ExecStart=/usr/bin/dokku-pro server (code=exited, status=1/FAILURE)
   Main PID: 53373 (code=exited, status=1/FAILURE)
root@srv005415:~# systemctl status dokku-pro.target
● dokku-pro.target
     Loaded: loaded (/etc/systemd/system/dokku-pro.target; disabled; vendor preset: enabled)
     Active: active since Wed 2022-04-20 14:26:00 UTC; 1min 29s ago

Apr 20 14:26:00 docker.alco.company systemd[1]: Reached target dokku-pro.target.

Actual Results

systemctl status dokku-pro.service reports an error and is not running

Expected Results

Certainly would have expected systemctl status dokku-pro.service to report no errors

Environment Information

Have no apps deployed yet - obviously ;)

dokku report APP_NAME output

n/a

How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:

Dokku-pro was installed on a virtual machine on servicepoint.dk

Additional information

Don't think this will help but here are the last few lines of the console output:

root@srv005415:/etc# dokku trace:on
-----> Enabling trace mode
root@srv005415:/etc# systemctl start dokku-pro.service
root@srv005415:/etc# dokku trace:off
+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=docker
+ DOCKER_BIN=docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ export DOKKU_CNB_BUILDER=heroku/buildpacks
+ DOKKU_CNB_BUILDER=heroku/buildpacks
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_SYSTEM_GROUP=dokku
+ DOKKU_SYSTEM_GROUP=dokku
+ export DOKKU_SYSTEM_USER=dokku
+ DOKKU_SYSTEM_USER=dokku
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_PID=68661
+ DOKKU_PID=68661
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export 'DOKKU_GLOBAL_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args trace:off
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ local flags
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ trace:off == \-\-\a\p\p ]]
+ [[ trace:off =~ ^--.* ]]
+ next_index=2
+ [[ -z '' ]]
++ echo -e ''
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+ export DOKKU_GLOBAL_FLAGS=
+ DOKKU_GLOBAL_FLAGS=
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ trace:off =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
+ [[ '' == \t\r\u\e ]]
++ LC_ALL=C
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ unset TMP TMPDIR TEMP TEMPDIR
+ [[ ! trace:off =~ plugin:* ]]
+ [[ trace:off != \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ trace:off != \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
++ id -un
+ export SSH_USER=root
+ SSH_USER=root
+ sudo -u dokku -E -H /usr/bin/dokku trace:off
+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=docker
+ DOCKER_BIN=docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ DOKKU_IMAGE=gliderlabs/herokuish:latest-20
+ export DOKKU_CNB_BUILDER=heroku/buildpacks
+ DOKKU_CNB_BUILDER=heroku/buildpacks
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_SYSTEM_GROUP=dokku
+ DOKKU_SYSTEM_GROUP=dokku
+ export DOKKU_SYSTEM_USER=dokku
+ DOKKU_SYSTEM_USER=dokku
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_PID=68671
+ DOKKU_PID=68671
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export 'DOKKU_GLOBAL_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args trace:off
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ local flags
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ trace:off == \-\-\a\p\p ]]
+ [[ trace:off =~ ^--.* ]]
+ next_index=2
+ [[ -z '' ]]
++ echo -e ''
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+ export DOKKU_GLOBAL_FLAGS=
+ DOKKU_GLOBAL_FLAGS=
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ trace:off =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
+ [[ '' == \t\r\u\e ]]
++ LC_ALL=C
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ trace:off =~ ^plugin:.* ]]
+ [[ trace:off == \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ trace:off == \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
+ [[ -n '' ]]
+ dokku_auth trace:off
+ declare 'desc=calls user-auth plugin trigger'
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
++ wc -l
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth
+ local user_auth_count=1
+ [[ 1 == 0 ]]
+ [[ 1 == 1 ]]
+ [[ -f /var/lib/dokku/plugins/enabled/20_events/user-auth ]]
+ return 0
+ case "$1" in
+ execute_dokku_cmd trace:off
+ declare 'desc=executes dokku sub-commands'
+ local PLUGIN_NAME=trace:off
+ local PLUGIN_CMD=trace:off
+ local implemented=0
+ local script
+ argv=("$@")
+ local argv
+ case "$PLUGIN_NAME" in
++ readlink -f /var/lib/dokku/plugins/enabled/trace
+ [[ /var/lib/dokku/core-plugins/available/trace == *core-plugins* ]]
+ [[ trace:off == \t\r\a\c\e\:\o\f\f ]]
+ shift 1
+ [[ -n '' ]]
+ set -- trace:off
+ [[ -x /var/lib/dokku/plugins/enabled/trace:off/subcommands/default ]]
+ [[ -x /var/lib/dokku/plugins/enabled/trace:off/subcommands/trace:off ]]
+ [[ -x /var/lib/dokku/plugins/enabled/trace/subcommands/off ]]
+ [[ -n off ]]
+ /var/lib/dokku/plugins/enabled/trace/subcommands/off trace:off
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ cmd-trace-off trace:off
+ declare 'desc=disables trace mode'
+ declare cmd=trace
+ [[ trace:off == \t\r\a\c\e ]]
+ dokku_log_info1 'Disabling trace mode'
+ declare 'desc=log info1 formatter'
+ echo '-----> Disabling trace mode'
-----> Disabling trace mode
+ [[ -d /home/dokku/.dokkurc ]]
+ rm -f /home/dokku/.dokkurc/DOKKU_TRACE
+ implemented=1
+ [[ 1 -eq 0 ]]
+ [[ 1 -eq 0 ]]
+ exit 0
root@srv005415:/etc# 
josegonzalez commented 2 years ago

@wdiechmann can you check the output of dokku-pro config and see if your license and everything is setup properly?

josegonzalez commented 2 years ago

Also, feel free to join us in chat (discord/irc/slack) for further help. I'm savant.

wdiechmann commented 2 years ago

well, that explains - at least to some degree - why the service does not start!

But I fail to see what's the issue - other than the file being owned by root - but it does not warn against that in the documentation?

root@docker:~# dokku-pro config
{"level":"error","error":"Can't separate key from value","file":"/etc/default/dokku-pro","time":"2022-04-20T18:25:07+02:00","message":"Failed to load config file"}
{"level":"fatal","error":"required key API_JWT_ACCESSSECRET missing value","time":"2022-04-20T18:25:07+02:00","message":"Error creating AppConfig"}
root@docker:~# ls -la /etc/default/dokku-pro
-rw-r--r-- 1 root root 655 Apr 20 16:35 /etc/default/dokku-pro
root@docker:~# cat /etc/default/dokku-pro
API_JWT_ACCESSSECRET=asdfghjklqwertyu
API_JWT_REFRESHSECRET=asdfghjklqwertyuqweqwe
ROOT_TOKEN=asdfghjklqwertyukjhjkjh
LICENSE_KEY=key/ZXlKaGJHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXMmJmxw==

(I anonymized the license_key on purpose - the secrets will get a fresh diper in a minute 😉 )

josegonzalez commented 2 years ago

Mind jumping on slack? Seems like you're hitting a parse error in godotenv, which I use to parse the exports file.

Perms on the file are fine.

wdiechmann commented 2 years ago

So this all came down to the most dreaded of all - the infamous newline in string !!

TIL: don't take your terminal window's word for it (ie resizing your terminal window may not reveal newline char issues)

happily @josegonzalez had my back and didn't fall for cheap tricks easily ❤️

josegonzalez commented 2 years ago

Note: I changed my screen resolution and saw it that way :D

wdiechmann commented 2 years ago

that trick went directly into my bag! thx!