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

apache2: could not open error log file /var/log/apache2/error.log #17

Open
MirisWisdom opened this issue Apr 4, 2023 · 3 comments · Fixed by #18
Open

apache2: could not open error log file /var/log/apache2/error.log #17

MirisWisdom opened this issue Apr 4, 2023 · 3 comments · Fixed by #18

Comments

@MirisWisdom
Copy link

MirisWisdom commented Apr 4, 2023

Latest Docker image fails on initialisation with the following error:

(13)Permission denied: AH00091: apache2: could not open error log file /var/log/apache2/error.log.

Admittedly, I haven't updated the Docker image in a while, so it's tricky to decide when this issue would've started appearing. Could 7af92fb have unintentionally introduced it?

No volumes are used for the container, and also made sure that the container has been cleared; however, sadly the error persists.

Tip: A quick hack for fixing this, is to set the APACHE_LOG_DIR value to something like /tmp/.

@eugene-davis
Copy link
Contributor

I started seeing this on the new package build for 2.6.0 based on 80b526b but there's nothing in this change that should have caused it. I'm looking into it now.

@nagimov
Copy link
Owner

nagimov commented Apr 6, 2023

@eugene-davis thanks for fixing this!
@MirisWisdom please confirm

@MirisWisdom
Copy link
Author

Beautiful -- all seems to be working now. Many thanks @eugene-davis for the quick fix!

% docker-compose stop agendav ; docker container prune -f

Stopping agendav ... 
Stopping agendav ... done
Deleted Containers:
ab3d9bda30b671323bf89d03ee9be09f639a2fa3db509b826635894cb6281dc4

Total reclaimed space: 185.7kB

% docker-compose pull agendav

Pulling agendav ... done

% docker-compose up agendav

Creating agendav ... done
Attaching to agendav
agendav              | Start webserver
agendav              | [Thu Apr 06 08:51:53.486251 2023] [mpm_prefork:notice] [pid 44] AH00163: Apache/2.4.56 (Debian) PHP/8.2.4 configured -- resuming normal operations
agendav              | [Thu Apr 06 08:51:53.486269 2023] [core:notice] [pid 44] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'

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

Successfully merging a pull request may close this issue.

3 participants