Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3790

Troubleshooting • occasional samba mount failures at reboot

$
0
0
I have a raspberry PI on the same network as a WD EX2 NAS
I am having occasional failures to perform an automount at boot time. Most times it works.


the FSTAB content is
//192.168.1.194/docs /home/brian/northfields cifs nofail,username=zzz,password=XXXXX,iocharset=utf8,sec=ntlmssp,vers=1.0,_netdev,x-systemd.automount 0 0
//192.168.1.194/Backups /home/brian/BackUps cifs nofail,username=zzz,password=XXXXX,iocharset=utf8,sec=ntlmssp,vers=1.0,_netdev,x-systemd.automount 0 0
//192.168.1.194/BackUps /home/brian/backupsdel cifs nofail,username=zzz,password=XXXXX,iocharset=utf8,sec=ntlmssp,vers=1.0,uid=www-data,gid=www-data,_netdev,x-systemd.automount 0 0

A successful mount looks like
Mar 14 07:17:25 raspberrypi1 systemd[1]: home-brian-northfields.automount: Got automount request for /home/brian/northfields, triggered by 1115 (pool)
Mar 14 07:17:25 raspberrypi1 systemd[1]: Reached target Network is Online.
Mar 14 07:17:26 raspberrypi1 systemd[1]: Mounting /home/brian/northfields...
Mar 14 07:17:26 raspberrypi1 systemd[1]: home-brian-backupsdel.automount: Got automount request for /home/brian/backupsdel, triggered by 1119 (pool)
Mar 14 07:17:26 raspberrypi1 systemd[1]: home-brian-BackUps.automount: Got automount request for /home/brian/BackUps, triggered by 1123 (pool)
Mar 14 07:17:26 raspberrypi1 systemd[1]: Mounting /home/brian/BackUps...
Mar 14 07:17:26 raspberrypi1 systemd[1]: Mounting /home/brian/backupsdel...
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.695740] Key type cifs.spnego registered
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.695773] Key type cifs.idmap registered
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.697173] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.697173]
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.697209] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.697233] CIFS: Attempting to mount \\192.168.1.194\BackUps
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.699613] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.699613]
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.699637] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.742753] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.742753]
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.742802] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 07:17:26 raspberrypi1 kernel: [ 31.936245] CIFS: Attempting to mount \\192.168.1.194\docs
Mar 14 07:17:26 raspberrypi1 systemd[1]: Mounted /home/brian/backupsdel.
Mar 14 07:17:26 raspberrypi1 kernel: [ 32.001145] CIFS: Attempting to mount \\192.168.1.194\Backups
Mar 14 07:17:26 raspberrypi1 systemd[1]: Mounted /home/brian/northfields.
Mar 14 07:17:26 raspberrypi1 systemd[1]: Mounted /home/brian/BackUps.

an unsuccessful one is much longer and starts like this
Mar 14 14:28:52 raspberrypi1 systemd[1]: home-brian-northfields.automount: Got automount request for /home/brian/northfields, triggered by 1099 (pool)
Mar 14 14:28:52 raspberrypi1 systemd[1]: home-brian-backupsdel.automount: Got automount request for /home/brian/backupsdel, triggered by 1103 (pool)
Mar 14 14:28:52 raspberrypi1 systemd[1]: home-brian-BackUps.automount: Got automount request for /home/brian/BackUps, triggered by 1097 (pool)
Mar 14 14:29:06 raspberrypi1 systemd[1]: Reached target Network is Online.
Mar 14 14:29:06 raspberrypi1 systemd[1]: Mounting /home/brian/BackUps...
Mar 14 14:29:06 raspberrypi1 systemd[1]: Mounting /home/brian/backupsdel...
Mar 14 14:29:06 raspberrypi1 systemd[1]: Mounting /home/brian/northfields...
Mar 14 14:29:06 raspberrypi1 mount[1308]: mount error(101): Network is unreachable
Mar 14 14:29:06 raspberrypi1 mount[1308]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Mar 14 14:29:06 raspberrypi1 mount[1306]: mount error(101): Network is unreachable
Mar 14 14:29:06 raspberrypi1 mount[1306]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Mar 14 14:29:06 raspberrypi1 systemd[1]: home-brian-BackUps.mount: Mount process exited, code=exited, status=32/n/a
Mar 14 14:29:06 raspberrypi1 mount[1309]: mount error(101): Network is unreachable
Mar 14 14:29:06 raspberrypi1 mount[1309]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Mar 14 14:29:06 raspberrypi1 systemd[1]: home-brian-BackUps.mount: Failed with result 'exit-code'.
Mar 14 14:29:06 raspberrypi1 systemd[1]: Failed to mount /home/brian/BackUps.

the kernal log at the error time is
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400428] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400433] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400453] CIFS: Attempting to mount \\192.168.1.194\BackUps
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400505] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400505]
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400513] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400549] CIFS: VFS: Error connecting to socket. Aborting operation.
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400570] CIFS: VFS: cifs_mount failed w/return code = -101
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400581] CIFS: Attempting to mount \\192.168.1.194\Backups
Mar 14 14:29:06 raspberrypi1 kernel: [ 45.400646] CIFS: VFS: Error connecting to socket. Aborting operation.

I am aware of the warning msg, but when i set this all up a few years ago this was the only mount format that would work. I didnt have mount failures in those days. its only started in recent months

I'd really appreciate any ideas otherwise i just have to keep rebooting until it works!

I had one thought that maybe the NAS was timing down due to lack of use, and so maybe the attempted mount timed out and then the next reboot if done soon enough then works?


thanks

Statistics: Posted by brianharding — Fri Mar 14, 2025 3:30 pm



Viewing all articles
Browse latest Browse all 3790

Trending Articles