-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem enabling basic auth. permission issue in default config? #348
Comments
Hi! I looked into it. There were 2 causes actually:
In order to make it work, you need to:
Thanks! |
Thanks so much for the swift response. Just tested and works like a charm now! I am just using a bind mount in the ./ so what permission would now be necessary to fix this following ?:
Thanks so much for taking the time ! |
Inside the https-portal container I tried in /var/lib/https-portal/git.website.com/production/ but for some reason I still get the permission denied. I restarted the container everytime as well to be sure. Also tried to create it manually with
|
@SteveLTN I have over the the last week configured multiple containers but none of them works with basic auth. I get the permission denied on all of them and I really tried a lot :-) I am quite an experienced docker user but I am not able to solve this so far.
I also tried just not mounting the htaccess at all which should work immediately. The file exists, the basic auth login appears but as soon as I enter the correct credentials the "permission denied" happens serverside in the logs. I also checked the content and it looks ok. chmod 644 on the htaccess and 755 on the folder itself did not help either. |
I think the For when you do not do not mount external |
I have added
I tried chmod 777 on htaccess and the production folder. also still : https-portal-1 | 2024/03/17 20:10:12 [crit] 322#322: *2 open() "/var/lib/https-portal/oob.example.lol/production/htaccess" failed (13: Permission denied), client: 146.70.117.214, server: oob.example.lol, request: "GET / HTTP/2.0", host: "oob.example.lol", referrer: "https://oob.example.lol/" I made sure to recreate the container everytime. This issues persists and I beg you to take another look. Usually these permission issues are really easy to fix. I never encountered such hardship before (in dockerland.) Thanks so much for taking the time @SteveLTN |
I went with a named volume now and it works. this is really the weirdest issue I've encountered in a while :-) Can you even reproduce it when using a bind mount? |
gitlab-https-portal-1 | 2024/01/16 14:04:27 [crit] 319#319: *14 open() "/var/lib/https-portal/git.mypage.com/production/htaccess" failed (13: Permission denied), client: xxx.xxx.xxx, server: git.mypage.com, request: "GET / HTTP/2.0", host: "git.mypage.com"
Running into this as soon as I enable basic auth.
here is my compose:
The text was updated successfully, but these errors were encountered: