Created attachment 129917 [details] screenshot of SMTP server page After adding an SMTP server to Koha it does not show in the list. Therefore it cannot be chosen, edited, etc. (Mac Chromium-based browser)
I don't see this problem in master or 21.11.x, which makes me think this is probably a local problem. Are there any errors in the browser console?
Can you try with Mozilla Firefox please ?
Thank you for looking at this issue! It does not work in Firefox either... The browser console contains these messages: /api/v1/config/smtp_servers?_page=1&_per_page=20&q=%5B%5D&_match=contains&_order_by=%2Bme.name:1 Failed to load resource: the server responded with a status of 404 (Not Found) datatables_21.1101000.js:515 DataTables warning: table id=smtp_servers - Ajax error. For more information about this error, please see http://datatables.net/tn/7 jQuery.fn.dataTable.ext.errMode @ datatables_21.1101000.js:515 K @ datatables.min_21.1101000.js:113 error @ datatables.min_21.1101000.js:74 i @ jquery-2.2.3.min_21.1101000.js:2 fireWith @ jquery-2.2.3.min_21.1101000.js:2 z @ jquery-2.2.3.min_21.1101000.js:4 (anonymous) @ jquery-2.2.3.min_21.1101000.js:4
Hi, could you check if the list of libraries loads ok for you? This is also done via the API so just to check that this part works ok in your installation.
Should be more specific: Administration > libraries
Aha! No the library list does not load!
(In reply to Father Vlasie from comment #6) > Aha! No the library list does not load! I've seen this problem come up a few times now but still not quite sure about what the fix was :( Someone else might be able to help you here better, but I remember it had to do with OS version and dependencies. So what OS and version of it are you running Koha on?
uname -a says #1 SMP Debian 4.9.290-1 (2021-12-12) x86_64 GNU/Linux And About Koha says 21.11.01.000 I just checked and some of my Perl modules need upgrading: JSON::Validator (3.14) 0.97 Mojolicious (8.12) 7.21 Mojolicious::Plugin::OpenAPI (2.16) 1.15 Could this be it?
(In reply to Father Vlasie from comment #8) > uname -a says > > #1 SMP Debian 4.9.290-1 (2021-12-12) x86_64 GNU/Linux > > And About Koha says > > 21.11.01.000 > > I just checked and some of my Perl modules need upgrading: > > JSON::Validator (3.14) 0.97 > Mojolicious (8.12) 7.21 > Mojolicious::Plugin::OpenAPI (2.16) 1.15 > > Could this be it? Yes, upgrade them. Which OS do you have?
And post what you have in /etc/apt/sources.list.d/koha.list
From the uname... Debian 9 perhaps? Could you confirm?
Yes it is Debian 9.
less /etc/apt/sources.list.d/koha.list contains: deb http://debian.koha-community.org/koha stable main
And I have installed the missing Perl modules but the problem persists...
Try: deb http://debian.koha-community.org/koha stable main jessie then apt update; apt upgrade
(In reply to Jonathan Druart from comment #15) > Try: > deb http://debian.koha-community.org/koha stable main jessie > > then apt update; apt upgrade That should be: deb http://debian.koha-community.org/koha stable main stretch Keep in mind that Debian 9 will be EOL in June.
Oops yes, jessie is Debian 8!
It is a good thing I was busy! :) I was not so excited about downgrading... I will try this over the weekend. Thank you everyone!
Just downgrading importance a little bit as I think we are up against an installation issue here.
Could it be related to https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 ?
(In reply to Manos PETRIDIS from comment #21) > Could it be related to > https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28800 ? It is related in terms of missing dependencies/wrong versions etc. The suggested fix will hopefully solve the issue.
Sorry for the delay! I tried the fix of updating /etc/apt/sources.list.d/koha.list to deb http://debian.koha-community.org/koha stable main stretch But the problem persists! :(
(In reply to Father Vlasie from comment #23) > Sorry for the delay! I tried the fix of updating > /etc/apt/sources.list.d/koha.list to deb > http://debian.koha-community.org/koha stable main stretch > > But the problem persists! :( Did anything happen/change when you ran apt update; apt upgrade ?
Created attachment 131508 [details] apt history
I have attached the apt history which shows what changed.
Did you restart all the things (memcached, apache2, koha-common)? Please post the versions of the following packages: JSON::Validator, Mojolicious, Mojolicious::Plugin::OpenAPI Do you get an error in the koha logs?
Yes I have restarted the whole server. JSON::Validator (3.14) 5.05 Mojolicious (8.12) 9.22 Mojolicious::Plugin::OpenAPI (2.16) 5.02 The api-error.log is empty. Thank you!
(In reply to Father Vlasie from comment #28) > Yes I have restarted the whole server. > > JSON::Validator (3.14) 5.05 > Mojolicious (8.12) 9.22 > Mojolicious::Plugin::OpenAPI (2.16) 5.02 > > The api-error.log is empty. > > Thank you! XD That's not gonna work, see bug 30194. This is how it should look like: root@kohadevbox:koha(master)$ pmvers Mojolicious 8.12 root@kohadevbox:koha(master)$ pmvers JSON::Validator 3.14 root@kohadevbox:koha(master)$ pmvers Mojolicious::Plugin::OpenAPI 2.16
(In reply to Father Vlasie from comment #28) > Yes I have restarted the whole server. > > JSON::Validator (3.14) 5.05 > Mojolicious (8.12) 9.22 > Mojolicious::Plugin::OpenAPI (2.16) 5.02 > > The api-error.log is empty. > > Thank you! You need to remove the libraries you manually installed using cpanm now that the right ones are pulled from the updated repository (i.e. now you added the stretch keyword)
This is an installation/setup issue, please see: https://wiki.koha-community.org/wiki/REST_API_Debug