Branch library list empty
Greetings, all! It was reported to me over the weekend that the page ../cgi-bin/koha/admin/branches.pl appears empty. Evidence on other pages suggests that the configured libraries exist, but they are not listed on this page as they should be. Could someone point me in the right direction towards solving this? (Naturally, I am happy to provide additional information if necessary.) Thank you! Host server: Debian 10 Koha version: 20.11.10
I had the same problem in the past, you might want to look at bug 28800 in bugs.koha-community.org Kind regards, Manos Petridis Στις Τρί, 14 Δεκ 2021 στις 2:25 μμ ο χρήστης David Liddle < david.liddle@wycliff.de> έγραψε:
Greetings, all! It was reported to me over the weekend that the page ../cgi-bin/koha/admin/branches.pl appears empty. Evidence on other pages suggests that the configured libraries exist, but they are not listed on this page as they should be. Could someone point me in the right direction towards solving this? (Naturally, I am happy to provide additional information if necessary.) Thank you!
Host server: Debian 10 Koha version: 20.11.10 _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Thank you for the informative tip, Manos. For other readers, the summary is that the problem may be caused by the installation of an unacceptable version of a particular Perl module, JSON::Validator. What I find on our own server is the following: # sudo cpan -D JSON::Validator JSON::Validator ------------------------------------------------------------------------- (no description) J/JH/JHTHORSEN/JSON-Validator-5.04.tar.gz /usr/share/perl5/JSON/Validator.pm Installed: 5.02 CPAN: 5.04 Not up to date Jan Henning Thorsen (JHTHORSEN) jhthorsen@cpan.org # apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 5.02-1 Candidate: 5.02-1 Version table: *** 5.02-1 100 100 /var/lib/dpkg/status 4.99.1+really3.14-koha3 500 500 http://debian.koha-community.org/koha oldoldstable/main amd64 Packages 3.06+dfsg-1 500 500 http://mirrors.digitalocean.com/debian buster/main amd64 Packages Note the version contained in the Koha repository. If the version of this module is indeed the problem, I have to admit that I'm not sure how to go about forcing the installation of the correct one—Manos' solution in the GUI's package manager won't work in this server environment. It's a production instance, so I have to tread lightly. Again, my thanks go out to all readers and contributors!
hi David, the system has a version of libjson-validator-perl, thats too new for koha it's probably manually been built/installed, via the cpan2deb tool? try the following to fix the problem... $ sudo apt update; sudo apt upgrade libjson-validator-perl and confirm with... $ apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 5.99+really3.14-koha1 Candidate: 5.99+really3.14-koha1 Version table: *** 5.99+really3.14-koha1 500 500 http://debian.koha-community.org/koha 20.11/main amd64 Packages On 15/12/21 5:23 am, David Liddle wrote:
Thank you for the informative tip, Manos. For other readers, the summary is that the problem may be caused by the installation of an unacceptable version of a particular Perl module, JSON::Validator. What I find on our own server is the following:
# sudo cpan -D JSON::Validator JSON::Validator ------------------------------------------------------------------------- (no description) J/JH/JHTHORSEN/JSON-Validator-5.04.tar.gz /usr/share/perl5/JSON/Validator.pm Installed: 5.02 CPAN: 5.04 Not up to date Jan Henning Thorsen (JHTHORSEN) jhthorsen@cpan.org
# apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 5.02-1 Candidate: 5.02-1 Version table: *** 5.02-1 100 100 /var/lib/dpkg/status 4.99.1+really3.14-koha3 500 500 http://debian.koha-community.org/koha oldoldstable/main amd64 Packages 3.06+dfsg-1 500 500 http://mirrors.digitalocean.com/debian buster/main amd64 Packages
Note the version contained in the Koha repository. If the version of this module is indeed the problem, I have to admit that I'm not sure how to go about forcing the installation of the correct one—Manos' solution in the GUI's package manager won't work in this server environment. It's a production instance, so I have to tread lightly. Again, my thanks go out to all readers and contributors! _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Greetings, Mason! Thank you for the information. I wasn't certain if the installation method would affect how the matter should be resolved. Yesterday, I ran the following command, and the results confirmed the module's origins, as you suspected: $ sudo dpkg -s libjson-validator-perl Package: libjson-validator-perl Status: install ok installed Priority: optional Section: perl Installed-Size: 421 Maintainer: ***** Architecture: all Version: 5.02-1 Depends: perl (>= 5.25.1), libmojolicious-perl (>= 7.28), libyaml-libyaml-perl (>= 0.67) Description: Validate data against a JSON schema (no description was found) . This description was automagically extracted from the module by dh-make-perl. Homepage: https://metacpan.org/release/JSON-Validator Your suggested resolution worked perfectly, and I hope now that our server is on the right track. I do wonder, however, if there are other modules that were installed separately. I may have to engage in a hunt.
participants (3)
-
David Liddle -
Manos PETRIDIS -
Mason James