Bugzilla – Attachment 167112 Details for
Bug 36948
Adjust SIPconfig for log_file and IP version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36948: Resolve SIP issues in D12
Bug-36948-Resolve-SIP-issues-in-D12.patch (text/plain), 1.90 KB, created by
Nick Clemens (kidclamp)
on 2024-05-23 14:01:32 UTC
(
hide
)
Description:
Bug 36948: Resolve SIP issues in D12
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-23 14:01:32 UTC
Size:
1.90 KB
patch
obsolete
>From a99f409d8011d2531717a0e3b9b37261c0f18d6f Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 23 May 2024 13:56:51 +0000 >Subject: [PATCH] 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 >--- > C4/SIP/Trapper.pm | 4 ++++ > debian/templates/SIPconfig.xml | 4 ++-- > 2 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/C4/SIP/Trapper.pm b/C4/SIP/Trapper.pm >index 774b3a0c574..ef99b5de179 100644 >--- a/C4/SIP/Trapper.pm >+++ b/C4/SIP/Trapper.pm >@@ -35,6 +35,10 @@ sub PRINT { > $Log::Log4perl::caller_depth--; > } > >+sub OPEN { >+ return 1; >+} >+ > =head2 BINMODE > > Suppress errors from Log::Log4perl::Appender::Screen >diff --git a/debian/templates/SIPconfig.xml b/debian/templates/SIPconfig.xml >index c9a1717794e..dc1ca38a4d2 100644 >--- a/debian/templates/SIPconfig.xml >+++ b/debian/templates/SIPconfig.xml >@@ -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" /> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36948
:
167112
|
167134
|
167147
|
167148
|
167149
|
167150
|
167151
|
167152
|
167153