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 5dc1ec387d)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
796300926c
commit
7076762bba
|
|
@ -35,6 +35,10 @@ sub PRINT {
|
|||
$Log::Log4perl::caller_depth--;
|
||||
}
|
||||
|
||||
sub OPEN {
|
||||
return 1;
|
||||
}
|
||||
|
||||
=head2 BINMODE
|
||||
|
||||
Suppress errors from Log::Log4perl::Appender::Screen
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<server-params
|
||||
min_servers='1'
|
||||
min_spare_servers='0'
|
||||
log_file='Sys::Syslog'
|
||||
log_file='/var/log/koha/__KOHASITE__/sip.log'
|
||||
syslog_ident='koha_sip'
|
||||
syslog_facility='local6'
|
||||
/>
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
protocol="NCIP/1.0" />
|
||||
-->
|
||||
<service
|
||||
port="8023/tcp"
|
||||
port="127.0.0.1:8023/tcp"
|
||||
transport="telnet"
|
||||
protocol="SIP/2.00"
|
||||
timeout="60" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue