Hello, When rpcbind is socket activated by systemd, it's not creating the rpcbind.sock socket itself but it is still trying to unlink() it in the terminate() function. On Fedora, the socket is created as root by systemd but then the daemon is running as rpc user, this means that when the terminate function is called it has not the permission to remove the socket; on fedora strace shows me: unlink("/var/run/rpcbind.lock") = -1 EACCES (Permission denied) But on other distribution, like debian, where rpcbind daemon is running as root (we could discuss whether it's a good idea or not), the rpcbind daemon has the permission to remove the socket and then the daemon is never respawned. The user needs to manually restart the rcpbind.socket unit. I guess that the daemon should try to remember if it has created the socket, and if it's not the case it should leave it alone.
The upstream post http://marc.info/?l=linux-nfs&m=144708364412358&w=2
Created attachment 1091963 [details] 0001-Delete-the-unix-socket-only-if-we-have-created-it.patch
I can confirm that the attached patch fixed my issue where rpcbind daemon was taking the responsibility of removing the socket even if it didn't create it. If rpcbind is not socket activated, it removes the socket on exit like it was doing before
(In reply to Laurent Bigonville from comment #3) > I can confirm that the attached patch fixed my issue where rpcbind daemon > was taking the responsibility of removing the socket even if it didn't > create it. > > If rpcbind is not socket activated, it removes the socket on exit like it > was doing before Would you mind posting the patch to the NFS upstream (linux-nfs.org) with the proper Subject, description and Signed-off-by: line? I'll take it from there... TIA!
Upstream Commit: commit 3a664b1b5a310df39bd0f325b0edb1deb31c2249 Author: Laurent Bigonville <bigon> Date: Wed Nov 18 14:34:26 2015 -0500 Delete the unix socket only if we have created it
rpcbind-0.2.3-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-1d70b94342
rpcbind-0.2.3-4.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update rpcbind' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-c5f1daca43
rpcbind-0.2.3-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update rpcbind' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-1d70b94342
rpcbind-0.2.3-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
rpcbind-0.2.3-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.