Upgrade to 21.11 Fails
Greetings, Yes, I'm slow on the uptake, I've been running oldoldstable for some time now. With the release of 22.11, it's time for me to move up. My system was installed from deb packages under Debian 10, and has been updating fine. After an update (with no error messages), I find I am unable to access either the OPAC or the admin interfaces. Both give an "Internal Server Error" message, with a note that a 500 error was thrown by the ErrorDocument handler as well. Probably something simple, but not something I can see or find in the release notes. Help! Regards, / Bruce / Bruce A. Metcalf Augustan Library
Hello, Did you restart koha-common? Do you have an error in the Koha logs? Run the following command for watch the logs: tail -f /var/log/koha/*/*.log Regards, Jonathan Le lun. 28 nov. 2022 à 13:19, Bruce A. Metcalf <library@augustansociety.org> a écrit :
Greetings,
Yes, I'm slow on the uptake, I've been running oldoldstable for some time now. With the release of 22.11, it's time for me to move up.
My system was installed from deb packages under Debian 10, and has been updating fine.
After an update (with no error messages), I find I am unable to access either the OPAC or the admin interfaces. Both give an "Internal Server Error" message, with a note that a 500 error was thrown by the ErrorDocument handler as well.
Probably something simple, but not something I can see or find in the release notes. Help!
Regards, / Bruce / Bruce A. Metcalf Augustan Library _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
On 11/28/22 15:07, Jonathan Druart wrote:
Did you restart koha-common?
Yes, I rebooted the whole virtual machine. No change.
Do you have an error in the Koha logs?
intranet-error.log [Mon Nov 28 09:30:06.112562 2022] [cgi:error] [pid 13388] [client ... ] AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/opac/cgi-bin/opac/errors/500.pl [Mon Nov 28 09:30:06.148729 2022] [cgi:error] [pid 13388] [client ... ] End of script output before headers: 500.pl Doesen't give me a clue. Anyone else? Thanks, / Bruce / Bruce A. Metcalf Augustan Library
Yes, I'm slow on the uptake, I've been running oldoldstable for some time now. With the release of 22.11, it's time for me to move up.
My system was installed from deb packages under Debian 10, and has been updating fine.
After an update (with no error messages), I find I am unable to access either the OPAC or the admin interfaces. Both give an "Internal Server Error" message, with a note that a 500 error was thrown by the ErrorDocument handler as well.
Probably something simple, but not something I can see or find in the release notes. Help!
Did you upgrade using the debian packages? The error is saying you don't have the log4perl config file, which needs to be at /etc/koha/sites/$INSTANCE/log4perl.conf Le lun. 28 nov. 2022 à 15:34, Bruce A. Metcalf <library@augustansociety.org> a écrit :
On 11/28/22 15:07, Jonathan Druart wrote:
Did you restart koha-common?
Yes, I rebooted the whole virtual machine. No change.
Do you have an error in the Koha logs?
intranet-error.log
[Mon Nov 28 09:30:06.112562 2022] [cgi:error] [pid 13388] [client ... ] AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/opac/cgi-bin/opac/errors/500.pl [Mon Nov 28 09:30:06.148729 2022] [cgi:error] [pid 13388] [client ... ] End of script output before headers: 500.pl
Doesen't give me a clue. Anyone else?
Thanks, / Bruce / Bruce A. Metcalf Augustan Library
Yes, I'm slow on the uptake, I've been running oldoldstable for some time now. With the release of 22.11, it's time for me to move up.
My system was installed from deb packages under Debian 10, and has been updating fine.
After an update (with no error messages), I find I am unable to access either the OPAC or the admin interfaces. Both give an "Internal Server Error" message, with a note that a 500 error was thrown by the ErrorDocument handler as well.
Probably something simple, but not something I can see or find in the release notes. Help!
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
On 11/28/22 16:52, Jonathan Druart wrote:
Did you upgrade using the debian packages?
Yes; always.
The error is saying you don't have the log4perl config file, which needs to be at /etc/koha/sites/$INSTANCE/log4perl.conf
This file exists, but I note that it's owned by "root", and not "instance-koha". Could this be the issue? Regards, / Bruce / Bruce A. Metcalf Augustan Library
Yes, definitely, it must be owned by the $INSTANCE-koha user Le lun. 28 nov. 2022 à 21:38, Bruce A. Metcalf <library@augustansociety.org> a écrit :
On 11/28/22 16:52, Jonathan Druart wrote:
Did you upgrade using the debian packages?
Yes; always.
The error is saying you don't have the log4perl config file, which needs to be at /etc/koha/sites/$INSTANCE/log4perl.conf
This file exists, but I note that it's owned by "root", and not "instance-koha". Could this be the issue?
Regards, / Bruce / Bruce A. Metcalf Augustan Library _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Just checked my system’s files and log4perl.conf is indeed owned by root, however has rw set for all. Στις Τετ 30 Νοε 2022 στις 9:24 πμ ο χρήστης Jonathan Druart < jonathan.druart@bugs.koha-community.org> έγραψε:
Yes, definitely, it must be owned by the $INSTANCE-koha user
Le lun. 28 nov. 2022 à 21:38, Bruce A. Metcalf < library@augustansociety.org> a écrit :
On 11/28/22 16:52, Jonathan Druart wrote:
Did you upgrade using the debian packages?
Yes; always.
The error is saying you don't have the log4perl config file, which needs to be at /etc/koha/sites/$INSTANCE/log4perl.conf
This file exists, but I note that it's owned by "root", and not "instance-koha". Could this be the issue?
Regards, / Bruce / Bruce A. Metcalf Augustan Library _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Jonathan Druart wrote:
Yes, definitely, it must be owned by the $INSTANCE-koha user
PETRIDIS wrote:
Just checked my system’s files and log4perl.conf is indeed owned by root, however has rw set for all.
FWIW, in order to get back to work, I restored from backup and found: -rw-r--r-- 1 root root 2134 Dec 19 2020 /etc/koha/sites/library/log4perl.conf Which works properly. I also discovered that 21.11 needs Debian 10 or 11, and I'm still on Debian 9, so my bad. After the next system backup, I'll try to upgrade Debian to 10, followed by an upgrade of Koha to 21.11. No news is good news. Thanks to all for the suggestions. Regards, / Bruce / Bruce A. Metcalf Augustan Library
Hi gang Back again after a forced suspension of work. I am trying to upgrade from Koha 21.05 on Debian 9 to 21.11 (OldOldStable) on Debian 10. The upgrade appears to go through, but both public and staff interface display [Internal Server Error]. System was working fine on 21.05/9, and all but Koha work under Debian 10. All suggestions will be appreciated. Cheers, / Bruce / Bruce A. Metcalf, Librarian Augustan Library
Hi Bruce, the internal server error will resolve to something more meaningful in the logs. Check your logs on the server for the full error message. Hope this helps, Katrin On 11.03.23 20:48, Asst. Sec. Bruce A. Metcalf wrote:
Hi gang
Back again after a forced suspension of work.
I am trying to upgrade from Koha 21.05 on Debian 9 to 21.11 (OldOldStable) on Debian 10.
The upgrade appears to go through, but both public and staff interface display [Internal Server Error].
System was working fine on 21.05/9, and all but Koha work under Debian 10.
All suggestions will be appreciated.
Cheers, / Bruce / Bruce A. Metcalf, Librarian Augustan Library
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
On 3/12/23 10:34, Katrin Fischer wrote:
the internal server error will resolve to something more meaningful in the logs. Check your logs on the server for the full error message.
I've looked at the tail of all logs in /var/log/koha/(instance)/, but most are empty and the others don't give me any meaning. One example, intranet-error.log gives: [Sun Mar 12 09:18:00.882412 2023] [cgi:error] [pid 25446] [client 185.224.128.17:41784] AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/intranet/cgi-bin/mainpage.pl I've viewed both files listed, but not being a programmer, I can't see what might be wrong with them. To review, an upgrade to 21.11 (OldOldStable) and Debian 10 results in [Internal Server Error] screens. TIA, / Bruce / Bruce A. Metcalf, Librarian The Augustan Library
On 13/03/23 5:13 am, Bruce A. Metcalf wrote:
On 3/12/23 10:34, Katrin Fischer wrote:
the internal server error will resolve to something more meaningful in the logs. Check your logs on the server for the full error message.
I've looked at the tail of all logs in /var/log/koha/(instance)/, but most are empty and the others don't give me any meaning.
One example, intranet-error.log gives:
[Sun Mar 12 09:18:00.882412 2023] [cgi:error] [pid 25446] [client 185.224.128.17:41784] AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/intranet/cgi-bin/mainpage.pl
I've viewed both files listed, but not being a programmer, I can't see what might be wrong with them.
To review, an upgrade to 21.11 (OldOldStable) and Debian 10 results in [Internal Server Error] screens.
hi Bruce the short version is that your koha instance is probably missing a log4perl.conf file a simple way to correct the problem would be to create a new instance, then copy the missing log4perl.conf file from the new instance then do a search/replace on instance_name, in the file
On 14/03/23 5:53 pm, Mason James wrote:
On 13/03/23 5:13 am, Bruce A. Metcalf wrote:
On 3/12/23 10:34, Katrin Fischer wrote:
the internal server error will resolve to something more meaningful in the logs. Check your logs on the server for the full error message.
I've looked at the tail of all logs in /var/log/koha/(instance)/, but most are empty and the others don't give me any meaning.
One example, intranet-error.log gives:
[Sun Mar 12 09:18:00.882412 2023] [cgi:error] [pid 25446] [client 185.224.128.17:41784] AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/intranet/cgi-bin/mainpage.pl
I've viewed both files listed, but not being a programmer, I can't see what might be wrong with them.
To review, an upgrade to 21.11 (OldOldStable) and Debian 10 results in [Internal Server Error] screens.
hi Bruce the short version is that your koha instance is probably missing a log4perl.conf file
a simple way to correct the problem would be to create a new instance, then copy the missing log4perl.conf file from the new instance
then do a search/replace on instance_name, in the file
here is an example of a log4perl.conf file - please search/replace it, as required :) # cat /etc/koha/sites/tp3/log4perl.conf log4perl.logger.intranet = WARN, INTRANET log4perl.appender.INTRANET=Log::Log4perl::Appender::File log4perl.appender.INTRANET.filename=/var/log/koha/tp3/intranet-error.log log4perl.appender.INTRANET.mode=append log4perl.appender.INTRANET.layout=PatternLayout log4perl.appender.INTRANET.layout.ConversionPattern=[%d] [%p] %m %l%n log4perl.appender.INTRANET.utf8=1 log4perl.logger.opac = WARN, OPAC log4perl.appender.OPAC=Log::Log4perl::Appender::File log4perl.appender.OPAC.filename=/var/log/koha/tp3/opac-error.log log4perl.appender.OPAC.mode=append log4perl.appender.OPAC.layout=PatternLayout log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l%n log4perl.appender.OPAC.utf8=1 log4perl.logger.z3950 = WARN, Z3950 log4perl.appender.Z3950=Log::Log4perl::Appender::File log4perl.appender.Z3950.filename=/var/log/koha/tp3/z3950-error.log log4perl.appender.Z3950.mode=append log4perl.appender.Z3950.layout=PatternLayout log4perl.appender.Z3950.layout.ConversionPattern=[%d] [%p] %m %l%n log4perl.appender.Z3950.utf8=1 log4perl.logger.api = WARN, API log4perl.appender.API=Log::Log4perl::Appender::File log4perl.appender.API.filename=/var/log/koha/tp3/api-error.log log4perl.appender.API.mode=append log4perl.appender.API.layout=PatternLayout log4perl.appender.API.layout.ConversionPattern=[%d] [%p] %m %l%n log4perl.appender.API.utf8=1 log4perl.logger.sip = DEBUG, SIP log4perl.appender.SIP=Log::Log4perl::Appender::File log4perl.appender.SIP.filename=/var/log/koha/tp3/sip.log log4perl.appender.SIP.mode=append log4perl.appender.SIP.layout=PatternLayout log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %m %l%n log4perl.appender.SIP.utf8=1 log4perl.logger.plack-opac = WARN, PLACKOPAC log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File log4perl.appender.PLACKOPAC.filename=/var/log/koha/tp3/plack-opac-error.log log4perl.appender.PLACKOPAC.mode=append log4perl.appender.PLACKOPAC.layout=PatternLayout log4perl.appender.PLACKOPAC.layout.ConversionPattern=[%d] [%p] %m log4perl.appender.PLACKOPAC.utf8=1 log4perl.logger.plack-api = WARN, PLACKAPI log4perl.appender.PLACKAPI=Log::Log4perl::Appender::File log4perl.appender.PLACKAPI.filename=/var/log/koha/tp3/plack-api-error.log log4perl.appender.PLACKAPI.mode=append log4perl.appender.PLACKAPI.layout=PatternLayout log4perl.appender.PLACKAPI.layout.ConversionPattern=[%d] [%p] %m log4perl.appender.PLACKAPI.utf8=1 log4perl.logger.plack-intranet = WARN, PLACKINTRANET log4perl.appender.PLACKINTRANET=Log::Log4perl::Appender::File log4perl.appender.PLACKINTRANET.filename=/var/log/koha/tp3/plack-intranet-error.log log4perl.appender.PLACKINTRANET.mode=append log4perl.appender.PLACKINTRANET.layout=PatternLayout log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m log4perl.appender.PLACKINTRANET.utf8=1
On 3/14/23 01:05, Mason James wrote:
On 14/03/23 5:53 pm, Mason James wrote:
On 13/03/23 5:13 am, Bruce A. Metcalf wrote:
On 3/12/23 10:34, Katrin Fischer wrote:
To review, an upgrade to 21.11 (OldOldStable) and Debian 10 results in [Internal Server Error] screens.
the short version is that your koha instance is probably missing a log4perl.conf file
a simple way to correct the problem would be to create a new instance, then copy the missing log4perl.conf file from the new instance
I'll check to see if I have room for this.
here is an example of a log4perl.conf file - please search/replace it, as required :)
# cat /etc/koha/sites/tp3/log4perl.conf
I had to create the tp3 directory to do this. Now the system reports two instances, my original and tp3. Does this sound wrong? There is a log3perl.conf file in my /etc/koha/sites/(instance)/ directory, and it looks just like the one suggested. Perhaps it's something else. Any other ideas? Cheers, / Bruce / Bruce A. Metcalf, Librarian The Augustan Library
On 15/03/23 11:22 am, Bruce A. Metcalf wrote:
On 3/14/23 01:05, Mason James wrote:
On 14/03/23 5:53 pm, Mason James wrote:
On 13/03/23 5:13 am, Bruce A. Metcalf wrote:
On 3/12/23 10:34, Katrin Fischer wrote:
There is a log3perl.conf file in my /etc/koha/sites/(instance)/ directory, and it looks just like the one suggested.
Perhaps it's something else. Any other ideas?
hi Bruce did you restart koha? - specifically after you upgraded? /etc/init.d/koha-common restart did the following error stop? AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/intranet/cgi-bin/mainpage.pl do you have new errors in your log files?
On 3/15/23 23:44, Mason James wrote:
On 15/03/23 11:22 am, Bruce A. Metcalf wrote:
On 3/14/23 01:05, Mason James wrote:
On 14/03/23 5:53 pm, Mason James wrote:
On 13/03/23 5:13 am, Bruce A. Metcalf wrote:
On 3/12/23 10:34, Katrin Fischer wrote:
There is a log3perl.conf file in my /etc/koha/sites/(instance)/ directory, and it looks just like the one suggested.
did you restart koha? - specifically after you upgraded?
/etc/init.d/koha-common restart
No change.
did the following error stop?
AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/intranet/cgi-bin/mainpage.pl
I don't see that error. Line 579 of the first file is: die "Configuration not defined" unless defined $config; Two lines earlier, I see: my($config) = @_; Which suggests to me that something is missing, but I don't know the language so can't tell what.
do you have new errors in your log files?
The only error I see in the logs right now is: root@store:/var/log/koha/library# tail worker-output.log Error connecting to localhost:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 26. Failed to connect: Error connecting to localhost:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; giving up at /usr/share/perl5/Net/Stomp.pm line 26. Cannot connect to the message broker, the jobs will be processed anyway (Failed to connect: Error connecting to localhost:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; giving up at /usr/share/perl5/Net/Stomp.pm line 27. ) at /usr/share/koha/bin/background_jobs_worker.pl line 28. Which doesn't mean anything to me, and without a date stamp, I'm not even sure when it showed up. At least this feels like we're getting close. Thanks all, / Bruce / Bruce A. Metcalf, Librarian The Augustan Library
On 15/03/23 11:22 am, Bruce A. Metcalf wrote:
On 3/14/23 01:05, Mason James wrote:
On 14/03/23 5:53 pm, Mason James wrote:
On 13/03/23 5:13 am, Bruce A. Metcalf wrote:
On 3/12/23 10:34, Katrin Fischer wrote:
There is a log3perl.conf file in my /etc/koha/sites/(instance)/ directory, and it looks just like the one suggested.
Perhaps it's something else. Any other ideas?
hi Bruce did you restart koha? - specifically after you upgraded? /etc/init.d/koha-common restart did the following error stop? AH01215: Configuration not defined at /usr/share/perl5/Log/Log4perl/Config.pm line 579.: /usr/share/koha/intranet/cgi-bin/mainpage.pl do you have new errors in your log files?
participants (6)
-
Asst. Sec. Bruce A. Metcalf -
Bruce A. Metcalf -
Jonathan Druart -
Katrin Fischer -
Manos PETRIDIS -
Mason James