Bug 8199

Summary: icapd won't start
Product: Mageia Reporter: Remco Rijnders <remco>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: mageia, sysadmin-bugs, tmb, wassi
Version: 2Keywords: validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA2-32-OK MGA2-64-OK
Source RPM: c-icap-0.1.7-3.mga2.src.rpm CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 6313    

Description Remco Rijnders 2012-11-25 12:48:24 CET
The icap server won't start:

[root@silvertown ~]# /etc/init.d/icapd start
Starting icapd (via systemctl):  Job failed. See system journal and 'systemctl status' for details.

[root@silvertown ~]# systemctl status icapd.service
icapd.service - LSB: Starts the c-icap daemon
          Loaded: loaded (/etc/rc.d/init.d/icapd)
          Active: failed (Result: timeout) since Sun, 25 Nov 2012 12:42:52 +0100; 1min 51s ago
         Process: 5778 ExecStart=/etc/rc.d/init.d/icapd start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/icapd.service
                  â 5788 icapd -f /etc/icapd/c-icap.conf
                  â 5789 icapd -f /etc/icapd/c-icap.conf
                  â 5791 icapd -f /etc/icapd/c-icap.conf
                  â 5796 icapd -f /etc/icapd/c-icap.conf

Nov 25 12:37:52 silvertown.webconquest.com icapd[5778]: Starting icapd: [  OK  ]

^--- Note that the actual starting of the process times out and hangs for a few minutes before giving up. As a result of this problem, I think dansguardian, having a suggest on the c-icap-server, won't start at boot time either.
Remco Rijnders 2012-11-25 12:50:29 CET

Blocks: (none) => 6313

Comment 1 Colin Guthrie 2012-11-28 10:37:21 CET
This is likely a pidfile mixup.. (it's quite common).

CC: (none) => mageia

Comment 2 Colin Guthrie 2012-11-28 10:45:29 CET
Yup that was it.. A simple missing "d" in the initscript.

New version hitting updates_testing shortly  c-icap-0.1.7-3.1.mga2
Remco Rijnders 2012-11-29 04:30:12 CET

Assignee: dlucio => qa-bugs

Comment 3 user7 2012-12-08 20:37:24 CET
Tested on i586, MGA2.

I can reproduce the problem here, and the update candidate fixes it.

before:
[root@localhost wassi]# /etc/init.d/icapd start
Starting icapd (via systemctl):  Job failed. See system journal and 'systemctl status' for details.

[root@localhost wassi]# systemctl status icapd.service
icapd.service - LSB: Starts the c-icap daemon
          Loaded: loaded (/etc/rc.d/init.d/icapd)
          Active: failed (Result: exit-code) since Fri, 07 Dec 2012 19:27:58 +0100; 44s ago
         Process: 8740 ExecStart=/etc/rc.d/init.d/icapd start (code=exited, status=255)
          CGroup: name=systemd:/system/icapd.service
                  â 7752 icapd -f /etc/icapd/c-icap.conf
                  â 7754 icapd -f /etc/icapd/c-icap.conf
                  â 7755 icapd -f /etc/icapd/c-icap.conf
                  â 7756 icapd -f /etc/icapd/c-icap.conf


after:
[root@localhost wassi]# /etc/init.d/icapd start
Starting icapd (via systemctl):  Job failed. See system journal and 'systemctl status' for details.

-> Reboot

[root@localhost wassi]# /etc/init.d/icapd start
Starting icapd (via systemctl):                          [  OK  ]
[root@localhost wassi]# /etc/init.d/icapd stop
Stopping icapd (via systemctl):                          [  OK  ]

However, I am not sure how to proceed now. Remco, as you seem to use this package: could you see if the version in updates_testing works for you and maybe provide a testing procedure? If so, please also tell us which architecture you are on, so we can take your test results into account.

CC: (none) => wassi

Comment 4 user7 2012-12-10 02:48:26 CET
@Colin: I guess you did, but as you didn't mention it above I'll ask you just in case: please don't forget to push this change also to Cauldron. If you did, feel free to ignore this remark. :)

@Remco: Never mind, I overlooked parts of your last comment on bug 6313.

Note to other QA testers: As drakguard uses dansguardian which in turn uses the icap server, testing icap in combination with drakguard should be sufficient. If everything works, both update candidates (6313 & 8199) can be validated.
Comment 5 Remco Rijnders 2012-12-10 04:32:59 CET
Thanks user7. For what it's worth, I briefly tested (only confirmed icapd and dansguardian started at boot time) on x86_64 and that worked with the updated packages. I was hoping that the original reporter of the dansguardian bug could also confirm dansguardian working as expected, but haven't heard from him yet.

No other changes have been made to either of the packages though other than working on the systemd units / files to ensure proper start up at boot.
Comment 6 Colin Guthrie 2012-12-10 10:21:19 CET
@user7: Yes this is in my list to push to cauldron - wanted to convert it to a proper systemd unit tho' first before pushing there...
Comment 7 user7 2012-12-12 02:03:48 CET
I consider this update candidate and bug 6313 ready for validation, taking into account Remco's and my testing. As it is late already, I'll validate tomorrow if noone else is quicker. I'll add the keywords for now.

@Colin: ok, thanks.

Whiteboard: (none) => MGA2-32-OK MGA2-64-OK

Comment 8 user7 2012-12-12 20:13:36 CET
Update validated.
Thanks.

Proposed Advisory:
This update fixes a pidfile mixup, preventing icapd from starting.

SRPM: c-icap-0.1.7-3.1.mga2.src.rpm

Could sysadmin please push from core/updates_testing to core/updates.

Thank you!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 9 user7 2012-12-12 20:17:29 CET
No linking needed according to depcheck.
Comment 10 Thomas Backlund 2012-12-20 23:29:56 CET
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0243

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED