Skip to content
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

[BUG] open() "/etc/nginx/botblocker.d/botblocker-nginx-settings.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:191 #531

Open
Danrancan opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels

Comments

@Danrancan
Copy link

Describe the bug

Permissions issue on Ubuntu 20.04 for Raspberry Pi.

To Reproduce

Install Bad bot blocker on Ubuntu 20.04 Raspberry Pi. Then check the nginx error logs. You will find the following errors:

[emerg] 660938#660938: open() "/etc/nginx/botblocker.d/botblocker-nginx-settings.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:191
[emerg] 666173#666173: open() "/etc/nginx/conf.d/globalblacklist.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:192

Expected behavior

I expect there to be no errror.

the Fix:

sudo chmod 644 /etc/nginx/conf.d/globalblacklist.conf && sudo chmod 644 /etc/nginx/botblocker.d/botblocker-nginx-settings.conf

Changing the permissions of the above corresponding files makes the error go away.

  • Operating System:

  • [X ] Ubuntu Server 20.04 for Raspberrry Pi (aarch64)

  • Specify Exact Version of OS: 20.04.6 LTS (Focal Fossa)

Linux my.server.com 5.4.0-1091-raspi #102-Ubuntu SMP PREEMPT Fri Jul 21 15:19:03 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

nginx/1.25.2

[emerg] 660938#660938: open() "/etc/nginx/botblocker.d/botblocker-nginx-settings.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:191
[emerg] 666173#666173: open() "/etc/nginx/conf.d/globalblacklist.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants