Your syslog contains warnings like: Mar 21 13:46:11 upgrade koha_sip[9377]: Group Not Defined. Defaulting to EGID '1000' Mar 21 13:46:11 upgrade koha_sip[9377]: User Not Defined. Defaulting to EUID '1000' This comes from Net::Server. SIPServer does not pass user and group. We only define user when we start koha-sip with daemon. Net::Server falls back to current user context which is already good. So it is an innocent warn.
Created attachment 163616 [details] [review] Bug 36386: Pass user and group to Net::Server This prevents the User/Group Not Defined warns in syslog. Test plan: Restart sip and check your syslog.
Not sure how to replicate using koha-testing-docker (KTD). There is no /var/log/syslog There is also nothing in the journal log (sudo journalctl or sudo journalctl -u syslog). In addition, those warnings don't appear in /var/log/koha/kohadev/sip.log (after restarting sip with sudo koha-sip --restart kohadev or a restart_all). The default KTD is using Debian 11 (bullseye) (cat /etc/os-release).
Tomas, do you know if this warning ends up somewhere else in KTD instead of syslog?
Created attachment 163902 [details] [review] Bug 36386: Pass user and group to Net::Server This prevents the User/Group Not Defined warns in syslog. Test plan: Restart sip and check your syslog. KTD Test Plan: 1) Stop your SIP server 2) Run "perl C4/SIP/SIPServer.pm /etc/koha/sites/kohadev/koha-conf.xml" We need valid XML without any valid SIP settings to the output goes to the command line 3) Note the warnings 4) Apply this patch 5) Repeat step 2 6) No warnings! Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Created attachment 165028 [details] [review] Bug 36386: Pass user and group to Net::Server This prevents the User/Group Not Defined warns in syslog. Test plan: Restart sip and check your syslog. KTD Test Plan: 1) Stop your SIP server 2) Run "perl C4/SIP/SIPServer.pm /etc/koha/sites/kohadev/koha-conf.xml" We need valid XML without any valid SIP settings to the output goes to the command line 3) Note the warnings 4) Apply this patch 5) Repeat step 2 6) No warnings! Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Nice bit of cleanup.. Passing QA
Pushed for 24.05! Well done everyone, thank you!
Pushed to 23.11.x for 23.11.06
Backported to 23.05.x for upcoming 23.05.12