Hi all,
As some people have noticed, http://swagger.io/v2/schema.json is currently unavailable, and this is causing new instances of Plack workers to crash. (New instances can be created by starting Plack or by long-running workers to reach their end of life number of requests.)
The issue is detailed at length in https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23653.
I think the solution will be for Mason to a libjson-validator-perl package which contains a cached version of that file.
Alternatively, I have copied the cached version into a patch and configured Koha to use that version instead of trying to go to http://swagger.io/v2/schema.json.
I think that Mason distributing that updated package is probably the better solution, but I figure that it doesn’t hurt to have options. I’ve tested my patch in koha-testing-docker and it worked well.
Of course, while we wait for an updated package, you can also use the workaround that Mason has provided at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23653#c11. The “cache” in question isn’t a real cache, so it won’t get invalidated. It will persist for years, so once the workaround is done, your server should be safe. But new installs and unattended servers will need a more automated solution.
Cheers,
David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St
Ultimo, NSW 2007
Australia
Office: 02 9212 0899
Online: 02 8005 0595