[Bug 28800] New: Libabry list at /cgi-bin/koha/admin/branches.pl appears empty
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 Bug ID: 28800 Summary: Libabry list at /cgi-bin/koha/admin/branches.pl appears empty Change sponsored?: --- Product: Koha Version: 21.05 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: System Administration Assignee: koha-bugs@lists.koha-community.org Reporter: egpetridis@yahoo.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com I've noticed that the list of libraries comes up empty, although libraries have been defined. When trying to create a new library with the same code as an existing one, the expected error message appears, however one is left unable to manage the existing libarries. Video recording (54MB) available at https://emedgroupgr-my.sharepoint.com/:v:/g/personal/mpetridis_emedgroup_gr/... -- 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=28800 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Can you check the browser console to see if there are JavaScript errors on the page? It seems likely that an error is preventing the API from passing the information to the DataTable. -- 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=28800 --- Comment #2 from Manos PETRIDIS <egpetridis@yahoo.com> --- Errors in console are: jquery-2.2.3.min_21.0501003.js:4 GET http://192.168.1.148:8081/api/v1/libraries?_page=1&_per_page=20&q=%5B%5D&_match=contains&_order_by=%2Bme.name 404 (Not Found) send @ jquery-2.2.3.min_21.0501003.js:4 ajax @ jquery-2.2.3.min_21.0501003.js:4 sa @ datatables.min_21.0501003.js:75 lb @ datatables.min_21.0501003.js:75 P @ datatables.min_21.0501003.js:67 T @ datatables.min_21.0501003.js:69 ha @ datatables.min_21.0501003.js:86 e @ datatables.min_21.0501003.js:131 (anonymous) @ datatables.min_21.0501003.js:131 each @ jquery-2.2.3.min_21.0501003.js:2 each @ jquery-2.2.3.min_21.0501003.js:2 n @ datatables.min_21.0501003.js:121 $.fn.api @ datatables_21.0501003.js:774 (anonymous) @ branches.pl:29830 i @ jquery-2.2.3.min_21.0501003.js:2 fireWith @ jquery-2.2.3.min_21.0501003.js:2 ready @ jquery-2.2.3.min_21.0501003.js:2 J @ jquery-2.2.3.min_21.0501003.js:2 and datatables_21.0501003.js:515 DataTables warning: table id=libraries - Ajax error. For more information about this error, please see http://datatables.net/tn/7 jQuery.fn.dataTable.ext.errMode @ datatables_21.0501003.js:515 K @ datatables.min_21.0501003.js:113 error @ datatables.min_21.0501003.js:74 i @ jquery-2.2.3.min_21.0501003.js:2 fireWith @ jquery-2.2.3.min_21.0501003.js:2 z @ jquery-2.2.3.min_21.0501003.js:4 (anonymous) @ jquery-2.2.3.min_21.0501003.js:4 load (async) send @ jquery-2.2.3.min_21.0501003.js:4 ajax @ jquery-2.2.3.min_21.0501003.js:4 sa @ datatables.min_21.0501003.js:75 lb @ datatables.min_21.0501003.js:75 P @ datatables.min_21.0501003.js:67 T @ datatables.min_21.0501003.js:69 ha @ datatables.min_21.0501003.js:86 e @ datatables.min_21.0501003.js:131 (anonymous) @ datatables.min_21.0501003.js:131 each @ jquery-2.2.3.min_21.0501003.js:2 each @ jquery-2.2.3.min_21.0501003.js:2 n @ datatables.min_21.0501003.js:121 $.fn.api @ datatables_21.0501003.js:774 (anonymous) @ branches.pl:29830 i @ jquery-2.2.3.min_21.0501003.js:2 fireWith @ jquery-2.2.3.min_21.0501003.js:2 ready @ jquery-2.2.3.min_21.0501003.js:2 J @ jquery-2.2.3.min_21.0501003.js:2 -- 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=28800 Manos PETRIDIS <egpetridis@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- 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=28800 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com --- Comment #3 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- You are getting a 404 for /api/v1/libraries, that's not normal. How did you install Koha? Did you proceed to an upgrade recently? If so, from which version? Try restarting memcached, apache2 then koha-common. -- 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=28800 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Libabry list at |Library list at |/cgi-bin/koha/admin/branche |/cgi-bin/koha/admin/branche |s.pl appears empty |s.pl appears empty -- 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=28800 --- Comment #4 from Manos PETRIDIS <egpetridis@yahoo.com> --- My koha installation is a plain Jane one, installed via packages on debian 9. The database though has been restored a couple of times, during migrations from previous installations. I have rebooted the server, yet the problem persists. Have since upgraded to the latest package version -was already at 21.05 though- however the library list still comes up empty. MP -- 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=28800 --- Comment #5 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- What's your version of JSON::Validator? Are you using Debian 11? -- 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=28800 --- Comment #6 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- See http://irc.koha-community.org/koha/2021-08-16#i_2371014 -- 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=28800 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=28811, | |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=26893 -- 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=28800 --- Comment #7 from Manos PETRIDIS <egpetridis@yahoo.com> --- (In reply to Jonathan Druart from comment #5)
What's your version of JSON::Validator? Are you using Debian 11?
JSON::Validator (0.97) 0.97 JSON (2.07) 2.90 Template::Plugin::JSON::Escape (0.02) 0.02 I'm using Debian 9, wasn't aware that koha is now compatible with later Debian releases. Koha version: 21.05.02.000 OS version ('uname -a'): Linux koha 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64 Perl interpreter: /usr/bin/perl Perl version: 5.024001 MySQL version: mysql Ver 15.1 Distrib 10.4.19-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Apache version: Server version: Apache/2.4.25 (Debian) -- 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=28800 --- Comment #8 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Manos PETRIDIS from comment #7)
(In reply to Jonathan Druart from comment #5)
What's your version of JSON::Validator? Are you using Debian 11?
JSON::Validator (0.97) 0.97
On Debian 9 you should have JSON::Validator 3.14. Do you see the REST API doc if you hit /api/v1/.html? -- 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=28800 --- Comment #9 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Jonathan Druart from comment #8)
(In reply to Manos PETRIDIS from comment #7)
(In reply to Jonathan Druart from comment #5)
What's your version of JSON::Validator? Are you using Debian 11?
JSON::Validator (0.97) 0.97
On Debian 9 you should have JSON::Validator 3.14.
Hum, forget that, I am not sure actually. I am getting that in a dev env (ktd/stretch), but that does not make sense. root@kohadevbox:koha(master|BISECTING)$ pmvers JSON::Validator 3.14 root@kohadevbox:koha(master|BISECTING)$ apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 3.25+dfsg-1+koha3 Candidate: 3.25+dfsg-1+koha3 Version table: *** 3.25+dfsg-1+koha3 500 500 http://debian.koha-community.org/koha-staging dev/main amd64 Packages 100 /var/lib/dpkg/status 0.92+dfsg-1 500 500 http://httpredir.debian.org/debian stretch/main amd64 Packages -- 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=28800 --- Comment #10 from Manos PETRIDIS <egpetridis@yahoo.com> --- Created attachment 124202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124202&action=edit kept back packages (image 1/6) -- 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=28800 --- Comment #11 from Manos PETRIDIS <egpetridis@yahoo.com> --- Created attachment 124203 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124203&action=edit kept back packages (image 2/6) -- 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=28800 --- Comment #12 from Manos PETRIDIS <egpetridis@yahoo.com> --- Created attachment 124204 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124204&action=edit kept back packages (image 3/6) -- 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=28800 --- Comment #13 from Manos PETRIDIS <egpetridis@yahoo.com> --- Created attachment 124205 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124205&action=edit kept back packages (image 4/6) -- 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=28800 --- Comment #14 from Manos PETRIDIS <egpetridis@yahoo.com> --- Created attachment 124206 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124206&action=edit kept back packages (image 5/6) -- 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=28800 --- Comment #15 from Manos PETRIDIS <egpetridis@yahoo.com> --- Created attachment 124207 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124207&action=edit kept back packages (image 6/6) -- 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=28800 --- Comment #16 from Manos PETRIDIS <egpetridis@yahoo.com> --- I wonder why version 0.97-1~kohadev1 was installed, and prefered over the current version. Upgrades were performed in command-line (apt-get upgrade) up till now. Upgrade via GUI fixed things and library list appears populated again. Thank you all for your help! MP -- 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=28800 --- Comment #17 from Manos PETRIDIS <egpetridis@yahoo.com> --- Could it have anything to do with https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26893 ? -- 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=28800 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|21.05 |master Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |mtj@kohaaloha.com |ity.org | --- Comment #18 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Mason, could you have a look at this? Do we need to do something? If 0.97 is not enough we need to update cpanfile then. If I understand correctly, having ">= 0.97" is usually enough because D9 has 0.92 and 3.25 and so 3.25 is picked. But here, with 0.97 available things are broken. (In reply to Manos PETRIDIS from comment #11)
Created attachment 124203 [details] kept back packages (image 2/6)
So... where is coming from 0.97-1#kohadev1? -- 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=28800 --- Comment #19 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Manos, can you post the output of % sudo grep -r koha /etc/apt/sources.list* -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 --- Comment #20 from Mason James <mtj@kohaaloha.com> --- (In reply to Jonathan Druart from comment #18)
Mason, could you have a look at this? Do we need to do something? If 0.97 is not enough we need to update cpanfile then.
If I understand correctly, having ">= 0.97" is usually enough because D9 has 0.92 and 3.25 and so 3.25 is picked. But here, with 0.97 available things are broken.
hi Joubu i've added a cpanfile patch to bump libjson-validator-perl to 3.14 (and friends) https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28926 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=28926 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 --- Comment #21 from Mason James <mtj@kohaaloha.com> --- (In reply to Manos PETRIDIS from comment #16)
I wonder why version 0.97-1~kohadev1 was installed, and prefered over the current version. Upgrades were performed in command-line (apt-get upgrade) up till now. Upgrade via GUI fixed things and library list appears populated again. Thank you all for your help!
MP
the problem seems to be fixed, all packages are now at the expected versions -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org