webdevops / Dockerfile

:package: Dockerfiles from WebDevOps for PHP, Apache and Nginx
https://webdevops.io/projects/dockerfiles/
MIT License
1.68k stars 493 forks source link

Apache /docker.stdout busy or permission errors #156

Open mblaschke opened 7 years ago

mblaschke commented 7 years ago

There are at least 2 reports from problems with /docker.stdout due to permission errors:

app_1         | [Mon Jan 09 09:02:18.518789 2017] [log_config:error] [pid 1984:tid 140401578567552] (13)Permission denied: AH00649: could not open transfer log file /docker.stdout.
app_1         | AH00015: Unable to open logs

also see https://github.com/laradock/laradock/issues/505

mblaschke commented 7 years ago

:white_check_mark: Ubuntu 16.04 with btrfs :white_check_mark: Dinghy with aufs

mblaschke commented 7 years ago

Switched from file to pipe in syslog, maybe the problem is fixed now. We still can't reproduce the isssue

julrich commented 7 years ago

That might help with a warning we're seeing on some instances, a lot, too: [SYSLOG] syslog-ng[20]: WARNING: you are using the file driver, underlying file is a FIFO, it should be used by pipe(); filename='/docker.stdout'

julrich commented 7 years ago

I see, that's exactly what's in the Changelog, too :) https://github.com/webdevops/Dockerfile/commit/c86b5d5348a6f2decc508f27c706158a4c1da6b9#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR8