[NFS] Impossible de lancer rpcbind (résolu)

Applications, problèmes de configuration réseau
Spheerys
archer
Messages : 132
Inscription : jeu. 01 déc. 2011, 16:35

[NFS] Impossible de lancer rpcbind (résolu)

Message par Spheerys »

Hello,

Sur une nouvelle bécane, je ne parviens pas à monter correctement des partages NFS qui fonctionnent pourtant très bien sur mes autres ordi sous Arch.

Voilà ce que donne la commande mount :

Code : Tout sélectionner

sudo mount -t nfs 192.168.0.200:/volume1/backup /media/Backup                                                                                           ✘  8221 
Job for rpc-statd.service failed because the control process exited with error code.
See "systemctl  status rpc-statd.service" and "journalctl  -xe" for details.
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
systemctl status rpc-statd.service :

Code : Tout sélectionner

● rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-09-27 17:37:24 CEST; 1min 53s ago
  Process: 14524 ExecStart=/usr/sbin/rpc.statd (code=exited, status=1/FAILURE)

sept. 27 17:37:24 narayan rpc.statd[14543]: Running as root.  chown /var/lib/nfs to choose different user
sept. 27 17:37:24 narayan rpc.statd[14543]: Failed to register (statd, 1, udp): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:37:24 narayan rpc.statd[14543]: Failed to register (statd, 1, tcp): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:37:24 narayan rpc.statd[14543]: Failed to register (statd, 1, udp6): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:37:24 narayan rpc.statd[14543]: Failed to register (statd, 1, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:37:24 narayan rpc.statd[14543]: failed to create RPC listeners, exiting
sept. 27 17:37:24 narayan systemd[1]: rpc-statd.service: Control process exited, code=exited status=1
sept. 27 17:37:24 narayan systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
sept. 27 17:37:24 narayan systemd[1]: rpc-statd.service: Unit entered failed state.
sept. 27 17:37:24 narayan systemd[1]: rpc-statd.service: Failed with result 'exit-code'.
journalctl -xe :

Code : Tout sélectionner

-- Subject: L'unité (unit) rpcbind.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a échoué, avec le résultat failed.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Unit entered failed state.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Failed with result 'protocol'.
sept. 27 17:40:18 narayan systemd[1]: Starting RPC Bind...
-- Subject: L'unité (unit) rpcbind.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a commencé à démarrer.
sept. 27 17:40:18 narayan rpcbind[17019]: cannot get uid of 'rpc': Success
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Main process exited, code=exited, status=1/FAILURE
sept. 27 17:40:18 narayan systemd[1]: Failed to start RPC Bind.
-- Subject: L'unité (unit) rpcbind.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a échoué, avec le résultat failed.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Unit entered failed state.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Failed with result 'protocol'.
sept. 27 17:40:18 narayan systemd[1]: Starting RPC Bind...
-- Subject: L'unité (unit) rpcbind.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a commencé à démarrer.
sept. 27 17:40:18 narayan rpcbind[17020]: cannot get uid of 'rpc': Success
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Main process exited, code=exited, status=1/FAILURE
sept. 27 17:40:18 narayan systemd[1]: Failed to start RPC Bind.
-- Subject: L'unité (unit) rpcbind.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a échoué, avec le résultat failed.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Unit entered failed state.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Failed with result 'protocol'.
sept. 27 17:40:18 narayan systemd[1]: Starting RPC Bind...
-- Subject: L'unité (unit) rpcbind.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a commencé à démarrer.
sept. 27 17:40:18 narayan rpcbind[17021]: cannot get uid of 'rpc': Success
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Main process exited, code=exited, status=1/FAILURE
sept. 27 17:40:18 narayan systemd[1]: Failed to start RPC Bind.
-- Subject: L'unité (unit) rpcbind.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a échoué, avec le résultat failed.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Unit entered failed state.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Failed with result 'exit-code'.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Start request repeated too quickly.
sept. 27 17:40:18 narayan systemd[1]: Failed to start RPC Bind.
-- Subject: L'unité (unit) rpcbind.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpcbind.service a échoué, avec le résultat failed.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.socket: Unit entered failed state.
sept. 27 17:40:18 narayan systemd[1]: rpcbind.service: Failed with result 'exit-code'.
sept. 27 17:40:19 narayan rpc.statd[17035]: Version 2.1.1 starting
sept. 27 17:40:19 narayan rpc.statd[17035]: Flags: TI-RPC
sept. 27 17:40:19 narayan rpc.statd[17035]: Running as root.  chown /var/lib/nfs to choose different user
sept. 27 17:40:19 narayan rpc.statd[17035]: Failed to register (statd, 1, udp): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17035]: Failed to register (statd, 1, tcp): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17035]: Failed to register (statd, 1, udp6): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17035]: Failed to register (statd, 1, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17035]: failed to create RPC listeners, exiting
sept. 27 17:40:19 narayan systemd[1]: rpc-statd.service: Control process exited, code=exited status=1
sept. 27 17:40:19 narayan systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
-- Subject: L'unité (unit) rpc-statd.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) rpc-statd.service a échoué, avec le résultat failed.
sept. 27 17:40:19 narayan systemd[1]: rpc-statd.service: Unit entered failed state.
sept. 27 17:40:19 narayan systemd[1]: rpc-statd.service: Failed with result 'exit-code'.
sept. 27 17:40:19 narayan rpc.statd[17036]: Version 2.1.1 starting
sept. 27 17:40:19 narayan rpc.statd[17036]: Flags: TI-RPC
sept. 27 17:40:19 narayan rpc.statd[17036]: Running as root.  chown /var/lib/nfs to choose different user
sept. 27 17:40:19 narayan rpc.statd[17036]: Failed to register (statd, 1, udp): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17036]: Failed to register (statd, 1, tcp): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17036]: Failed to register (statd, 1, udp6): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17036]: Failed to register (statd, 1, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
sept. 27 17:40:19 narayan rpc.statd[17036]: failed to create RPC listeners, exiting
sept. 27 17:40:29 narayan sudo[16996]: pam_unix(sudo:session): session closed for user root
rpcinfo :

Code : Tout sélectionner

rpcinfo: can't contact rpcbind: RPC: Remote system error - Connection refused
Qu'ais-je bien pu oublier ?
Dernière modification par Spheerys le mer. 27 sept. 2017, 21:47, modifié 1 fois.
Spheerys
archer
Messages : 132
Inscription : jeu. 01 déc. 2011, 16:35

Re: [NFS] Job for rpc-statd.service failed because the control process exited with error code

Message par Spheerys »

J'ai trouvé !

L'utilisateur rpc n'était pas présent, pour une raison inconnue :!:

J'ai donc ajouté 2 lignes à mon fichier /etc/passwd :

Code : Tout sélectionner

rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17222
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [NFS] Impossible de lancer rpcbind (résolu)

Message par benjarobin »

rpcuser n'existe pas, et la modification à la main de /etc/passwd est fortement non recommandé. Je te recommande d'annuler tes changement et simplement de réinstaller le paquet rpcbind qui ajoute l'utilisateur rpc lors de son installation
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Spheerys
archer
Messages : 132
Inscription : jeu. 01 déc. 2011, 16:35

Re: [NFS] Impossible de lancer rpcbind (résolu)

Message par Spheerys »

En effet une réinstallation de rpcbind a fait tout ce qu'il fallait proprement !
Merci du conseil :)
Répondre