[Bug 27701] New: Can't open __LOG_DIR__/opac-error.log (No such file or directory)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 Bug ID: 27701 Summary: Can't open __LOG_DIR__/opac-error.log (No such file or directory) Change sponsored?: --- Product: Koha Version: 20.05 Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: costalc@gmail.com QA Contact: testopia@bugs.koha-community.org We have a Koha server installed with 5 instances. All instances are set with plack. After upgrading from 19.11 to 20.05 this message is logged: Error while loading /etc/koha/plack.psgi: Can't open __LOG_DIR__/opac-error.log (No such file or directory) at /usr/share/perl5/Log/Log4perl/Appender/File.pm line 143. This error (plack-error.log) impacts ONLY ONE INSTANCE that, from this moment on, can't be run anymore under plack (it keeps waiting). Stopping and disabling plack for that instance resolves the running but setting it in a very slow mode. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #1 from David Cook <dcook@prosentient.com.au> --- Sounds like a bad log4perl.conf file. Can you share the /etc/koha/sites/<instance>/log4perl.conf file for your problematic instance? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 --- Comment #2 from Claudio <costalc@gmail.com> --- Created attachment 116869 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116869&action=edit log4perl -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 --- Comment #3 from Claudio <costalc@gmail.com> --- Hi David! See file attached please. Thanks! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- That is very weird... If you replace __LOG_DIR__ with /var/log/koha/fbarcelo and run "koha-plack --stop fbarcelo" and "koha-plack --start fbarcelo", you should be fine. It looks to me like you must have had a bad config file for quite some time, but the upgrade to 20.05 made it more noticeable. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 --- Comment #5 from Claudio <costalc@gmail.com> --- Thank you so much David! I've made the changes and it works fine again. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #6 from David Cook <dcook@prosentient.com.au> --- (In reply to Claudio from comment #5)
Thank you so much David! I've made the changes and it works fine again.
That's great to hear. I'll close this one for now, but I'll be keeping my eyes open for similar reports... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 Magnus Enger <magnus@libriotech.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@libriotech.no --- Comment #7 from Magnus Enger <magnus@libriotech.no> --- (In reply to David Cook from comment #6)
I'll close this one for now, but I'll be keeping my eyes open for similar reports...
I have seen this too. On a server with lots of instances, one of them had this problem. I must confess I fixed it without investigating further. This should reveal any instances that have this problem: $ sudo grep "__LOG_DIR__" /etc/koha/sites/*/log4perl.conf -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27701 --- Comment #8 from David Cook <dcook@prosentient.com.au> --- (In reply to Magnus Enger from comment #7)
I have seen this too. On a server with lots of instances, one of them had this problem. I must confess I fixed it without investigating further.
Good to know! Based on the error, my guess is that there must've been a bug in the past that made the log4perl.conf not get generated correctly, but it went unnoticed. So in theory it shouldn't affect anyone that wasn't affected by that bug, but it's tough to know who is affected without checking everyone. That said... maybe it is worth writing some kind of patch to look for and fix this problem... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org