Bug 693873 - ypbind service not brought up on boot
Summary: ypbind service not brought up on boot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ypbind
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Honza Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-05 19:28 UTC by Severin Gehwolf
Modified: 2011-04-28 14:40 UTC (History)
10 users (show)

Fixed In Version: ypbind-1.32-8.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-23 03:59:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg using network.service (101.52 KB, text/plain)
2011-04-07 12:36 UTC, Honza Horak
no flags Details
dmesg using NetworkManager.service (102.21 KB, text/plain)
2011-04-07 12:37 UTC, Honza Horak
no flags Details
messages log using network.service (151.27 KB, text/plain)
2011-04-07 12:37 UTC, Honza Horak
no flags Details
messages log using NetworkManager.service (176.19 KB, text/plain)
2011-04-07 12:37 UTC, Honza Horak
no flags Details
dmesg (using network) output as produced with kernel options as described in Michal's comment. (207.92 KB, text/x-log)
2011-04-07 13:41 UTC, Severin Gehwolf
no flags Details
output of $ head -n50 /etc/init.d/ypbind (1.59 KB, text/x-log)
2011-04-07 13:43 UTC, Severin Gehwolf
no flags Details
dmesg using NetworkManager.service (151.91 KB, text/plain)
2011-04-07 14:43 UTC, Honza Horak
no flags Details
dmesg using network.service (153.64 KB, text/plain)
2011-04-07 14:46 UTC, Honza Horak
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 696629 0 unspecified CLOSED NIS logins unavailable immediately after boot (ypbind service started) 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 700429 0 unspecified CLOSED system_bus_socket: Connection refused problem on reboot/halt 2021-02-22 00:41:40 UTC

Internal Links: 696629 700429

Description Severin Gehwolf 2011-04-05 19:28:29 UTC
Description of problem:
When the ypbind service is configured to be brought up on runlevel 3 and 5 it systemd should start the service.

Version-Release number of selected component (if applicable):
# rpm -q systemd
systemd-22-1.fc15.x86_64
# rpm -q ypbind
ypbind-1.32-5.fc15.x86_64

How reproducible:
Always

Steps to Reproduce:
1. chkconfig ypbind on (or systemctl enable ypbind.service)
  
# chkconfig --list ypbind
ypbind         	0:off	1:off	2:on	3:on	4:on	5:on	6:off

Actual results:
ypbind not started on runlevel 3 and 5 when system is rebooted.

Expected results:
ypbind started after reboot.

Additional info:
I'm just using NIS client tools to bind to a NIS domain. Let me know if you need more info :) Thanks for doing this great work on systemd!

Comment 1 Severin Gehwolf 2011-04-05 21:25:58 UTC
I think this is a ypbind bug. Reassigning...

Comment 2 Severin Gehwolf 2011-04-05 21:29:09 UTC
Apparently ypbind init scripts are missing proper LSB headers to specify dependencies explicitly. Maybe something like:

### BEGIN INIT INFO
# Provides: ypbind
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Short-Description: Starts the ypbind daemon
# Description: The ypbind daemon
### END INIT INFO

would work? The alternative proposed solution was to migrate to systemd's native unit files.

Thanks for taking care of this!

Comment 3 Michal Schmidt 2011-04-06 05:15:35 UTC
I'd like to see why exactly it is failing to start if the LSB header is not present.
Could you please boot with "log_buf_len=1M systemd.log_level=debug systemd.log_target=kmsg" and attach here the output of "dmesg"? Thanks.

Comment 4 Honza Horak 2011-04-07 12:35:04 UTC
Thanks for reporting. However, the issue isn't as easy as it seems to be.

ypbind works without LSB header for me, but only if I use network instead of NetworkManager. 

On the other hand, it doesn't work with NetworkManager, even with correct LSB header. ypbind seems to be started correctly (at least what systemctl says) and the process is running, but "rpcinfo -p localhost" doesn't print ypbind and the service broken. 

I will attach dmesg and message log with both - network and NetworkManager. It seems to be some dbus problem, but not sure yet.

Comment 5 Honza Horak 2011-04-07 12:36:36 UTC
Created attachment 490528 [details]
dmesg using network.service

Comment 6 Honza Horak 2011-04-07 12:37:01 UTC
Created attachment 490529 [details]
dmesg using NetworkManager.service

Comment 7 Honza Horak 2011-04-07 12:37:29 UTC
Created attachment 490530 [details]
messages log using network.service

Comment 8 Honza Horak 2011-04-07 12:37:58 UTC
Created attachment 490531 [details]
messages log using NetworkManager.service

Comment 9 Michal Schmidt 2011-04-07 13:28:47 UTC
Jan, note that the correct spelling for the log_target is "kmsg", not "kmesg".

Why do you suspect a dbus problem? Is it because of messages like this one?:
  Activation via systemd failed for unit 'dbus-org.bluez.service':
  Unit dbus-org.bluez.service failed to load: No such file or directory.
The message is not very user-friendly, but in this case it really just means that bluetooth.service is disabled and therefore it could not be DBus-activated.

Comment 10 Severin Gehwolf 2011-04-07 13:34:36 UTC
(In reply to comment #4)
> Thanks for reporting. However, the issue isn't as easy as it seems to be.
> 
> ypbind works without LSB header for me, but only if I use network instead of
> NetworkManager. 

Hmm, I'm using network and it's not working (i.e. brought up on boot) with or without the LSB headers in the init scripts.

Comment 11 Severin Gehwolf 2011-04-07 13:41:18 UTC
Created attachment 490546 [details]
dmesg (using network) output as produced with kernel options as described in Michal's comment.

Note that I've tried to add LSB headers to the ypbind init script, but this didn't change the situation. I'll attach what I currently have in /etc/init.d/ypbind as another attachment.

Comment 12 Severin Gehwolf 2011-04-07 13:43:24 UTC
Created attachment 490547 [details]
output of $ head -n50 /etc/init.d/ypbind

With those headers in the script, ypbind is still not brought up on boot.

Comment 13 Honza Horak 2011-04-07 14:43:15 UTC
Created attachment 490570 [details]
dmesg using NetworkManager.service

(In reply to comment #9)
> Jan, note that the correct spelling for the log_target is "kmsg", not "kmesg".

So this is more verbose dmesg output for NetworkManager.

Comment 14 Honza Horak 2011-04-07 14:46:19 UTC
Created attachment 490571 [details]
dmesg using network.service

And this is more verbose dmesg output for network.service, that still works for me.

Comment 15 Honza Horak 2011-04-07 15:16:48 UTC
I've managed to fix this problem at least for me. The problem is that NetworkManager has changed D-Bus response codes, so ypbind doesn't understand its response correctly (ypbind uses its own enum definition when it is being built without NetworkManager-debug package installed). 

So the following build fixes this issue for me. Could you try it and give me a notice if it works for you, please?

http://koji.fedoraproject.org/koji/buildinfo?buildID=238090

Comment 16 Severin Gehwolf 2011-04-07 15:30:15 UTC
Jan, I'll give it a shot and let you know.

FWIW: http://lists.fedoraproject.org/pipermail/devel/2011-April/150246.html

Comment 17 Severin Gehwolf 2011-04-07 16:45:55 UTC
Since Jan reported it working, I switched back to NetworkManager (from network), installed the rpm from the above linked build and ypbind is properly brought up on boot. Thanks! Could you please also push this as an update for F15?

There is only one remaining problem. When I try to log on GDM using my NIS account, GDM freezes. I need to kill GDM (ctrl+alt+backspace). Then, when GDM auto-restarts, it works properly. I'm not sure if this is a GDM, sytemd or NIS problem. I suspect it's GDM...

Any more thoughts on this remaining problem?

Comment 18 Fedora Update System 2011-04-08 07:55:13 UTC
ypbind-1.32-7.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ypbind-1.32-7.fc15

Comment 19 Honza Horak 2011-04-08 10:38:06 UTC
(In reply to comment #17)
> There is only one remaining problem. When I try to log on GDM using my NIS
> account, GDM freezes. I need to kill GDM (ctrl+alt+backspace). Then, when GDM
> auto-restarts, it works properly. I'm not sure if this is a GDM, sytemd or NIS
> problem. I suspect it's GDM...
> 
> Any more thoughts on this remaining problem?

I've noticed this too and found it has been already reported in bug #690873, so you can join that conversation, too.

Comment 20 Severin Gehwolf 2011-04-08 14:43:12 UTC
(In reply to comment #19)
> (In reply to comment #17)
> > There is only one remaining problem. When I try to log on GDM using my NIS
> > account, GDM freezes. I need to kill GDM (ctrl+alt+backspace). Then, when GDM
> > auto-restarts, it works properly. I'm not sure if this is a GDM, sytemd or NIS
> > problem. I suspect it's GDM...
> > 
> > Any more thoughts on this remaining problem?
> 
> I've noticed this too and found it has been already reported in bug #690873, so
> you can join that conversation, too.

Ok, thanks for the pointer!

Comment 21 Severin Gehwolf 2011-04-08 14:50:43 UTC
Remember that I'm using NIS + /home on NFS + NetworkManager now. Another (minor?) problem I have been seeing is that in some cases when I reboot/halt the machine, I get on the console:

ypbind[...]: Connection to D-BUS system message bus failed: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused.

Unfortunately, I cannot always reproduce. I'll follow up should I be able to. However, when it occurrs, I get the above message over and over again. The shutdown process stalls for 2 minutes or so, only printing this message until it finally continues. I cannot interrupt this (ctrl+c).

Comment 22 Fedora Update System 2011-04-09 05:29:06 UTC
Package ypbind-1.32-7.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ypbind-1.32-7.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ypbind-1.32-7.fc15
then log in and leave karma (feedback).

Comment 23 Honza Horak 2011-04-12 08:03:35 UTC
(In reply to comment #21)
> ypbind[...]: Connection to D-BUS system message bus failed: Failed to connect
> to socket /var/run/dbus/system_bus_socket: Connection refused.
> 
> Unfortunately, I cannot always reproduce. I'll follow up should I be able to.
> However, when it occurrs, I get the above message over and over again. The
> shutdown process stalls for 2 minutes or so, only printing this message until
> it finally continues. I cannot interrupt this (ctrl+c).

Does it happen even in ypbind-1.32-7.fc15? There is no correct LSB header in previous versions, so this could have been caused by massive parallelism of tasks during boot up. However, the LSB header is defined now, so it should be OK in this new update.

Comment 24 Severin Gehwolf 2011-04-13 22:18:08 UTC
(In reply to comment #23)
> (In reply to comment #21)
> > ypbind[...]: Connection to D-BUS system message bus failed: Failed to connect
> > to socket /var/run/dbus/system_bus_socket: Connection refused.
> > 
> > Unfortunately, I cannot always reproduce. I'll follow up should I be able to.
> > However, when it occurrs, I get the above message over and over again. The
> > shutdown process stalls for 2 minutes or so, only printing this message until
> > it finally continues. I cannot interrupt this (ctrl+c).
> 
> Does it happen even in ypbind-1.32-7.fc15? There is no correct LSB header in
> previous versions, so this could have been caused by massive parallelism of
> tasks during boot up. However, the LSB header is defined now, so it should be
> OK in this new update.

To be honest, I'm not sure. I can't remember when I switched to ypbind with LSB headers in init scripts, so it's hard to tell. So far it didn't happen again and I don't consider this an issue anymore. Should it happen again, I'll report it here. Thanks!

Comment 25 Fedora Update System 2011-04-14 13:06:44 UTC
ypbind-1.32-8.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ypbind-1.32-8.fc15

Comment 26 Severin Gehwolf 2011-04-14 13:35:15 UTC
(In reply to comment #24)
> (In reply to comment #23)
> > (In reply to comment #21)
> > > ypbind[...]: Connection to D-BUS system message bus failed: Failed to connect
> > > to socket /var/run/dbus/system_bus_socket: Connection refused.
> > > 
> > > Unfortunately, I cannot always reproduce. I'll follow up should I be able to.
> > > However, when it occurrs, I get the above message over and over again. The
> > > shutdown process stalls for 2 minutes or so, only printing this message until
> > > it finally continues. I cannot interrupt this (ctrl+c).
> > 
> > Does it happen even in ypbind-1.32-7.fc15? There is no correct LSB header in
> > previous versions, so this could have been caused by massive parallelism of
> > tasks during boot up. However, the LSB header is defined now, so it should be
> > OK in this new update.

$ rpm -q ypbind
ypbind-1.32-7.fc16.x86_64

I am using this for a while now, and yesterday I was able to reproduce the system_bus_socket: Connection refused problem. It doesn't seem to be entirely fixed yet. This is just a FYI. I'm not overly concerned about this and I'm still foggy about how to reliably reproduce. Thanks!

Comment 27 Honza Horak 2011-04-14 13:46:51 UTC
(In reply to comment #26)
> $ rpm -q ypbind
> ypbind-1.32-7.fc16.x86_64
> 
> I am using this for a while now, and yesterday I was able to reproduce the
> system_bus_socket: Connection refused problem. It doesn't seem to be entirely
> fixed yet. This is just a FYI. I'm not overly concerned about this and I'm
> still foggy about how to reliably reproduce. Thanks!

I realized that ypbind-1.32-7-fc15 misses $rpcbind in its LSB header, which hypothetically can cause problems such that. I've prepared a new package ypbind-1.32-8.fc15 (see comment #25), which has a correct LSB header, so you can give it a try and see, if something changes.

Comment 28 Severin Gehwolf 2011-04-15 14:47:50 UTC
(In reply to comment #23)
> (In reply to comment #21)
> > ypbind[...]: Connection to D-BUS system message bus failed: Failed to connect
> > to socket /var/run/dbus/system_bus_socket: Connection refused.

Elaborating a bit more about this problem. I've noticed that _IF_ I see this problem, the immediately preceeding message printed to the console is something along the lines of:

pam_systemd(...): Failed to get user data <NIS-UID>
pam_su(...) ---> not sure about this

I'm not sure if this is related. Maybe this is only happening after I've su'ed to root from a NIS user, but that doesn't seem to be the entire story since I can't reliably reproduce using just those two steps. Hmmm.

Let me know when you've got a build with the $rpcbind in the LSB header ready. Thanks!

Comment 29 Fedora Update System 2011-04-23 03:59:12 UTC
ypbind-1.32-8.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 30 Severin Gehwolf 2011-04-26 13:22:29 UTC
(In reply to comment #27)
> (In reply to comment #26)
> > $ rpm -q ypbind
> > ypbind-1.32-7.fc16.x86_64
> > 
> > I am using this for a while now, and yesterday I was able to reproduce the
> > system_bus_socket: Connection refused problem. It doesn't seem to be entirely
> > fixed yet. This is just a FYI. I'm not overly concerned about this and I'm
> > still foggy about how to reliably reproduce. Thanks!
> 
> I realized that ypbind-1.32-7-fc15 misses $rpcbind in its LSB header, which
> hypothetically can cause problems such that. I've prepared a new package
> ypbind-1.32-8.fc15 (see comment #25), which has a correct LSB header, so you
> can give it a try and see, if something changes.

FWIW: I have ypbind-1.32-8.fc15 here and still have seen the system_bus_socket: Connection refused problem :(

Comment 31 Honza Horak 2011-04-27 14:05:01 UTC
You can try to add also messagebus to LSB header and see if it helps:

-# Required-Start: $local_fs $remote_fs $network $rpcbind
-# Required-Stop: $local_fs $remote_fs $network $rpcbind
+# Required-Start: $local_fs $remote_fs $network $rpcbind messagebus
+# Required-Stop: $local_fs $remote_fs $network $rpcbind messagebus

What version of NetworkManager do you use?

Comment 32 Severin Gehwolf 2011-04-27 14:25:07 UTC
(In reply to comment #31)
> What version of NetworkManager do you use?

$ rpm -q NetworkManager
NetworkManager-0.8.998-2.git20110406.fc15.x86_64

I'll try your other suggestion later today. Thanks!

Comment 33 Honza Horak 2011-04-28 11:51:12 UTC
Since this bug originally addressed another issue, which is already solved, I've copied the dbus-connection related comments to bug #700429 to track the issue separately.

Comment 34 Severin Gehwolf 2011-04-28 14:40:14 UTC
Ok. Thanks for moving things to the new bug.


Note You need to log in before you can comment on or make changes to this bug.