Created attachment 123453 [details] 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=309" "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
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?
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_to_follow
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
If you are using debian 9, your apt source shouldn't contain "bullseye" (which is the codename for debian 11).
removed, my debian is exactly 9.13
So use: deb http://debian.koha-community.org/koha stable main stretch % apt update && apt install koha-common
problem still exist
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
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
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*
/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
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
(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
(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
> 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
Thank alot every thing OK