Re: [Bug 927908] Re: rpc.idmapd refuses to start
On Thu, 16 Feb 2012 00:35:27 -, Steve Langasek steve.langa...@canonical.com wrote: Oh, of course; the stop/pre-start message is precisely because the '|| { stop; exit 0; }' is being called, and this is the output of the stop command. So somehow, the job is failing to properly handle the NEED_IDMAPD setting in /etc/default/nfs-common. Could you attach this file as well? Thanks for the hint!! just mentioned that i set NEED_IDMAPD=y instead of =yes Now the idmapd job can be started with service idmapd start. However the logfile is empty: local@vogone:~$ cat /etc/default/nfs-common # If you do not set values for the NEED_ options, they will be attempted # autodetected; this should be sufficient for most people. Valid alternatives # for the NEED_ options are yes and no. # Do you want to start the statd daemon? It is not needed for NFSv4. NEED_STATD= # Options for rpc.statd. # Should rpc.statd listen on a specific port? This is especially useful # when you have a port-based firewall. To use a fixed port, set this # this variable to a statd argument like: --port 4000 --outgoing-port 4001. # For more information, see rpc.statd(8) or http://wiki.debian.org/SecuringNFS STATDOPTS= # Do you want to start the idmapd daemon? It is only needed for NFSv4. NEED_IDMAPD=yes # Do you want to start the gssd daemon? It is required for Kerberos mounts. NEED_GSSD= local@vogone:~$ sudo vim /etc/default/nfs-common [sudo] password for local: local@vogone:~$ sudo service idmapd restart restart: Unknown instance: local@vogone:~$ sudo service idmapd start idmapd start/running, process 2295 local@vogone:~$ cat /var/log/idmapd.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 927908] Re: rpc.idmapd refuses to start
On Sat, Feb 11, 2012 at 02:42:16PM -, manut wrote: Instead, please try adding just 'exec /var/log/idmapd.log 21' as the first line of the pre-start script. This will give you a /var/log/idmapd.log showing what's going wrong. Thanks for the hint. I removed the 'exec echo' lines and now get the following log: local@vogone:~$ cat /var/log/idmapd.log idmapd stop/pre-start, process 848 This looks like the output that results from redirecting the output of the 'start' command, *not* the result of running 'exec /var/log/idmapd.log 21' *within* the job. Could you attach your /etc/init/idmapd.conf to this bug report? -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developerhttp://www.debian.org/ slanga...@ubuntu.com vor...@debian.org -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 927908] Re: rpc.idmapd refuses to start
On Wed, Feb 15, 2012 at 10:40:47PM -, manut wrote: ** Attachment added: idmapd.conf https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+attachment/2743747/+files/idmapd.conf Ok, that looks reasonable. Is there any chance that you accidentally ran this 'exec' command on the commandline while you were preparing this? If you try to start the job now, do you get more meaningful output in /var/log/idmapd.conf? -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developerhttp://www.debian.org/ slanga...@ubuntu.com vor...@debian.org -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 927908] Re: rpc.idmapd refuses to start
exec echo 2 end script Instead, please try adding just 'exec /var/log/idmapd.log 21' as the first line of the pre-start script. This will give you a /var/log/idmapd.log showing what's going wrong. Thanks for the hint. I removed the 'exec echo' lines and now get the following log: local@vogone:~$ cat /var/log/idmapd.log idmapd stop/pre-start, process 848 local@vogone:~$ sudo status idmapd [sudo] password for local: idmapd stop/waiting local@vogone:~$ If i try to start idmapd manually it still works: root@vogone:~# rpc.idmapd -v -f rpc.idmapd: libnfsidmap: using domain: ABCDE.net rpc.idmapd: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch rpc.idmapd: Expiration time is 600 seconds. rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel rpc.idmapd: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory root@vogone:~# mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefsroot@vogone:~# rpc.idmapd -v -f rpc.idmapd: libnfsidmap: using domain: ABCDE.net rpc.idmapd: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch rpc.idmapd: Expiration time is 600 seconds. rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel but the idmapper is now running after a reboot. Surprising. Can you reproduce the original failure now? Does 'status idmapd' show the upstart job running? Yes, if i keep the exec echo lines in the config file i get the pid with the status command: local@vogone:~$ status idmapd idmapd start/running, process 884 -- You received this bug notification because you are subscribed to the bug report. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start Status in “nfs-utils” package in Ubuntu: Invalid Bug description: The following lines in /etc/fstab are missing: rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults0 0 nfsd/proc/fs/nfsd nfsddefaults0 0 so rpc.idmapd refuses to start with this log: rpc.idmapd -v -f rpc.idmapd: libnfsidmap: using domain: blubberblase rpc.idmapd: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch rpc.idmapd: Expiration time is 600 seconds. rpc.idmapd: nfsdopenone: Opening /proc/net/rpc/nfs4.nametoid/channel failed: errno 2 (No such file or directory) rpc.idmapd: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 927908] Re: rpc.idmapd refuses to start
On Tue, 07 Feb 2012 23:56:41 -, Steve Langasek steve.langa...@canonical.com wrote: On Tue, Feb 07, 2012 at 09:50:27AM -, manut wrote: Even if i start it via upstart it doesn't work. local@vogone:~$ sudo service idmapd start idmapd stop/pre-start, process 5239 local@vogone:~$ ps -A | grep 5239 local@vogone:~$ Which version of Ubuntu is this? Your report doesn't mention. (Please use the 'ubuntu-bug' command for filing bugs, when possible.) it's oneiric with latest updates in /etc/default/nfs-common # Do you want to start the idmapd daemon? It is only needed for NFSv4. NEED_IDMAPD=y is set. FWIW, this is no longer needed as of precise. No clue, how to debug the upstart job. But if i mount nfsd and rpc_pipefs and then start rpc.idmapd -v -f it works. If you happen to be using precise, you can boot with --log to get logging of upstart job output. Otherwise, we can try to dissect this manually. The output of the start command suggests, however, that the pre-start script has decided idmapd isn't meant to be started; so further debugging requires knowing which Ubuntu release you're running. tried to debug it by my own. I added some 'exec echo' s into the idmapd.conf: pre-start script exec echo hihi do_modprobe() { .. if ! mountpoint -q $PIPEFS_MOUNTPOINT then mount -t rpc_pipefs rpc_pipefs $PIPEFS_MOUNTPOINT fi exec echo 2 end script exec echo 3 exec rpc.idmapd ... However i can't see those prints in the syslog, but the idmapper is now running after a reboot. I'd like to understand what is happening here. Because the next step is getting autofs with ldap working after startup that is also not working 'out of the box' with ubuntu. :( Thanks for your help -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 927908] Re: rpc.idmapd refuses to start
On Thu, Feb 09, 2012 at 06:38:57PM -, manut wrote: Which version of Ubuntu is this? Your report doesn't mention. (Please use the 'ubuntu-bug' command for filing bugs, when possible.) it's oneiric with latest updates Ok. The oneiric upstart doesn't have the same job logging facilities that we could use in precise to debug this. tried to debug it by my own. I added some 'exec echo' s into the idmapd.conf: pre-start script exec echo hihi do_modprobe() { .. if ! mountpoint -q $PIPEFS_MOUNTPOINT then mount -t rpc_pipefs rpc_pipefs $PIPEFS_MOUNTPOINT fi exec echo 2 end script Instead, please try adding just 'exec /var/log/idmapd.log 21' as the first line of the pre-start script. This will give you a /var/log/idmapd.log showing what's going wrong. exec echo 3 exec rpc.idmapd This is definitely broken. There should only be one 'exec' line. I don't know which would take precedence when there are two of them. However i can't see those prints in the syslog, Yes, the output doesn't go to syslog. but the idmapper is now running after a reboot. Surprising. Can you reproduce the original failure now? Does 'status idmapd' show the upstart job running? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 927908] Re: rpc.idmapd refuses to start
On Tue, Feb 07, 2012 at 09:50:27AM -, manut wrote: Even if i start it via upstart it doesn't work. local@vogone:~$ sudo service idmapd start idmapd stop/pre-start, process 5239 local@vogone:~$ ps -A | grep 5239 local@vogone:~$ Which version of Ubuntu is this? Your report doesn't mention. (Please use the 'ubuntu-bug' command for filing bugs, when possible.) in /etc/default/nfs-common # Do you want to start the idmapd daemon? It is only needed for NFSv4. NEED_IDMAPD=y is set. FWIW, this is no longer needed as of precise. No clue, how to debug the upstart job. But if i mount nfsd and rpc_pipefs and then start rpc.idmapd -v -f it works. If you happen to be using precise, you can boot with --log to get logging of upstart job output. Otherwise, we can try to dissect this manually. The output of the start command suggests, however, that the pre-start script has decided idmapd isn't meant to be started; so further debugging requires knowing which Ubuntu release you're running. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developerhttp://www.debian.org/ slanga...@ubuntu.com vor...@debian.org -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/927908 Title: rpc.idmapd refuses to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/927908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs