Recently installed Ember Server (as a Debian package from their web-site).
All has been fine until today.
None of the devices (Emby Apps) can play any videos on the servers.
Checking the Emby Server logs shows that Permission was denied when the Emby server tries to access the file on the sharedfolder.
I checked the folder/files ACL on OMV and they are set correctly (for emby user and group).
I reported the issue at Emby forums here and Luke at Emby suggested seeking OMV help so here I am.
Essential when the Emby App (on the TV) requests the server to play the movie, the server complains with "Permission denied" on the file in question:
2019-03-18 19:14:19.811 Error HttpServer: Error processing request
*** Error Report ***
Version: 4.0.2.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.19.0.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 2
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/sharedfolders/d1/movies/12 Years A Slave (2013)/12 Years A Slave (2013).srt' is denied. ---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
Alles anzeigen
I checked the ACL using 'getfacl' command it shows:
root@OMV:/sharedfolders/d1/movies/12 Years A Slave (2013)# getfacl *.mkv
# file: 12 Years A Slave (2013).mkv
# owner: admin
# group: users
user::rwx
user:root:rwx
user:daemon:rwx
user:systemd-timesync:rwx
user:ntp:rwx
user:statd:rwx
user:avahi:r-x
user:sshd:r-x
user:emby:rwx
user:admin:rwx
user:openmediavault-webgui:rwx
user:macnb:rwx
user:nobody:rwx
group::rwx
group:root:rwx
group:daemon:rwx
group:adm:rwx
group:audio:rwx
group:video:rwx
group:users:rwx
group:systemd-journal:rwx
group:systemd-timesync:rwx
group:crontab:rwx
group:ntp:rwx
group:ssh:r-x
group:emby:rwx
group:openmediavault-config:rwx
group:nogroup:rwx
mask::rwx
other::r-x
Alles anzeigen
All the media are in /sharedfolders and Ember library was setup to point to them. All was fine and working great until today.
Not sure what I changed to get to this situation. Now nothing plays.
Any way to debug this further ?