<div dir="ltr">On Tue, Feb 23, 2016 at 9:19 AM, Sandro Tosi <<a href="mailto:morph@debian.org">morph@debian.org</a>> wrote:<br>> quick update: we had a couple of (real) nfs issues and<br>> misconfiguration (meeh) that made the script fail even if it shouldnt<br>> have, so no news yet; the reboot loop just restarted and will<br>> periodically check it and report back if something comes up.<br><br>so well, we just needed to wait a bit :)<div><br></div><div>here it is:<br><br># journalctl -alb | grep -nE "cron|NFSSERVER"<br>1012:Feb 23 06:50:42 SERVER systemd[1]: Installed new job mnt-NFSSERVER_VOL.mount/start as 99<br>1014:Feb 23 06:50:42 SERVER systemd[1]: Installed new job cron.service/start as 101<br>1714:Feb 23 06:50:43 SERVER systemd[1]: Mounting /mnt/NFSSERVER_VOL...<br>1716:Feb 23 06:50:43 SERVER systemd[1]: About to execute: /bin/mount -n XXX.YYY.32.75:/vol/VOL /mnt/NFSSERVER_VOL -t nfs -o ro,intr,nolock,tcp,rdirplus,noatime,_netdev<br>1718:Feb 23 06:50:43 SERVER systemd[1]: mnt-NFSSERVER_VOL.mount changed dead -> mounting<br>1720:Feb 23 06:50:43 SERVER systemd[574]: Executing: /bin/mount -n XXX.YYY.32.75:/vol/VOL /mnt/NFSSERVER_VOL -t nfs -o ro,intr,nolock,tcp,rdirplus,noatime,_netdev<br>1905:Feb 23 06:52:13 SERVER systemd[1]: mnt-NFSSERVER_VOL.mount mounting timed out. Stopping.<br>1906:Feb 23 06:52:13 SERVER systemd[1]: mnt-NFSSERVER_VOL.mount changed mounting -> mounting-sigterm<br>1915:Feb 23 06:52:13 SERVER systemd[1]: Child 574 belongs to mnt-NFSSERVER_VOL.mount<br>1916:Feb 23 06:52:13 SERVER systemd[1]: mnt-NFSSERVER_VOL.mount mount process exited, code=killed status=15<br>1917:Feb 23 06:52:13 SERVER systemd[1]: mnt-NFSSERVER_VOL.mount changed mounting-sigterm -> mounted<br>1918:Feb 23 06:52:13 SERVER systemd[1]: Job mnt-NFSSERVER_VOL.mount/start finished, result=done<br>1919:Feb 23 06:52:13 SERVER systemd[1]: Mounted /mnt/NFSSERVER_VOL.<br>2025:Feb 23 06:52:13 SERVER systemd[1]: About to execute: /usr/sbin/cron -f $EXTRA_OPTS<br>2026:Feb 23 06:52:13 SERVER systemd[1]: Forked /usr/sbin/cron as 786<br>2027:Feb 23 06:52:13 SERVER systemd[1]: cron.service changed dead -> running<br>2028:Feb 23 06:52:13 SERVER systemd[1]: Job cron.service/start finished, result=done<br>2029:Feb 23 06:52:13 SERVER systemd[786]: Executing: /usr/sbin/cron -f<br>2038:Feb 23 06:52:13 SERVER cron[786]: (CRON) INFO (pidfile fd = 3)<br>2128:Feb 23 06:52:13 SERVER cron[786]: (CRON) INFO (Running @reboot jobs)<br>2300:Feb 23 06:52:13 SERVER systemd[1]: mnt-NFSSERVER_VOL.mount changed mounted -> failed<br>2301:Feb 23 06:52:13 SERVER systemd[1]: Failed to destroy cgroup /system.slice/mnt-NFSSERVER_VOL.mount: Device or resource busy<br>2302:Feb 23 06:52:13 SERVER systemd[1]: Unit mnt-NFSSERVER_VOL.mount entered failed state.<br>2303:Feb 23 06:52:13 SERVER systemd[1]: Sent message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1/unit/mnt_2dNFSSERVER_5fVOL_2emount interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=30 reply_cookie=0 error=n/a<br>2304:Feb 23 06:52:13 SERVER systemd[1]: Sent message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1/unit/mnt_2dNFSSERVER_5fVOL_2emount interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=31 reply_cookie=0 error=n/a<br><br>so 1m30s passed and the mount didnt come up, which is (one of) the original issue (usually, running mount -t nfs -a will bring it up, even just right after the failure at boot, so it seems like it's not retried?). i check in the journalctl output around those lines, there was additional msg relevant to this.<div><br></div><div>also note like cron.service is started, even if we configured:</div><div><br></div><div><div># grep remote-fs /etc/systemd/system/cron.service</div><div>Requires=remote-fs.target</div><div>After=remote-fs.target</div><div><br></div><div>checking the status of that target:</div><div><br></div><div><div># systemctl status remote-fs.target</div><div>● remote-fs.target - Remote File Systems</div><div>   Loaded: loaded (/lib/systemd/system/remote-fs.target; enabled)</div><div>  Drop-In: /run/systemd/generator/remote-fs.target.d</div><div>           └─50-insserv.conf.conf</div><div>   Active: active since Tue 2016-02-23 06:52:13 EST; 3h 15min ago</div><div>     Docs: man:systemd.special(7)</div><div><br></div><div>Feb 23 06:52:13 SERVER systemd[1]: Starting Remote File Systems.</div><div>Feb 23 06:52:13 SERVER systemd[1]: Job remote-fs.target/start finished, result=done</div><div>Feb 23 06:52:13 SERVER systemd[1]: Reached target Remote File Systems.</div></div><div><br></div><div>so at the same time when mnt-NFSSERVER_VOL.mount is marked as failed, the remote-fs.target is marked as loaded successfully (which seems the wrong status to me), and in fact the only failed unit is:</div><div><br></div><div><div># systemctl --failed</div><div>  UNIT                    LOAD   ACTIVE SUB    DESCRIPTION</div><div>● mnt-NFSSERVER_VOL.mount loaded failed failed /mnt/NFSSERVER_VOL</div><div><br></div><div>1 loaded units listed. Pass --all to see loaded but inactive units, too.<br></div><div><br></div></div><div><br></div><div>can I provide more logs/info? do you see anything wrong on this configuration that we might want to change?</div><div><br></div><div>thanks a ton again!</div><br>-- <br>Sandro "morph" Tosi<br>My website: <a href="http://sandrotosi.me/">http://sandrotosi.me/</a><br>Me at Debian: <a href="http://wiki.debian.org/SandroTosi">http://wiki.debian.org/SandroTosi</a><br>G+: <a href="https://plus.google.com/u/0/+SandroTosi">https://plus.google.com/u/0/+SandroTosi</a></div></div></div>