aoommen 1 Posted February 18, 2022 Posted February 18, 2022 Hi posting under Linux server since I did not find a section for Unraid docker installs. I'm running Emby on Unraid as a docker container and it has been running rock steady on the server for many years, until yesterday when the container refuses to start with the following in the logs. Seems to me like the db got corrupted somehow, but I am not an expert - so wanted to ask the experts here and get some direction on possible next steps. Full disclosure - I have made some hardware changes to the server recently e.g. replace a failed data disk, add more memory, new data cables etc. and such, the appdata folder is on the cache drive and there have been no changes to that. All other containers are running fine as well. Framework: .NET 6.0.0-rtm.21522.10 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 30 Data path: /config Application path: /system Info Main: Logs path: /config/logs Info Main: Cache path: /config/cache Info Main: Internal metadata path: /mnt/user/Other Media/ImagesByName/People/metadata Info Main: Transcoding temporary files path: /config/transcoding-temp Info App: Application version: 4.7.0.23 Info App: Loading assemblies Info App: File /config/plugins/AudioDb.dll has version 1.0.14.0 Info App: File /system/plugins/AudioDb.dll has version 1.0.14.0 Info App: File /config/plugins/BlurayMounter.dll has version 1.0.0.0 Info App: File /system/plugins/BlurayMounter.dll has version 1.0.0.0 Info App: File /config/plugins/DvdMounter.dll has version 1.0.0.0 Info App: File /system/plugins/DvdMounter.dll has version 1.0.0.0 Info App: File /config/plugins/Emby.Dlna.dll has version 1.0.75.0 Info App: File /system/plugins/Emby.Dlna.dll has version 1.0.75.0 Info App: File /config/plugins/Emby.PortMapper.dll has version 1.0.7.0 Info App: File /system/plugins/Emby.PortMapper.dll has version 1.0.7.0 Info App: File /config/plugins/Emby.Server.CinemaMode.dll has version 1.0.38.0 Info App: File /system/plugins/Emby.Server.CinemaMode.dll has version 1.0.38.0 Info App: File /config/plugins/Emby.Webhooks.dll has version 1.0.15.0 Info App: File /system/plugins/Emby.Webhooks.dll has version 1.0.15.0 Info App: File /config/plugins/Emby.XmlTV.dll has version 1.0.3.0 Info App: File /system/plugins/Emby.XmlTV.dll has version 1.0.3.0 Info App: File /config/plugins/EmbyGuideData.dll has version 1.0.2.0 Info App: File /system/plugins/EmbyGuideData.dll has version 1.0.2.0 Info App: File /config/plugins/Fanart.dll has version 1.0.13.0 Info App: File /system/plugins/Fanart.dll has version 1.0.13.0 Info App: File /config/plugins/MovieDb.dll has version 1.5.1.0 Info App: File /system/plugins/MovieDb.dll has version 1.5.1.0 Info App: File /config/plugins/MusicBrainz.dll has version 1.0.18.0 Info App: File /system/plugins/MusicBrainz.dll has version 1.0.18.0 Info App: File /config/plugins/NfoMetadata.dll has version 1.0.63.0 Info App: File /system/plugins/NfoMetadata.dll has version 1.0.63.0 Info App: File /config/plugins/OMDb.dll has version 1.0.14.0 Info App: File /system/plugins/OMDb.dll has version 1.0.14.0 Info App: File /config/plugins/OpenSubtitles.dll has version 1.0.29.0 Info App: File /system/plugins/OpenSubtitles.dll has version 1.0.29.0 Info App: File /config/plugins/SchedulesDirect.dll has version 1.0.0.0 Info App: File /system/plugins/SchedulesDirect.dll has version 1.0.0.0 Info App: File /config/plugins/StudioImages.dll has version 1.0.3.0 Info App: File /system/plugins/StudioImages.dll has version 1.0.3.0 Info App: File /config/plugins/Tvdb.dll has version 1.1.1.0 Info App: File /system/plugins/Tvdb.dll has version 1.1.1.0 Info App: Loading MovieDb, Version=1.5.1.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MovieDb.dll Info App: Loading Emby.PortMapper, Version=1.0.7.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.PortMapper.dll Info App: Loading Emby.Server.CinemaMode, Version=1.0.38.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Server.CinemaMode.dll Info App: Loading CoverArt, Version=4.1.17.0, Culture=neutral, PublicKeyToken=null from /config/plugins/CoverArt.dll Info App: Loading OpenSubtitles, Version=1.0.29.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OpenSubtitles.dll Info App: Loading Tvdb, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Tvdb.dll Info App: Loading NfoMetadata, Version=1.0.63.0, Culture=neutral, PublicKeyToken=null from /config/plugins/NfoMetadata.dll Info App: Loading Emby.Webhooks, Version=1.0.15.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Webhooks.dll Info App: Loading DvdMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/DvdMounter.dll Info App: Loading Fanart, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Fanart.dll Info App: Loading Emby.AutoOrganize, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.AutoOrganize.dll Info App: Loading Emby.Dlna, Version=1.0.75.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Dlna.dll Info App: Loading StudioImages, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioImages.dll Info App: Loading BlurayMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/BlurayMounter.dll Info App: Loading Trakt, Version=3.5.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Trakt.dll Info App: Loading Emby.Kodi.SyncQueue, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Kodi.SyncQueue.dll Info App: Loading AutoBoxSets, Version=1.2.6.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AutoBoxSets.dll Info App: Loading MediaBrowser.Plugins.Trailers, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Mediabrowser.Plugins.Trailers.dll Info App: Loading OMDb, Version=1.0.14.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OMDb.dll Info App: Loading AudioDb, Version=1.0.14.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AudioDb.dll Info App: Loading MusicBrainz, Version=1.0.18.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MusicBrainz.dll Info App: Loading MediaBrowser.Plugins.PushBulletNotifications, Version=3.1.4.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MediaBrowser.Plugins.PushBulletNotifications.dll Info App: Loading Emby.XmlTV, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.XmlTV.dll Info App: Loading SchedulesDirect, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/SchedulesDirect.dll Info App: Loading EmbyGuideData, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/EmbyGuideData.dll Info App: Loading Emby.Api, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Web, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Model, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Common, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Controller, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Providers, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Photos, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.Implementations, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.LiveTV, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.ActivityLog, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.MediaEncoding, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.LocalMetadata, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Notifications, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Codecs.Dxva, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Codecs, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.Connect, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.Sync, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info App: Loading EmbyServer, Version=4.7.0.23, Culture=neutral, PublicKeyToken=null Info SqliteUserRepository: Sqlite version: 3.35.5 Info SqliteUserRepository: Sqlite compiler options: COMPILER=gcc-8.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS4,ENABLE_FTS5,ENABLE_GEOPOLY,ENABLE_JSON1,ENABLE_MATH_FUNCTIONS,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MAX_SCHEMA_RETRY=25,MAX_VARIABLE_NUMBER=250000,OMIT_LOOKASIDE,SECURE_DELETE,THREADSAFE=1 Info SqliteUserRepository: Opening sqlite connection to /config/data/users.db Info SqliteUserRepository: Default journal_mode for /config/data/users.db is wal Error Main: Error in appHost.Init *** Error Report *** Version: 4.7.0.23 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.14.15-Unraid (root@Develop) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP Thu Oct 28 09:56:33 PDT 2021 Framework: .NET 6.0.0-rtm.21522.10 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 30 Data path: /config Application path: /system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/user/Other Media/ImagesByName/People/metadata/SubtitleFonts' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileSystem.CreateDirectory(String fullPath) at System.IO.Directory.CreateDirectory(String path) at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory(String path) at Emby.Server.MediaEncoding.Subtitles.Fonts.SubtitleFontsManager.Initialize() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void CreateDirectory(System.String) InnerException: System.IO.IOException: Permission denied TargetSite: Info Main: Shutdown complete [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.
CassTG 113 Posted February 18, 2022 Posted February 18, 2022 (edited) Im no Emby Log expert but looks like one of two things System.UnauthorizedAccessException: Access to the path '/mnt/user/Other Media/ImagesByName/People/metadata/SubtitleFonts' Have you checked the permissions on this folder, does the GUID and PGID still have access to this folder Also worth checking how much space you have left for Docker / VM's, been a while since i used Unraid but you normally set the max size available to docker and VM's img, it could be possible that you may be running out of this virtual space if you have loaded up on metadata. Unraid Docker image size Edited February 18, 2022 by CassTG
aoommen 1 Posted February 18, 2022 Author Posted February 18, 2022 (edited) Thank you @CassTG - I missed that error somehow - most likely is a permissions issue for that share - "Other Media". Will check when I am back home and report here. Re: space - I should have plenty of space, since those volumes are not mapped within the container. Edited February 18, 2022 by aoommen 1
aoommen 1 Posted February 18, 2022 Author Posted February 18, 2022 So tried that and it didn't change anything. root@Tower:/mnt/user/Other Media/ImagesByName/People/metadata# ls -l total 33 drwxrwxr-x 1 nobody users 168 Aug 4 2017 People/ drwxrwxrwx 1 root users 10 Nov 18 19:22 SubtitleFonts/ drwxrwxr-x 1 nobody users 11000 Nov 8 2018 artists/ drwxrwxr-x 1 nobody users 96 Jun 30 2017 channels/ drwxr-xr-x 1 daemon daemon 4096 Jan 31 22:40 collections/ drwxrwxr-x 1 nobody users 6192 Jun 20 2017 library/ drwxr-xr-x 1 daemon daemon 4096 Nov 7 2020 livetv/ drwxr-xr-x 1 daemon daemon 176 Jan 18 20:28 musicalbums/ drwxr-xr-x 1 daemon daemon 4096 Sep 11 09:50 musicartists/ drwxr-xr-x 1 daemon daemon 4096 Jan 18 20:27 people/ drwxr-xr-x 1 daemon daemon 48 Jan 18 20:28 temp/ drwxrwxr-x 1 nobody users 144 Jun 30 2017 views/
Luke 42078 Posted February 21, 2022 Posted February 21, 2022 @aoommen did you figure something out? Are you still having an issue with this?
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 2 hours ago, Luke said: @aoommen did you figure something out? Are you still having an issue with this? Still an issue. Emby not starting still, container log shows same error.
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 Info SqliteUserRepository: Sqlite compiler options: COMPILER=gcc-8.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS4,ENABLE_FTS5,ENABLE_GEOPOLY,ENABLE_JSON1,ENABLE_MATH_FUNCTIONS,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MAX_SCHEMA_RETRY=25,MAX_VARIABLE_NUMBER=250000,OMIT_LOOKASIDE,SECURE_DELETE,THREADSAFE=1 Info SqliteUserRepository: Opening sqlite connection to /config/data/users.db Info SqliteUserRepository: Default journal_mode for /config/data/users.db is wal Error Main: Error in appHost.Init *** Error Report *** Version: 4.7.0.24 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.14.15-Unraid (root@Develop) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP Thu Oct 28 09:56:33 PDT 2021 Framework: .NET 6.0.0-rtm.21522.10 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 30 Data path: /config Application path: /system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/user/Other Media/ImagesByName/People/metadata/SubtitleFonts' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileSystem.CreateDirectory(String fullPath) at System.IO.Directory.CreateDirectory(String path) at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory(String path) at Emby.Server.MediaEncoding.Subtitles.Fonts.SubtitleFontsManager.Initialize() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void CreateDirectory(System.String) InnerException: System.IO.IOException: Permission denied TargetSite: Info Main: Shutdown complete [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.
Luke 42078 Posted February 21, 2022 Posted February 21, 2022 It looks like you configured a custom internal metadata folder but did not ensure the server has write access to it: System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/user/Other Media/ImagesByName/People/metadata/SubtitleFonts' is denied.
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 Thanks! I have been trying to fix that - the folder has all access. Nothing has changed from an Emby server configuration perspective and it has been working well until I had to make a hardware change on my Unraid array - replace a failed disk, which I believe is the root of the problem. Question - any suggestions on how to give server access to the folder over an above what is below? root@Tower:/mnt/user/Other Media/ImagesByName/People/metadata# ls -l total 33 drwxrwxr-x 1 nobody users 168 Aug 4 2017 People/ drwxrwxrwx 1 root users 10 Nov 18 19:22 SubtitleFonts/ drwxrwxr-x 1 nobody users 11000 Nov 8 2018 artists/ drwxrwxr-x 1 nobody users 96 Jun 30 2017 channels/ drwxr-xr-x 1 daemon daemon 4096 Jan 31 22:40 collections/ drwxrwxr-x 1 nobody users 6192 Jun 20 2017 library/ drwxr-xr-x 1 daemon daemon 4096 Nov 7 2020 livetv/ drwxr-xr-x 1 daemon daemon 176 Jan 18 20:28 musicalbums/ drwxr-xr-x 1 daemon daemon 4096 Sep 11 09:50 musicartists/ drwxr-xr-x 1 daemon daemon 4096 Jan 18 20:27 people/ drwxr-xr-x 1 daemon daemon 48 Jan 18 20:28 temp/ drwxrwxr-x 1 nobody users 144 Jun 30 2017 views/
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 Can I edit the system xml file and comment out the line below? <MetadataPath>/mnt/user/Other Media/ImagesByName/People</MetadataPath>
Solution Luke 42078 Posted February 21, 2022 Solution Posted February 21, 2022 2 minutes ago, aoommen said: Can I edit the system xml file and comment out the line below? <MetadataPath>/mnt/user/Other Media/ImagesByName/People</MetadataPath> Yes that will work. You'll need to run the scheduled task to scan the metadata folder after the server starts. 1
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 Thanks that worked - container started. Scanning now.
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 @Luke Container started and scan completed but metadata is all still messed up. What is the best way to refresh all the metadata? Manual refresh and rescanning from individual libraries did not work.
Luke 42078 Posted February 21, 2022 Posted February 21, 2022 10 minutes ago, aoommen said: Manual refresh and rescanning from individual libraries did not work. That will work fine. You'll just need to give it time because there is currently no way to monitor that apart from the server log.
aoommen 1 Posted February 21, 2022 Author Posted February 21, 2022 I think I have a bigger issue. Looks like something got corrupted and my volume mappings are not working fine, so no media is playable and scan is not adding media.
Luke 42078 Posted February 22, 2022 Posted February 22, 2022 Ah, that's too bad. keep us posted on that. Thanks.
aoommen 1 Posted February 22, 2022 Author Posted February 22, 2022 Any way to salvage the existing container rather than nuke everything and start from scratch?
Luke 42078 Posted February 23, 2022 Posted February 23, 2022 Hi, I suppose you could grab the users.db database file to preserve your local users.
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