Jator 12 Posted February 19 Posted February 19 I have an Ubuntu Linux 24.20 Server (CLI only) that I have installed Emby on. I have a Synology NAS that I store all of my recordings on. Both local users have the same username and password. I've mounted the Synology storage path (/volume1/media/[various folders]) as /mnt/media_nas and able to access with my local Ubuntu account. I used CIFS to setup the share and have it permanently mounted using an entry in /etc/fstab. I can access the media_nas folders through various applications, including Channels DVR to record directly to. However, when I try and connect with my Emby Linux server to record directly there, it gives me an error saying it can't record there. I can access the folders on the media_nas as I have my movies showing up in Emby, so it seems to be a write permission issue. Any suggestions on how to address? I did a search on ChatGPT and it suggested this: sudo usermod -a -G jator emby However I'm still getting the same error. Thanks for any assistance, if it's not obvious, I'm not as familiar with Linux as I am windows but like to learn (or try to at least) new things. Jay
Luke 42122 Posted February 20 Posted February 20 Hi, what folder path are you entering into emby server?
Jator 12 Posted February 20 Author Posted February 20 (edited) I use /mnt/media_nas. Below is how I selected the TV folder to record to. And here's the permissions as seen through Linux Server (logged in as local jator account): And here's the permissions as seen through the NAS (logged in as local jator account): Edited February 20 by Jator
Luke 42122 Posted February 24 Posted February 24 Hi there, please attach the Emby server log from when the problem occurred: How to Report a Problem Thanks!
Jator 12 Posted February 24 Author Posted February 24 Here you go. Above my head but seems to be a permission issue of some sort. 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: Linux version 6.8.0-100-generic (buildd@lcy02-amd64-061) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubun OS/Process: x64/x64 Framework: .NET 8.0.22 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 8 Data path: /var/lib/emby Application path: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/media_nas/emby/tv/News 8 Today at 6' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory(String path) at Emby.LiveTV.DirectRecorder.RecordUsingCopyTo(ILiveStream liveStream, Nullable`1 wallClockStartTime, String targetFile, Action onStarted, CancellationToken cancellationToken) at Emby.LiveTV.EmbyTV.RecordStream(TimerInfo timer, DateTimeOffset recordingEndDate, InternalActiveRecordingInfo activeRecordingInfo) Source: Emby.Server.Implementations TargetSite: Void CreateDirectory(System.String) InnerException: System.IO.IOException: Permission denied Source: TargetSite: 2026-02-24 11:58:57.468 Info MediaSourceManager: Live stream 66e3de44239124241e1900b31f586607 consumer count is now 0 2026-02-24 11:58:57.469 Info MediaSourceManager: Closing live stream 06044cf0e6f93cdae5f285c9ecfaaeb4_01413a525b3a9622ce6fdf19f7dde354_66e3de44239124241e1900b31f586607 2026-02-24 11:58:57.469 Info SharedHttpPipelineSource: Closing SharedHttpPipelineSource 2026-02-24 11:58:57.470 Info SharedHttpPipelineSource: SharedHttpPipelineSource is done streaming. 2026-02-24 11:58:57.470 Info SharedHttpPipelineSource: Deleting temp files /var/lib/emby/transcoding-temp/cd82be01c194421aba0986a3778ea41a/0000000.ts 2026-02-24 11:58:57.471 Info MediaSourceManager: Live stream 06044cf0e6f93cdae5f285c9ecfaaeb4_01413a525b3a9622ce6fdf19f7dde354_66e3de44239124241e1900b31f586607 closed successfully 2026-02-24 11:58:57.471 Info LiveTV: Retrying recording in 60 seconds. 2026-02-24 11:58:57.471 Info LiveTV: Creating recording timer for e1d673695705437ba97b6c9e95a41f27, News 8 Today at 6 - . Timer will fire in 0.99998876 minutes 2026-02-24 11:58:57.472 Info LiveTV: Triggering refresh on /mnt/media_nas/emby/tv/News 8 Today at 6/News 8 Today at 6 2026_02_24_11_00_00.ts 2026-02-24 11:58:57.473 Info LiveTV: Refreshing recording parent /mnt/media_nas/emby 2026-02-24 11:59:07.873 Info ActivityRepository: Opening sqlite connection to /var/lib/emby/data/activitylog.db. isReadOnly: True 2026-02-24 11:59:07.873 Info ActivityRepository: Opening sqlite connection to /var/lib/emby/data/activitylog.db. isReadOnly: True
Luke 42122 Posted 14 hours ago Posted 14 hours ago @Jatordid you figure this out? The server is trying to create the recording file but is being denied access to do that by your file system.
Jator 12 Posted 9 hours ago Author Posted 9 hours ago Figured that was the case. Haven't had time to do serious troubleshooting over the past few weeks. I've tried the suggestions from CoPilot, but those haven't worked. I'll keep revisiting until I get it figured out. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now