[Bug 28811] New: Cant receive orders
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28811 Bug ID: 28811 Summary: Cant receive orders Change sponsored?: --- Product: Koha Version: 21.05 Hardware: All OS: Linux Status: NEW Severity: critical Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: mbarham@birzeit.edu QA Contact: testopia@bugs.koha-community.org Created attachment 123453 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123453&action=edit no listing order to receive Dears, Im on debian 9 koha 21.05 I have a problem with receiving orders, I have closed basket, with a lot of orders inside, check picture attached , if I try to receive any order, nothing appear on the receiving page , check next photo. logs from server ==> /var/log/koha/koha/plack.log <== IP - - [04/Aug/2021:09:26:51 +0300] "GET /intranet/acqui/parcel.pl?invoiceid=22 HTTP/1.1" 200 41592 "https://koha-intra.birzeit.edu/cgi-bin/koha/acqui/parcels.pl?booksellerid=30..." "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" ==> /var/log/koha/koha/intranet-access.log <== IP - - [04/Aug/2021:09:26:51 +0300] "GET /cgi-bin/koha/acqui/parcel.pl?invoiceid=22 HTTP/1.1" 200 7952 ==> /var/log/koha/koha/plack.log <== IP - - [04/Aug/2021:09:26:51 +0300] "GET /api/v1/app.pl/api/v1/acquisitions/orders?only_active=1&_page=1&_per_page=20&_match=contains&_order_by=%2Bbasket.name HTTP/1.1" 404 - "https://koha-intra.birzeit.edu/cgi-bin/koha/acqui/parcel.pl?invoiceid=22" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" ==> /var/log/koha/koha/intranet-access.log <== IP - - [04/Aug/2021:09:26:51 +0300] "GET /api/v1/acquisitions/orders?only_active=1&_page=1&_per_page=20&_match=contains&_order_by=%2Bbasket.name HTTP/1.1" 404 1046 -- 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=28811 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com --- Comment #1 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Hello Mohamad, Your problem is coming from: IP - - [04/Aug/2021:09:26:51 +0300] "GET /api/v1/app.pl/api/v1/acquisitions/orders?only_active=1&_page=1&_per_page=20&_match=contains&_order_by=%2Bbasket.name HTTP/1.1" 404 You are getting a 404, the correct path is /api/v1/acquisition[...] but you have an extra "/api/v1/app.pl" before How did you install Koha? Is it a fresh install or you upgraded from an older version? -- 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=28811 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #2 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- It's certainly coming from a bad value in your koha.list (apt) file. Similar problem reported (and fixed) today on IRC: http://irc.koha-community.org/koha/2021-08-16#i_2371014 More info: https://wiki.koha-community.org/wiki/Koha_on_Debian#Pick_which_Koha_version_... -- 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=28811 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=28800 -- 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=28811 Mohamad Barham <mbarham@birzeit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|RESOLVED |REOPENED --- Comment #3 from Mohamad Barham <mbarham@birzeit.edu> --- not fresh copy. current version 21.05 upgrade from old version , I have changed koha.list to be deb http://debian.koha-community.org/koha stable main bullseye update && upgrade && restart services I dont know exactly at which stage of upgrade happened (between which versions) but problem 404 still exist, should I change smth manually regarding this route? or should I wait till another release ? note that its in production now Regards -- 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=28811 --- Comment #4 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- If you are using debian 9, your apt source shouldn't contain "bullseye" (which is the codename for 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=28811 --- Comment #5 from Mohamad Barham <mbarham@birzeit.edu> --- removed, my debian is exactly 9.13 -- 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=28811 --- Comment #6 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- So use: deb http://debian.koha-community.org/koha stable main stretch % apt update && apt install 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=28811 --- Comment #7 from Mohamad Barham <mbarham@birzeit.edu> --- problem still exist -- 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=28811 --- Comment #8 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Then provide us more information. What's the output of the following commands? pmvers Mojolicious::Plugin::OpenAPI pmvers Mojolicious pmvers JSON::Validator pmvers YAML::XS apt-cache policy libjson-validator-perl -- 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=28811 --- Comment #9 from Mohamad Barham <mbarham@birzeit.edu> --- root@libkoha:~# pmvers Mojolicious::Plugin::OpenAPI 4.05 root@libkoha:~# pmvers Mojolicious 9.20 root@libkoha:~# pmvers JSON::Validator 4.21 root@libkoha:~# pmvers YAML::XS 0.83 root@libkoha:~# 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 stable/main amd64 Packages 100 /var/lib/dpkg/status 0.92+dfsg-1 500 500 http://deb.debian.org/debian stretch/main amd64 Packages -- 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=28811 --- Comment #10 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- On debian 9 it should be: pmvers Mojolicious::Plugin::OpenAPI 2.16 pmvers Mojolicious 8.12 pmvers JSON::Validator 3.14 pmvers YAML::XS 0.76 You have messed with your packages somehow. Can you post the output of the following command? % sudo grep -r koha /etc/apt/sources.list* -- 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=28811 --- Comment #11 from Mohamad Barham <mbarham@birzeit.edu> --- /etc/apt/sources.list.d/koha.list:deb http://debian.koha-community.org/koha stable main stretch /etc/apt/sources.list.d/koha.list.save:deb http://debian.koha-community.org/koha stable main -- 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=28811 --- Comment #12 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- In a test environment, I would try to remove the different packages and reinstall them. remove: libmojolicious-plugin-openapi-perl libmojolicious-perl libjson-validator-perl libyaml-perl apt update && apt upgrade reinstall them restart services -- 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=28811 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtj@kohaaloha.com --- Comment #13 from Mason James <mtj@kohaaloha.com> --- (In reply to Mohamad Barham from comment #9)
root@libkoha:~# pmvers Mojolicious::Plugin::OpenAPI 4.05 root@libkoha:~# pmvers Mojolicious 9.20 root@libkoha:~# pmvers JSON::Validator 4.21 root@libkoha:~# pmvers YAML::XS 0.83
hi Mohamad it seems that these perl modules have been installed from CPAN this will cause problems with your Koha install, and you need to remove these modules to fix the problem you should not have to install any perl modules from CPAN, for a working Koha package install -- 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=28811 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Resolution|--- |FIXED Status|REOPENED |RESOLVED -- 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=28811 --- Comment #14 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #13)
(In reply to Mohamad Barham from comment #9)
root@libkoha:~# pmvers Mojolicious::Plugin::OpenAPI 4.05 root@libkoha:~# pmvers Mojolicious 9.20 root@libkoha:~# pmvers JSON::Validator 4.21 root@libkoha:~# pmvers YAML::XS 0.83
hi Mohamad it seems that these perl modules have been installed from CPAN
this will cause problems with your Koha install, and you need to remove these modules to fix the problem
you should not have to install any perl modules from CPAN, for a working Koha package install
hi Mohamad after a backup, try these commands to remove the problem modules sudo cpan -v --uninstall Mojolicious::Plugin::OpenAPI sudo cpan -v --uninstall Mojolicious sudo cpan -v --uninstall JSON::Validator sudo cpan -v --uninstall YAML::XS then... sudo koha-plack --restart libkoha -- 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=28811 --- Comment #15 from Mason James <mtj@kohaaloha.com> ---
hi Mohamad after a backup, try these commands to remove the problem modules
oops, that should been 'cpanm' sudo cpanm -v --uninstall Mojolicious::Plugin::OpenAPI sudo cpanm -v --uninstall Mojolicious sudo cpanm -v --uninstall JSON::Validator sudo cpanm -v --uninstall YAML::XS -- 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=28811 --- Comment #16 from Mohamad Barham <mbarham@birzeit.edu> --- Thank alot every thing OK -- 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