]> git.koha-community.org Git - koha.git/commit
Bug 36948: Resolve SIP issues in D12
authorNick Clemens <nick@bywatersolutions.com>
Thu, 23 May 2024 13:56:51 +0000 (13:56 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 17 Jul 2024 13:54:10 +0000 (15:54 +0200)
commit290b05c5e2ba224442d1cde250aaae879e62c0be
treed0b1641fe93dccb1e3c2294b518c341e53775a0a
parentaa8c865edb9bf3a2f6df02ea946e645aabff6a1e
Bug 36948: Resolve SIP issues in D12

My Koha testing docker SIP started dying repeatedly after launch. After investigation, I
found it was a problem with logging and default ports.

In D12 there is no syslog anymore, everythign uses journal. Four our purposes, lets log SIP issues
to sip.log by default

Attaching a patch to clear things up.

To test:
1 - Open KTD/D12
2 - tail -f /var/log/koha/kohadev/*.log
3 - On another terminal 'restart_all'
4 - Wait a bit, notice SIP dying
5 - Apply patch
6 - Update SIPconfig:
    server-params:
    log_file='/var/log/koha/kohadev/sip.log'
    service with port 8023:
    port="127.0.0.1:8023/tcp"
7 - Restart all
8 - Confirm SIP no longer dies

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 5dc1ec387ddf0fb258a184daddca39d6854272e2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7076762bbaaeaac760475b1157d3048b5785af10)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/Trapper.pm
debian/templates/SIPconfig.xml