Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd missing unit rpcbind.socket
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 874
Location: USA

PostPosted: Wed Aug 28, 2013 4:06 pm    Post subject: systemd missing unit rpcbind.socket Reply with quote

I have a couple of NFS shares, which are in my fstab. On bootup they do not get mount. I created a 'rc-local.service' service, which doesn't work either.

rc-local.service
Code:
#cat rc-local.service
[Unit]
Description=/etc/local.d Compatibility
ConditionPathExists=/etc/local.d

[Service]
Type=forking
ExecStart=/etc/local.d/start_me_all.sh
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99


[Install]
WantedBy=multi-user.target


on bootup i see this first:
Code:
[    1.584023] systemd[1]: Cannot add dependency job for unit rpcbind.service, ignoring: Unit rpcbind.socket failed to load: No such file or directory. See system logs and 'systemctl status rpcbind.socket' for details.
There is no rpcbind.service file on my system.

When my rpc-local.service starts I see this:
Code:
...
Aug 28 07:08:40 ninapie systemd[1]: Mounting /home/cr0t/Dropbox...
Aug 28 07:08:40 ninapie mount[1630]: mount.nfs4: Failed to resolve server datastorm: System error
...
Aug 28 07:08:40 ninapie systemd[1]: home-cr0t-Dropbox.mount mount process exited, code=exited status=32
Aug 28 07:08:40 ninapie systemd[1]: Failed to mount /home/cr0t/Dropbox.
Aug 28 07:08:40 ninapie systemd[1]: Unit home-cr0t-Dropbox.mount entered failed state.
...

As soon as I login i can start a `mount -a` and everything mounts up
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 874
Location: USA

PostPosted: Wed Aug 28, 2013 5:44 pm    Post subject: Reply with quote

I manually created the file and restarted, but has no impact.
Code:
 cat /usr/lib/systemd/system/rpcbind.socket
[Unit]
Description=RPCbind Server Activation Socket

[Socket]
ListenStream=/var/run/rpcbind.sock

[Install]
WantedBy=sockets.target
Only the error message is gone, but the old one still exist.
Code:
Aug 28 13:40:00 ninapie systemd[1]: home-cr0t-Dropbox.mount mount process exited, code=exited status=32
Aug 28 13:40:00 ninapie systemd[1]: Failed to mount /home/cr0t/Dropbox.
Aug 28 13:40:00 ninapie systemd[1]: Unit home-cr0t-Dropbox.mount entered failed state.

_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 874
Location: USA

PostPosted: Mon Sep 02, 2013 2:47 pm    Post subject: Reply with quote

I fixed the issue, however, the solution is pretty stupid.

My rc-local.service calls /etc/local.d/start_me_all.sh. Now /etc/local.d/start_me_all.sh calls a bunch of scripts. One of them mounts the nfs shares.

I inserted a `sleep 10` before the system tries to mount the nfs shares. It fixes the problem, but is not the best solution.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1223
Location: 42.68n 85.41w

PostPosted: Mon Sep 02, 2013 3:05 pm    Post subject: Reply with quote

bugs.gentoo.org <--- report it here
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
http://ecx.images-amazon.com/images/I/81Ku-vxIb3L._SL1500_.jpg
http://wiki.gentoo.org/wiki/Special:Contributions/666threesixes666
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum