Unable to access NAS since recent update

I have a WD MyCloud Mirror that hosts my media, and use fstab to auto-mount the drive; since the latest update, I’ve been unable to access the shared folders. I can still access normally via my Windows computer, and my Android devices, I just can’t access via OSMC.

Here is a log pulled from a reboot and trying to play an album from my library: https://paste.osmc.tv/xuvidupeko.xml

Nothing has changed beyond updating OSMC

Can you login via SSH and check output of ls -lah /mnt/Server_Movies

And also ls -lah /mnt/Server_Music as that seems to be your problematic one.

Both throw up “cannot open directory”, “no such device”

When I run ls at mnt, I can see the mounts; but when I I run ls after cding in, there’s nothing.

Try
sudo umount /mnt/Server_Movies
sudo mount /mnt/Server_Movies
and see any problems shown.

mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Ok, let’s start to figure out first if the shares are visible. This might be a SMB version issue

  1. Install smbclient (if you don’t have done in the past) sudo apt-get install smbclient
  2. Run smbclient -L 192.168.1.2 and also smbclient -m SMB3 -L 192.168.1.2`

: osmc@osmc:~$ smbclient -L 192.168.1.2
Unable to initialize messaging context
Enter WORKGROUP\osmc’s password:

    Sharename       Type      Comment
    ---------       ----      -------
    CX61            Disk
    Downloads       Disk
    Movies          Disk
    Music           Disk
    Public          Disk
    TV              Disk
    SmartWare       Disk
    TimeMachineBackup Disk
    zfancher        Disk
    IPC$            IPC       IPC Service (2-Bay Personal Cloud Storage)

Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Failed to connect with SMB1 – no workgroup available

osmc@osmc:~$ smbclient -m SMB3 -L 192.168.1.2
Unable to initialize messaging context
Enter WORKGROUP\osmc’s password:

    Sharename       Type      Comment
    ---------       ----      -------
    CX61            Disk
    Downloads       Disk
    Movies          Disk
    Music           Disk
    Public          Disk
    TV              Disk
    SmartWare       Disk
    TimeMachineBackup Disk
    zfancher        Disk
    IPC$            IPC       IPC Service (2-Bay Personal Cloud Storage)

Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Failed to connect with SMB1 – no workgroup available

That looks Ok.

  1. Just to verify the “username/password” entries in your fstab are correct and you just manually changed the before uploading logs for privacy reason, or?
  2. try smbclient \\192.168.1.2\Movies -U user

osmc@osmc:~$ smbclient \192.168.1.2\Movies -U user
Unable to initialize messaging context

\192.168.1.2Movies: Not enough ‘’ characters in service
Usage: smbclient [-?EgqBVNkPeC] [-?|–help] [–usage] [-R|–name-resolve=NAME-RESOLVE-ORDER]
[-M|–message=HOST] [-I|–ip-address=IP] [-E|–stderr] [-L|–list=HOST]
[-m|–max-protocol=LEVEL] [-T|–tar=<c|x>IXFqgbNan] [-D|–directory=DIR]
[-c|–command=STRING] [-b|–send-buffer=BYTES] [-t|–timeout=SECONDS]
[-p|–port=PORT] [-g|–grepable] [-q|–quiet] [-B|–browse]
[-d|–debuglevel=DEBUGLEVEL] [-s|–configfile=CONFIGFILE]
[-l|–log-basename=LOGFILEBASE] [-V|–version] [–option=name=value]
[-O|–socket-options=SOCKETOPTIONS] [-n|–netbiosname=NETBIOSNAME]
[-W|–workgroup=WORKGROUP] [-i|–scope=SCOPE] [-U|–user=USERNAME] [-N|–no-pass]
[-k|–kerberos] [-A|–authentication-file=FILE] [-S|–signing=on|off|required]
[-P|–machine-pass] [-e|–encrypt] [-C|–use-ccache] [–pw-nt-hash]
service

Sorry my mistake, has to be forward slashes but also you need to replace user with your configured username on the NAS.
smbclient //92.168.1.2/Movies -U user

osmc@osmc:~$ smbclient //92.168.1.2/Movies -U gfrazee
Unable to initialize messaging context
do_connect: Connection to 92.168.1.2 failed (Error NT_STATUS_IO_TIMEOUT)
osmc@osmc:~$ smbclient //92.168.1.2/Movies -U gfrazee
Unable to initialize messaging context
do_connect: Connection to 92.168.1.2 failed (Error NT_STATUS_IO_TIMEOUT)
osmc@osmc:~$

Watchout, in my correcting the slashes I cut a number by mistake :wink:
smbclient //192.168.1.2/Movies -U gfrazee

Sorry, long day at work.

osmc@osmc:~$ smbclient //192.168.1.2/Movies -U gfrazee
Unable to initialize messaging context
Enter WORKGROUP\gfrazee’s password:
Try “help” to get a list of possible commands.
smb: >

Looks good. if you type dir you should see your server files
With exit you close the connection.

When trying to use SMB1 with smbclient, the correct option to -m is NT1, not SMB1 (don’t ask me why…)

All good there.

Really at a loss here which is why I started the thread. Nothing changed with my fstab, nothing with my NAS, etc. Even after updating !y NAS firmware and OS, I still could only access from everything but OSMC.

So you are sure username/password are correct in fstab?

You could try to add vers=3.0 to the fstab entry and unmount/mount after that.

Alternatively we could try to get it going via autofs instead of fstab.
You just would need to comment out you fstab entries and reboot before trying autofs.

Just double checked, they’re both good; where would I add vers=3.0?

In your fstab line anywhere in the options e.g. rw,vers=3.0