[Bug 719686] New: Service does not start without portmapper
https://bugzilla.novell.com/show_bug.cgi?id=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c0 Summary: Service does not start without portmapper Classification: openSUSE Product: openSUSE 12.1 Version: Milestone 5 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:6.0.2) Gecko/20100101 Firefox/6.0.2 After installation of the packages fam and fam-server one could activate the fam service simply by giving, as root, the command "rcfam start". This is no longer the case. There is an error message in /var/log/messages telling: Sep 22 10:26:55 eik121m5 famd[2572]: can't register with portmapper. So apparently portmapper is now necessary. In openSUSE 11.4 this was not necessary. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: fam daemon does not start Expected Results: fam daemon does start without portmapper. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c1 --- Comment #1 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-09-22 09:01:38 UTC --- I tried activating fam in xinetd, and running "rcfam start", but I got the same answer. I need fam to run courier-imap. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |adrian@suse.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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c2 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Summary|Service does not start |fam service does not start |without portmapper | --- Comment #2 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-10-01 19:07:55 UTC --- Raised the priority because this distribution is worthless without a running fam. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c3 --- Comment #3 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-10-01 19:08:39 UTC --- No change in Beta1 -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c4 --- Comment #4 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-10-20 19:24:04 UTC --- I noticed since the last upgrade using factory repository that the fam.service is active; "chkconfig -l fam" shows fam should be active in level 3 and 5. However stopping it using "rcfam stop" did stop the service, but after that neither "rcfam start" nor "systemctl start fam.service" was able to start the service. Another observation is that "rcfam status" mentions a process number which is not visible using "ps aux"; this was while the status still showed an active fam service. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c5 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Milestone 5 |Factory Severity|Normal |Critical --- Comment #5 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-10-23 11:40:49 UTC --- I was wrong fam does not start. I consider this fatal, so I raise the priority. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c6 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P5 - None Status|NEW |NEEDINFO CC| |coolo@suse.com InfoProvider| |f.de.kruijf@gmail.com Flag| |SHIP_STOPPER- --- Comment #6 from Stephan Kulow <coolo@suse.com> 2011-10-24 12:59:32 CEST --- the prio is for the developer. What's wrong with starting portmapper/rpcbind? -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c7 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|f.de.kruijf@gmail.com | --- Comment #7 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-10-24 12:07:47 UTC --- I don't need any other service from portmapper/rpcbind, so I want the old behavior of the fam service to start as a daemon. Besides I don't know how to test whether fam is working through portmapper/rpcbind. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c8 --- Comment #8 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-10-24 15:02:35 UTC --- I tried to enable fam in xinetd and I got the following error message in /var/log/messages: Oct 24 16:58:25 os121rc1v xinetd[3394]: Starting INET services. (xinetd)..done Oct 24 16:58:25 os121rc1v xinetd[3452]: Service fam failed to start and is deactivated. Oct 24 16:58:25 os121rc1v xinetd[3452]: 3452 {init_services} no services. Exiting... Oct 24 16:58:25 os121rc1v xinetd[3648]: Shutting down xinetd: (not running)..done So neither way fam service can be started. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c9 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Version|Factory |RC 2 --- Comment #9 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-11-07 22:46:31 UTC --- I tried again using RC2, 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c10 --- Comment #10 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-11-21 13:12:35 UTC --- Now I am using 12.1 GM in a new installed system. # systemctl status fam.service gives the following: fam.service Loaded: error (Reason: No such file or directory) Active: inactive (dead) While # ls -l /etc/init.d/fam gives: -rwxr--r-- 1 root root 2093 Oct 29 17:22 /etc/init.d/fam So I am completely lost. AFAIK the sole presence of the above file should be enough to make "systemctl status" show the status loaded to be: loaded (/etc/init.d/fam) -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c11 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@suse.com --- Comment #11 from Andreas Jaeger <aj@suse.com> 2011-11-23 12:08:33 UTC --- Freek, looking at this, it seems fam needs the portmapper running. Why are you not enabling it ? Btw. I just installed fam-server, run systemctl daemon-reload and systemctl status fam.service works: $ systemctl status fam.service fam.service - LSB: file access monitoring Loaded: loaded (/etc/init.d/fam) Active: inactive (dead) CGroup: name=systemd:/system/fam.service and the rest works as well - note rpcbind is running on my system: byrd:~ # systemctl start fam.service byrd:~ # systemctl status fam.service fam.service - LSB: file access monitoring Loaded: loaded (/etc/init.d/fam) Active: active (running) since Wed, 23 Nov 2011 13:07:30 +0100; 1s ago Process: 14509 ExecStart=/etc/init.d/fam start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/fam.service └ 14779 /usr/sbin/famd -t 4 -T 0 -L -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c12 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|RC 2 |Final --- Comment #12 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-11-23 15:10:32 UTC --- I never realized that rpcbind was needed. Apparently it was never necessary to enable this service in previous versions of openSUSE. I googled for portmapper when I saw the error message and could only find a referral to xinitd, never a link to rpcbind. So in my view the fam service should depend on the rpcbind service, which apparently is not the case. So this appears to me as a bug. Another point of needed knowledge is that when you install a package that delivers an init service you have to perform a "systemctl daemon-reload". Maybe it would be informative when "systemctl status some.service" does not find the service to give the hint to perform the daemon-reload command. Another suggestion would be to include in the package that delivers an init service to perform the daemon-reload 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c13 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P3 - Medium Severity|Critical |Normal --- Comment #13 from Freek de Kruijf <f.de.kruijf@gmail.com> 2011-11-23 15:12:52 UTC --- I changed the priority to Normal and the importance Medium -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c14 --- Comment #14 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-07-17 21:21:38 UTC --- Created an attachment (id=498987) --> (http://bugzilla.novell.com/attachment.cgi?id=498987) Patch file for Listener.c++ -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c15 --- Comment #15 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-07-17 21:23:04 UTC --- The solution is to run the rpcbind service. A better error message from the famd executable would help to find this solution much earlier. A patch to the source file Listener.c++ to provide a better error message is attached. There is also a problem with enabling the fam.service with systemctl. It should give a proper error message when the rpcbind service is not enabled. Using the systemv command chkconfig to enable fam (set to on), while rpcbind is not enabled, does give such an error message, although the service is set to on in init 3 and 5. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c16 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #16 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-07-18 08:18:43 UTC --- I checked openSUSE 11.4 and found that rpcbind is apparently started by default in that distribution, which is not true anymore in 12.1 and 12.2. I never realized fam needed that service. Problem is resolved, reopen it if you need that to apply 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c17 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |suse-beta@cboltz.de Resolution|FIXED | --- Comment #17 from Christian Boltz <suse-beta@cboltz.de> 2012-07-18 13:43:56 CEST --- (In reply to comment #16)
Problem is resolved, reopen it if you need that to apply the patch.
General rule of thumb: Nobody will notice the patch in a closed bug... (Bonus points if you branch the package, add the patch and send a SR ;-) -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c18 --- Comment #18 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-07-18 11:58:10 UTC --- (In reply to comment #17)
(Bonus points if you branch the package, add the patch and send a SR ;-)
This is beyond my capabilities. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c19 --- Comment #19 from Christian Boltz <suse-beta@cboltz.de> 2012-07-18 19:31:16 CEST --- (In reply to comment #18)
(In reply to comment #17)
(Bonus points if you branch the package, add the patch and send a SR ;-)
This is beyond my capabilities.
It's easier than you might think ;-) Have a look at the "How to submit a fix to a package" section on http://en.opensuse.org/openSUSE:How_to_contribute_to_Factory But you'll need to search for a new opportuny to practise - I submitted SR 128248 to include your patch in the fam package ;-) (See https://build.opensuse.org/request/show/128248 for the changes I did - basically I added a "Patch:" and a "%patch" line to the spec, and of course added the patch itsself with "osc add" ;-) -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c20 --- Comment #20 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-07-20 20:00:09 CEST --- This is an autogenerated message for OBS integration: This bug (719686) was mentioned in https://build.opensuse.org/request/show/128496 Factory / fam -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c21 Björn Voigt <bjoernv@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bjoernv@arcor.de --- Comment #21 from Björn Voigt <bjoernv@arcor.de> 2013-03-21 11:37:06 UTC --- I have this problem from time to time in openSUSE 12.2. If Fam does not start during boot, /var/log/messages contains text like this: Mar 21 09:32:33 mybox fam[1482]: Starting File Access Monitoring Daemon..done Mar 21 09:32:33 mybox famd[1536]: can't register with portmapper. Please start a portmapper (for example rpcbind), then try again to start famd. Mar 21 09:32:33 mybox fam[1538]: Shutting down File Access Monitoring Daemon..done Starting Fam manually after boot (it rpcbind is active) works. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c22 --- Comment #22 from Freek de Kruijf <f.de.kruijf@gmail.com> 2013-03-21 22:04:32 UTC --- Most likely during start up rpcbind and fam are started in parallel, where rpcbind is not yet finished when fam needs the resource from rpcbind. In /etc/init.d/fam the line Required-Start does not contain rpcbind, so you may try to add rpcbind at the end of this line and see how this affects this problem. I did not find any reference to fam in systemd directories, so this should do it. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c23 --- Comment #23 from Björn Voigt <bjoernv@arcor.de> 2013-03-21 22:46:53 UTC --- /etc/init.d/fam does not contain "Required-Start" $rpcbind, but $portmap. /etc/init.d/fam: # Required-Start: $remote_fs $time $named $syslog $portmap Portmap is provided by /etc/init.d/rpcbind: /etc/init.d/portmap: # Provides: portmap rpcbind After Fam failed to start on my openSUSE 12.2 last time, I found that Rpcbind and Fam did not start in the correct order. The reason is unknown for me. /var/log/boot.msg: logd 1.4.1, log source = ksyslog started. [...] <notice -- Sep 14 23:51:19.597019000> service fam stop [...] <notice -- Sep 14 23:51:19.712536000> service fam done [...] <notice -- Sep 14 23:51:20.513590000> service rpcbind stop [...] <notice -- Sep 14 23:51:20.596755000> service rpcbind done [...] -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c24 --- Comment #24 from Freek de Kruijf <f.de.kruijf@gmail.com> 2013-03-22 08:56:53 UTC --- It could be that portmap is delivered also by another service, so explicitly specifying rpcbind may be needed. Do you use systemV or systemd, in the last case, in 12.2 rpcbind is a systemd controlled service, where fam is still controlled in systemV. So dependencies may be messed up. In 12.3 there is no hierarchy anymore in /etc/init.d/rc*.d/{S,K}*, all links start with {S,K}50. -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c25 --- Comment #25 from Björn Voigt <bjoernv@arcor.de> 2013-03-22 18:28:11 UTC --- I use systemd. No other service except "rpcbind" provides "portmap" on my system. SysV-Init links are ok. So probably the problem would not occur in SysV-Init: $ ls -1 /etc/init.d/rc5.d/S*fam /etc/init.d/rc5.d/S*rpcbind /etc/init.d/rc5.d/S04rpcbind /etc/init.d/rc5.d/S10fam -- 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=719686 https://bugzilla.novell.com/show_bug.cgi?id=719686#c26 Freek de Kruijf <freek@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED --- Comment #26 from Freek de Kruijf <freek@opensuse.org> 2014-07-09 20:19:34 UTC --- Problem was a misunderstanding about who provides portmap. -- 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