[Bug 706257] New: amavis failed to start during boot, however it is active
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c0 Summary: amavis failed to start during boot, however it is active Classification: openSUSE Product: openSUSE 12.1 Version: Milestone 2 Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: f.de.kruijf@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Performing a boot (till init 3) there is an error message that amavis-new failed (to start). However "ps aux | grep amavis" shows the master and 2 virgin childs active. The command "rcamavis stop" gives a green "done". However these three processes are still present. Also "netstat -tlnp" shows a listening process on port 10024. After a "kill <process-id_of_amavisd_(master)> the processes are gone. After this the command "rcamavis start" shows a red "failed", however the processes are there and the master is listening on port 10024. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Despite the red "failed" message amavis-new is active, however "rcamavis stop" shows a green "done", however does not stop the amavis processes. Expected Results: A green "done" message on the start of amavis and stopped processes after the "rcamavis stop" command. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |varkoly@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c1 --- Comment #1 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-17 16:56:52 UTC --- This is still a bug in openSUSE 12.1 M5 and has not changed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c2 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |melchiaros@aol.com --- Comment #2 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-17 19:14:32 UTC --- *** Bug 711006 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=711006 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c3 --- Comment #3 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-17 19:24:04 UTC --- I compared the file /etc/init.d/amavis between 11.4 and 12.1 and they are the same. However the program /usr/sbin/amavisd is different in these versions. I contacted the maintainer of the amavis project to point him to this problem. I also tried the command "/usr/sbin/amavisd stop" which did stop the amavisd processes in my system. This also seems to be the command given in "/etc/init.d/amavis stop", which does not work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c4 --- Comment #4 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-17 21:03:09 UTC --- Analysing the problem I found that the behavior of checkproc is causing the problem. While amavisd is active, with three processes, 1 master and 2 childs), the command "checkproc amavisd ; echo $?" gives on openSUSE 11.4 the result 0 openSUSE 12.1 the result 3 The command "checkproc /usr/sbin/amavisd ; echo $?" gives on openSUSE 11.4 the result 3 openSUSE 12.1 the result 3 Reading the manual pages of checkproc I conclude that checkproc on openSUSE 11.4 gives the wrong answer. This means that the file /etc/init.d/amavis on openSUSE 12.1 is wrong. The return codes of "checkproc amavis" in the script are inverted. Because the manpage of checkproc always talks about the full patch of the executable I made the attached patch for /etc/init.d/amavis -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c5 --- Comment #5 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-17 22:00:01 UTC --- It is more complicated than I thought, so it will take a while for the patch. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c6 --- Comment #6 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-17 22:33:46 UTC --- Created an attachment (id=451548) --> (http://bugzilla.novell.com/attachment.cgi?id=451548) Patch for /etc/init.d/amavis I did test the new script for start, stop and status, however not with amavis_milter and not for the other commands. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c7 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de, | |werner@suse.com --- Comment #7 from Christian Boltz <suse-beta@cboltz.de> 2011-09-18 14:59:05 CEST --- CC'ing Werner Fink, the maintainer of sysvinit (which includes checkproc). Werner, please see comment #4 about the changed (broken?) behaviour of checkproc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c8 --- Comment #8 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-18 15:54:40 UTC --- Rereading the manpage of checkproc I found that replacing amavisd by $AMAVISD_BIN as the argument of checkproc is not right. The file /usr/sbin/amavisd is a perl script and in that case IMHO the proper way is to use amavisd. I also read that the return code should be 0 when that process is active. However that is not the case. Below is the console log as root in my 12.1 M5 system with the above changes in the /etc/init.d/amavis file. eik121m5:~ # rcamavis status Checking for service amavis (amavisd-new): unused eik121m5:~ # ps aux | grep amavis root 2436 0.0 0.0 6780 856 pts/1 S+ 17:27 0:00 grep amavis eik121m5:~ # rcamavis start Starting virus-scanner (amavisd-new): done eik121m5:~ # ps aux | grep amavis vscan 2497 15.1 10.2 222172 104240 ? Ss 17:28 0:01 amavisd (master) vscan 2500 0.0 10.1 223444 103264 ? S 17:28 0:00 amavisd (virgin child) vscan 2501 0.0 10.1 223444 103260 ? S 17:28 0:00 amavisd (virgin child) root 2507 0.0 0.0 6780 860 pts/1 S+ 17:28 0:00 grep amavis eik121m5:~ # rcamavis status Checking for service amavis (amavisd-new): running eik121m5:~ # checkproc amavisd ; echo $? 3 !!!! The above is wrong, checkproc should return 0, amavisd is active.!!!!! !!!! 3 means no process and no pid file (maybe it was searched for /var/run/ !!! eik121m5:~ # checkproc -p /var/spool/amavis/amavisd.pid amavisd ; echo $? 1 !!!! The above is wrong, checkproc should return 0, amavisd is active.!!!!! !!!! 1 means no process, but there is a pid file. !!!! eik121m5:~ # rcamavis stop Shutting down virus-scanner (amavisd-new): Daemon [2497] terminated by SIGTERM done eik121m5:~ # checkproc -p /var/spool/amavis/amavisd.pid amavisd ; echo $? 3 eik121m5:~ # checkproc amavisd ; echo $? 3 eik121m5:~ # So maybe the solution is that the pid file is stored in /var/run/, which requires a change in /usr/sbin/amavisd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c9 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@suse.com --- Comment #9 from Ludwig Nussel <lnussel@suse.com> 2011-09-19 16:19:44 CEST --- checkproc exit codes were wrong previously, see bug 687547 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c10 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Version|Milestone 2 |RC 2 --- Comment #10 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-11-07 22:44:45 UTC --- There was a message on opensuse-factory that this was solved. However I installed a fresh RC2 and installed amavisd-new from oss, but it still has the same problem. I also tried amavisd-new from server:mail but still the same problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c11 --- Comment #11 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-11-07 23:02:51 UTC --- The problem is in checkproc not able to find the amavis processes using the full path. However this information is available see below: # systemctl start amavis.service Job failed. See system logs and 'systemctl status' for details. Despite this failure message amavisd is active. # systemctl status amavis.service amavis.service - LSB: Start amavisd-new Loaded: loaded (/etc/init.d/amavis) Active: failed since Mon, 07 Nov 2011 23:59:37 +0100; 13s ago Process: 2573 ExecStart=/etc/init.d/amavis start (code=exited, status=7/NOTRUNNING) CGroup: name=systemd:/system/amavis.service ├ 2583 /usr/sbin/amavisd (master) ├ 2588 /usr/sbin/amavisd (virgin child) └ 2589 /usr/sbin/amavisd (virgin child) Above you see that the full patch is available in the system about the amavisd processes. Maybe not at the position where checkproc is expecting it, but elsewhere. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c12 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #12 from Peter Varkoly <varkoly@suse.com> 2011-11-08 05:08:01 UTC --- diplicate *** This bug has been marked as a duplicate of bug 723708 *** http://bugzilla.novell.com/show_bug.cgi?id=723708 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c13 --- Comment #13 from Pavel Koshevoy <paul@aragog.com> 2011-11-19 17:07:03 UTC --- Created an attachment (id=463034) --> (http://bugzilla.novell.com/attachment.cgi?id=463034) modified /etc/init.d/amavis to work around checkproc I've worked around amavis sysvinit script problem by replacing checkproc with a shell script function checkproc_script that simulates the intended checkproc behavior. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c14 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roland@logikalsolutions.com --- Comment #14 from Peter Varkoly <varkoly@suse.com> 2012-01-04 14:44:37 UTC --- *** Bug 735918 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=735918 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-01-04 16:00:08 CET --- This is an autogenerated message for OBS integration: This bug (706257) was mentioned in https://build.opensuse.org/request/show/98762 Factory / amavisd-new https://build.opensuse.org/request/show/98763 12.1 / amavisd-new -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706257 https://bugzilla.novell.com/show_bug.cgi?id=706257#c16 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schoenberg@fv-berlin.de --- Comment #16 from Peter Varkoly <varkoly@suse.com> 2012-01-11 14:56:44 UTC --- *** Bug 739673 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=739673 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com