Hello, I recently reinstalled my Vero 4K following this guide Reinstalling OSMC - Vero 4K - OSMC.
I did not wish to save data so I did not need to restore anything. After the installation, I mounted volume to access my files, following this guide Mounting network shares with autofs (alternative to fstab).
To give some context, I did this because I’ve installed few addons and to clean everything properly, it seemed much easier to reinstall rather than undo everything from each addon.
After a while, the device scanned everything and I wanted to enjoy a serie, but this error happened:
2023-10-27 16:04:01.677 T:2827 info <general>: VideoPlayer::OpenFile: /mnt/videos/series/The Boys (2019)/The Boys [1x01] The Name of the Game.mkv
2023-10-27 16:04:01.680 T:3386 info <general>: Creating InputStream
2023-10-27 16:04:01.761 T:3386 error <general>: CFileCache::Open - </mnt/videos/series/The Boys (2019)/The Boys [1x01] The Name of the Game.mkv> failed to open
2023-10-27 16:04:01.762 T:3386 error <general>: CVideoPlayer::OpenInputStream - error opening [/mnt/videos/series/The Boys (2019)/The Boys [1x01] The Name of the Game.mkv]
2023-10-27 16:04:01.762 T:3386 info <general>: CVideoPlayer::OnExit()
2023-10-27 16:04:01.769 T:3333 info <general>: Deleting settings information for files /mnt/videos/series/The Boys (2019)/The Boys [1x01] The Name of the Game.mkv
I did not try for all my files of course, but I did random test with movies and series (they are on different shared folders), but the error is consistent across fifteen different files.
When parsing the logs I’ve notice few other errors, but I could not find anything that I could manage, hence this message
The full log upload: https://paste.osmc.tv/pebitewiju
Thanks for reading
Can you login via SSH and tell output of:
ls -lah /mnt
ls -lah /mnt/videos/series/The Boys (2019)/
Certainly:
$ ls -lah /mnt
total 8.0K
drwxr-xr-x 4 root root 4.0K Oct 16 15:55 .
drwxr-xr-x 20 root root 4.0K Oct 15 19:42 ..
drwxr-xr-x 2 root root 0 Oct 16 15:55 musics
drwxr-xr-x 2 root root 0 Oct 16 15:55 videos
$ ls -lah /mnt/videos/series/The\ Boys\ \(2019\)/
total 41G
drwxr-xr-x 2 osmc osmc 0 Jan 24 2023 .
drwxr-xr-x 2 osmc osmc 0 Oct 21 14:05 ..
-rwxr-xr-x 1 osmc osmc 1.6G Jan 19 2023 'The Boys [1x01] The Name of the Game.mkv'
-rwxr-xr-x 1 osmc osmc 1.5G Jan 19 2023 'The Boys [1x02] Cherry.mkv'
-rwxr-xr-x 1 osmc osmc 1.5G Jan 19 2023 'The Boys [1x03] Get Some.mkv'
-rwxr-xr-x 1 osmc osmc 1.6G Jan 19 2023 'The Boys [1x04] The Female of the Species.mkv'
-rwxr-xr-x 1 osmc osmc 1.8G Jan 19 2023 'The Boys [1x05] Good for the Soul.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 19 2023 'The Boys [1x06] The Innocents.mkv'
-rwxr-xr-x 1 osmc osmc 1.5G Jan 19 2023 'The Boys [1x07] The Self-Preservation Society.mkv'
-rwxr-xr-x 1 osmc osmc 1.8G Jan 19 2023 'The Boys [1x08] You Found Me.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 20 2023 'The Boys [2x01] The Big Ride.mkv'
-rwxr-xr-x 1 osmc osmc 1.6G Jan 20 2023 'The Boys [2x02] Proper Preparation and Planning.mkv'
-rwxr-xr-x 1 osmc osmc 1.6G Jan 20 2023 'The Boys [2x03] Over the Hill with the Swords of a Thousand Men.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 20 2023 'The Boys [2x04] Nothing Like It in the World.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 20 2023 'The Boys [2x05] We Gotta Go Now.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 20 2023 'The Boys [2x06] The Bloody Doors Off.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 20 2023 'The Boys [2x07] Butcher, Baker, Candlestick Maker.mkv'
-rwxr-xr-x 1 osmc osmc 2.0G Jan 20 2023 'The Boys [2x08] What I Know.mkv'
-rwxr-xr-x 1 osmc osmc 1.9G Jan 23 2023 'The Boys [3x01] Payback.mkv'
-rwxr-xr-x 1 osmc osmc 1.9G Jan 23 2023 'The Boys [3x02] The Only Man In The Sky.mkv'
-rwxr-xr-x 1 osmc osmc 2.0G Jan 23 2023 'The Boys [3x03] Barbary Coast.mkv'
-rwxr-xr-x 1 osmc osmc 2.0G Jan 23 2023 'The Boys [3x04] Glorious Five Year Plan.mkv'
-rwxr-xr-x 1 osmc osmc 2.1G Jan 23 2023 'The Boys [3x05] The Last Time to Look on This World of Lies.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 23 2023 'The Boys [3x06] Herogasm.mkv'
-rwxr-xr-x 1 osmc osmc 1.9G Jan 23 2023 'The Boys [3x07] Here Comes a Candle to Light You to Bed.mkv'
-rwxr-xr-x 1 osmc osmc 1.7G Jan 23 2023 'The Boys [3x08] The Instant White-Hot Wild.mkv'
Confusing, maybe an issue with special characters? From the logs it seems you are now using Samba to share and before (in fstab) you had NFS. Any reason not to use nfs in autofs?
I tried to use NFS instead of Samba to see if it would be different about the error.
It did not, and the lack of authentication and permission control was bothering me anyway. Samba was better here since many different devices uses these shared folders and each need different permission, and few of the devices are on Windows.
And before my reinstall, I was using it as well.
Is osmc the user configured on your NAS? There is no read permissions for “others” so is this just a matter of having connected using a different username previously?
EDIT: Disregard. I was reading the permissions incorrectly and that is showing everyone having read permissions.
There is a user named osmc on the NAS. I even check to connect to the WebUI of the NAS with the user and read a video file with the web player and it’s working.
Try using vers=3.1.1
in your auto.smb.shares file.
It broke the permissions, now everything is owned by root
:
$ ls -lah /mnt/
total 8.0K
drwxr-xr-x 4 root root 4.0K Oct 29 09:02 .
drwxr-xr-x 20 root root 4.0K Oct 15 19:42 ..
drwxr-xr-x 2 root root 0 Oct 29 09:02 musics
drwxr-xr-x 2 root root 0 Oct 29 09:02 videos
$ ls -lah /mnt/videos/series/The\ Boys\ \(2019\)/
ls: cannot access '/mnt/videos/series/The Boys (2019)/': No such file or directory
On the GUI, when I play the episode it tells me that it doesn’t exist anymore and offers to delete it from the db.
Actually, I noticed another error with this version modification:
[ 2352.283856] CIFS VFS: cifs_mount failed w/return code = -13
Which seems to mean permission denied
, but the error does not appear on vers=3.0
so I’m confused. Trying to mount manually confirm that error:
$ sudo mount -vvv -t cifs -o ro,iocharset=utf8,vers=3.1.1,uid=osmc,gid=osmc,credentials=/home/osmc/.diskst
ation.cifs.cred //192.168.1.201/videos /mnt/test
mount.cifs kernel mount options: ip=192.168.1.201,unc=\\192.168.1.201\videos,iocharset=utf8,vers=3.1.1,uid=1000,gid=1000,user=osmc,domain=workgroup,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
My NAS is configured to accept SMB2, SMB2 Large MTU, and SMB3.
Sorry about that. My Linux skills have a lot of room for improvement still.
The folders and mounts there are expected to be owned by root. Inside the mount it would change according to your mount options.
I saw the recommend for Synology users to use vers=3.1.1 in our autofs howto guide. I don’t know the backstory behind that suggestion. That option doesn’t work with with my Win10 shares (it doesn’t seem to connect with anything later than vers=3.02) and I don’t own a Synology NAS to play around with this on my own.
I’m at a loss on what to suggest as a next step.
Yes indeed, but following the guide on how to use autofs, I have set up the mount options including this:
uid=osmc,gid=osmc
Which works to mount with the right owner as my osmc
user with vers=3.0
but files remains unplayable.
I will try again both versions in my autofs and try to get any debug logs on my NAS then and feed any extra information I can get.