https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37361 Bug ID: 37361 Summary: REST API: api/v1/ does not work with proxy an plack Change sponsored?: --- Product: Koha Version: 24.05 Hardware: All OS: Linux Status: NEW Severity: major Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: tomiak@helmholtz-berlin.de QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com https://servername/api/v1/.html and any call to the API, even when done by Koha internally always shows error 404 or the error page. starman/plack tries to contact external web servers for the schema files, as seen in plack-api-error.log: [2024/07/15 14:47:45] [ERROR] Warning: Could not load REST API spec bundle: GET http://json-schema.org/draft-04/schema: Connection refused at /usr/share/perl5/JSON/Validator/Store.pm line 190. The external http-access will require a proxy server and these are defined in /etc/profile.d/proxy.sh but not used by starman, which can be proved with Window 1: sudo tcpdump -A -i any 'host json-schema.org' Window 2: sudo koha-plack --restart koha-instance the error messages will result. The file environ of the starman processes in the linux process file system are empty. Solution (dirty): Source /etc/profile.d/proxy.sh with the definition of the proxies in /usr/sbin/koha-plack first. The proxy environment variables will be used then and all will work as wanted. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.