Closed wdiechmann closed 2 years ago
@wdiechmann can you check the output of dokku-pro config
and see if your license and everything is setup properly?
Also, feel free to join us in chat (discord/irc/slack) for further help. I'm savant
.
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 😉 )
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.
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 ❤️
Note: I changed my screen resolution and saw it that way :D
that trick went directly into my bag! thx!
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:Where as dokku-pro.target reports as expected
How reproducible
Not sure what other 'system information' you will need?
Steps to Reproduce
Actual Results
systemctl status dokku-pro.service
reports an error and is not runningExpected Results
Certainly would have expected
systemctl status dokku-pro.service
to report no errorsEnvironment Information
Have no apps deployed yet - obviously ;)
dokku report APP_NAME
outputn/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
dokku trace:on
Don't think this will help but here are the last few lines of the console output: