Open javierav opened 2 years ago
Do you have SELinux or similar enabled?
Not that I know!
For example, in DigitalOcean droplet with Ubuntu 22.04 LTS
$ apt update
$ apt upgrade
$ wget https://raw.githubusercontent.com/dokku/dokku/v0.27.6/bootstrap.sh
$ DOKKU_TAG=v0.27.6 bash bootstrap.sh
$ ls -la /home/
total 12
drwxr-xr-x 3 root root 4096 Jul 1 13:54 .
drwxr-xr-x 19 root root 4096 Jul 1 13:46 ..
drwxr-x--- 5 dokku dokku 4096 Jul 1 13:55 dokku
As you can see, dokku
directory has rwxr-x---
permissions instead of rwxr-x--x
.
For debug, some printed data generated during dokku install process:
Setting up dokku user
Adding user `dokku' ...
Adding new group `dokku' (1000) ...
Adding new user `dokku' (1000) with group `dokku' ...
Creating home directory `/home/dokku' ...
Copying files from `/etc/skel' ...
docker:x:999:
However, the same procedure in Ubuntu 20.04.4 LTS:
ls -la /home/
total 12
drwxr-xr-x 3 root root 4096 Jul 1 14:13 .
drwxr-xr-x 19 root root 4096 Jul 1 14:06 ..
drwxr-xr-x 4 dokku dokku 4096 Jul 1 14:13 dokku
had the same issue on Ubuntu 22.04 LTS.
some chmod +x dokku
in the home directory made this plugin work again.
thanks @javierav for investigating and pointing to the right direction.
Since Ubuntu 21.04 the home folder for new created users has 750 as default permissions: https://ubuntu.com/blog/private-home-directories-for-ubuntu-21-04
I think this is something that should be checked by dokku during installation and user creation @josegonzalez
Ugh this makes me think we need to actively migrate all the nginx config over to /etc/nginx
somewhere instead of keeping it in the app repo. I'll start working on that, but it's definitely a BC break and a large one for Dokku. Blah.
I ran into the same issue on Ubuntu 22.04.1 LTS.
chmod +x dokku
worked for me as well.
Thanks!
I ran on the same problem. and chmod +x dokku
on home folder do the tricks
same issue, and solved doing cd /home/; chmod +x dokku
as you mentioned above.
Thanks for sharing, and hopefully it will be solved soon :)
Steps to Reproduce
Actual Results
Error 500 when trying to access to app. Inspecting the nginx error logs I get the following message:
Expected Results
HTTP Auth enabled on site.
How to resolve
After investigating the issue, I found that the folder
/home/dokku
hasrwxr-x---
permissions instead ofrwxr-x--x
. If I change the permissions and then enable or create the http auth, its works as expected.Environment Information
dokku report APP_NAME
outputHow (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Dokku version 0.27.6 installed using bootstrap.sh on a fresh installation of Ubuntu 22.04 LTS on physical server.
Additional information
The nginx configuration (if applicable) via
dokku nginx:show-config APP_NAME
Content of /home/dokku/sidekiq/nginx.conf.d/http-auth.conf