Hello, While I was trying to use the NFS server provided by the nfs-utils.bb recipe I've noticed an unexpected behavior when trying to start the systemd service using 'systemctl start nfs-server.service': when I first call this command nfs-server fails to load and I need to call it a second time to make it work properly.
After noticing this, I tried to compare these .service files with the ones provide by other distros and tried to make some changes on it but I wasn't successful. I know this is not a big problem, but making two calls for 'systemctl start' seems not to be the ideal behavior and I'd like to fix this. Does anyone know how to make it work properly? I'm currently using the recipe provided by Krogoth 2.1.1. Some information: After a reboot and using 'systemctl start nfs-server.service', I get the following messages using 'journalctl -e': Oct 04 16:53:09 novoom systemd[1]: Starting RPC Bind Service... Oct 04 16:53:10 novoom rpcbind[804]: cannot create socket for udp6 Oct 04 16:53:10 novoom rpcbind[804]: cannot create socket for tcp6 Oct 04 16:53:10 novoom systemd[1]: Started RPC Bind Service. Oct 04 16:53:10 novoom systemd[1]: Starting NFS Server... Oct 04 16:53:10 novoom rpc.nfsd[814]: rpc.nfsd: address family AF_INET6 not supported by protocol TCP Oct 04 16:53:10 novoom rpc.nfsd[814]: rpc.nfsd: unable to set any sockets for nfsd Oct 04 16:53:10 novoom systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE Oct 04 16:53:10 novoom systemd[1]: Failed to start NFS Server. Oct 04 16:53:10 novoom systemd[1]: Dependency failed for NFS Mount Daemon. Oct 04 16:53:10 novoom systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'. Oct 04 16:53:10 novoom systemd[1]: nfs-server.service: Unit entered failed state. Oct 04 16:53:10 novoom systemd[1]: nfs-server.service: Failed with result 'exit-code'. Oct 04 16:53:10 novoom root[826]: root()=[ 69 systemctl start nfs-server.service] After the second time: Oct 04 16:55:40 novoom systemd[1]: Starting NFS Server... Oct 04 16:55:40 novoom kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Oct 04 16:55:40 novoom kernel: NFSD: starting 90-second grace period (net c193d200) Oct 04 16:55:40 novoom systemd[1]: Started NFS Server. Oct 04 16:55:40 novoom systemd[1]: Started NFS Mount Daemon. Oct 04 16:55:40 novoom root[1974]: root()=[ 74 systemctl start nfs-server.service] Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: svc_tli_create: could not open connection for udp6 Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: svc_tli_create: could not open connection for tcp6 Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: svc_tli_create: could not open connection for udp6 Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: svc_tli_create: could not open connection for tcp6 Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: svc_tli_create: could not open connection for udp6 Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: svc_tli_create: could not open connection for tcp6 Oct 04 16:55:40 novoom rpc.mountd[1970]: Version 1.3.3 starting Oct 04 16:55:40 novoom rpc.mountd[1970]: rpc.mountd: Version 1.3.3 starting Cheers, Pedro
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto