Bug 24340 introduced the file /var/lib/koha/<instance>/sip.enabled to keep track of whether a site has enabled SIP2 or not. But as far as I can tell, it did not do anything to create this file for existing sites that already had SIP2 enabled and running. After upgrading from 19.11.x to 20.05.06 "sudo koha-list --sip" tells me I have no sites with SIP2 enabled, but there should be 5 of them on the server in question. I also get this: $ sudo koha-sip --status mykoha [FAIL] SIP server not running for mykoha: failed! This is true. $ sudo koha-sip --start mykoha SIP is disabled, or you do not have a SIPconfig.xml file. SIP2 should be enabled, and there is a SIPconfig.xml present for the site in question. One solution is to do this: $ sudo touch /var/lib/koha/mykoha/sip.enabled And then this works: $ sudo koha-sip --start mykoha
Tomas, Mason, any ideas on how we could fix that?
Do we have a way to know what version are we upgrading from inside koha-common.postinst? Because the new behavior is that disabling means removing the file. So we need to detect upgrades from =<19.11 to fix this automatically on upgrade. Mason?