Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [~amd64] NFS server broken again :(
Date: Mon, 27 Oct 2014 19:56:42
Message-Id: CADPrc81nMHeq7K4UZc1Hg7wqk5GRxmL-WYV9St5-0m2P32f-XA@mail.gmail.com
In Reply to: [gentoo-user] [~amd64] NFS server broken again :( by walt
1 On Mon, Oct 27, 2014 at 1:38 PM, walt <w41ter@×××××.com> wrote:
2 > Last night when I powered off my machines NFS was working perfectly. Today
3 > it's broken again for the nth time:
4 >
5 > #systemctl status nfs-server
6 > ● nfs-server.service - NFS server and services
7 > Loaded: loaded (/usr/lib64/systemd/system/nfs-server.service; enabled)
8 > Active: failed (Result: exit-code) since Mon 2014-10-27 11:50:38 PDT; 25min ago
9 > Process: 896 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
10 > Process: 893 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
11 > Process: 939 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=1/FAILURE)
12 > Process: 936 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
13 > Main PID: 939 (code=exited, status=1/FAILURE)
14 >
15 > Oct 27 11:50:38 a6 rpc.nfsd[939]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
16 > Oct 27 11:50:38 a6 rpc.nfsd[939]: rpc.nfsd: unable to set any sockets for nfsd
17 > Oct 27 11:50:38 a6 systemd[1]: nfs-server.service: main process exited, code=exited, status=1/FAILURE
18 > Oct 27 11:50:38 a6 systemd[1]: Failed to start NFS server and services.
19 > Oct 27 11:50:38 a6 systemd[1]: Unit nfs-server.service entered failed state.
20 >
21 > #rpc.nfsd -d
22 > rpc.nfsd: Checking netconfig for visible protocols.
23 > rpc.nfsd: Enabling inet udp.
24 > rpc.nfsd: Enabling inet tcp.
25 > rpc.nfsd: Enabling inet6 udp.
26 > rpc.nfsd: Enabling inet6 tcp.
27 > rpc.nfsd: knfsd is currently down
28 > rpc.nfsd: Writing version string to kernel: -2 +3 +4
29 > rpc.nfsd: Creating inet TCP socket.
30 > rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
31 > rpc.nfsd: Creating inet6 TCP socket.
32 > rpc.nfsd: writing fd to kernel failed: errno 97 (Address family not supported by protocol)
33 > rpc.nfsd: unable to set any sockets for nfsd
34 >
35 > Same kernel (3.16.6-gentoo) and nfs-utils-1.3.0-r1 I've been using for weeks
36 > with no trouble, so why today?
37 >
38 > Packages updated yesterday have (I think) nothing to do with nfs:
39 >
40 > #qlop -l |grep 'Oct 26'
41 > Fri Oct 26 03:07:58 2012 >>> app-text/calibre-0.9.4
42 > Fri Oct 26 03:08:13 2012 >>> app-mobilephone/obexd-0.46
43 > Fri Oct 26 13:41:39 2012 >>> sys-fs/fuse-2.9.1-r1
44 > Fri Oct 26 13:41:47 2012 >>> sys-fs/mtpfs-1.1
45 > Sat Oct 26 15:34:57 2013 >>> media-video/avidemux-2.5.6-r2
46 > Sun Oct 26 07:09:51 2014 >>> sys-libs/timezone-data-2014i-r1
47 > Sun Oct 26 07:10:10 2014 >>> dev-python/py-1.4.26
48 > Sun Oct 26 07:10:25 2014 >>> dev-python/pytest-2.6.4
49 > Sun Oct 26 07:14:05 2014 >>> dev-lang/perl-5.20.1-r2
50 > Sun Oct 26 07:14:28 2014 >>> dev-perl/DBI-1.631.0
51 > Sun Oct 26 07:14:49 2014 >>> net-libs/polarssl-1.3.9
52 > Sun Oct 26 07:15:25 2014 >>> dev-python/pillow-2.5.3-r1
53 > Sun Oct 26 08:41:38 2014 >>> net-libs/webkit-gtk-2.4.7
54 >
55 > Any ideas on how to debug this?
56
57 I think I know the answer. Some days ago you moved /etc/conf.d for
58 NetworkManager to work, right? Where does the environment variable
59 RPCNFSDARGS is defined? I'm willing to bet that is in a /etc/conf.d
60 file.
61
62 Could you please post here the contents of nfs-server.service, and if
63 it exists, the files inside /etc/systemd/system/nfs-server.service.d
64 and their contents?
65
66 Regards.
67 --
68 Canek Peláez Valdés
69 Profesor de asignatura, Facultad de Ciencias
70 Universidad Nacional Autónoma de México

Replies

Subject Author
[gentoo-user] Re: [~amd64] NFS server broken again :( walt <w41ter@×××××.com>