Jump to content

Recommended Posts

apmcgrath
Posted

Good day everyone!  First time poster.

I am a complete TrueNAS SCALE newbie, and limited Linux experience.  I've been using Emby since before they were Emby!  I've graduated over the years from Emby on Windows, to Ubuntu, and now I'm trying my hand at TrueNAS.

Everything in Emby seems to be humming along nicely, with the exception of backups.  So, I'm unable to create a new backup, or restore the server from a previous backup.

TrueNAS SCALE version: Electric Ell 24.10
Emby Server version: 4.8.10.0 
Emby TrueNAS docker version: 1.2.11

In "Backup & Restore" I've set the backup folder to "smb://192.168.1.200/Emby/backups" which is inside my Emby dataset. This same data set is also the location of all my media folders. It seems to accept that location just fine:

Screenshot2025-01-04153613.png.ffb8345e2656471eed54fb91b60e90a4.png

 

When it comes time for a scheduled backup (or I manually execute a scheduled backup early) it says the Emby server backup failed:

Screenshot2025-01-04153909.png.79c0764ca10747c29f9df3e208a55e21.png

When I go to the dashboard there is an alert with the following text:

Not connected to share. Status: STATUS_ACCESS_DENIED at EzSmb.Transports.Shares.Bases.ShareBase..ctor(ISMBClient client, String name) at EzSmb.Transports.Shares.Factories.ShareFactory.Get(ISMBClient client, String share) at EzSmb.Transports.Connection.GetNode(Boolean isDirectory) at EzSmb.Node.GetNode(String path, ParamSet paramSet, Boolean isDirectory) at Emby.Server.Implementations.IO.SmbFileSystem.CreateDirectory(String path) at MBBackup.ServerEntryPoint.ExecuteBackup(PluginConfiguration configuration, CancellationToken cancellationToken, IProgress`1 progress) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)

The Emby log has the following text:

2025-01-04 15:21:01.638 Info Server: http/1.1 POST http://192.168.1.200:8096/emby/ScheduledTasks/Running/a1e4a7962c72ac5e491497598d1ee479?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=70a0b922-b059-4740-b3c3-b6562458deb3&X-Emby-Client-Version=4.8.10.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. Source Ip: host9, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
2025-01-04 15:21:01.639 Info TaskManager: Executing Emby Server Backup
2025-01-04 15:21:01.639 Info Server: http/1.1 Response 204 to host9. Time: 1ms. POST http://192.168.1.200:8096/emby/ScheduledTasks/Running/a1e4a7962c72ac5e491497598d1ee479?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=70a0b922-b059-4740-b3c3-b6562458deb3&X-Emby-Client-Version=4.8.10.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2025-01-04 15:21:01.656 Error TaskManager: Error
*** Error Report ***
Version: 4.8.10.0
Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Linux version 6.6.44-production+truenas (root@tnsbuilds01.tn.ixsystems.net) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1
Framework: .NET 6.0.31
OS/Process: x64/x64
Runtime: system/System.Private.CoreLib.dll
Processor count: 2
Data path: /config
Application path: /system
System.IO.IOException: System.IO.IOException: Not connected to share. Status: STATUS_ACCESS_DENIED
at EzSmb.Transports.Shares.Bases.ShareBase..ctor(ISMBClient client, String name)
at EzSmb.Transports.Shares.Factories.ShareFactory.Get(ISMBClient client, String share)
at EzSmb.Transports.Connection.GetNode(Boolean isDirectory)
at EzSmb.Node.GetNode(String path, ParamSet paramSet, Boolean isDirectory)
at Emby.Server.Implementations.IO.SmbFileSystem.CreateDirectory(String path)
at MBBackup.ServerEntryPoint.ExecuteBackup(PluginConfiguration configuration, CancellationToken cancellationToken, IProgress`1 progress)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
Source: Emby.Server.Implementations
TargetSite: Void .ctor(SMBLibrary.Client.ISMBClient, System.String)
 
2025-01-04 15:21:01.656 Info TaskManager: Emby Server Backup Failed after 0 minute(s) and 0 seconds
 
Also, none of my previous backups (made when I was using Emby 4.8.10.0 on Ubuntu, which are saved in the Emby/backups share location) are available for restoration.  As a mater of fact, no restore option at all..
Unfortunately, I am a Linux novice and can't make out what anything the log file is telling me.  
Any help would be much appreciated!
Posted

Hi, I wouldn't suggest using an smb path there because currently there is no place to configure the necessary username and password for the network share.

what i would instead do is mount the network share to a local path in the OS, and then use that local path in Emby instead. Please let us know if this helps. Thanks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...