Jump to content

Emby server container keeps restarting


Miles28

Recommended Posts

Miles28

Hi.

I have installed Emby Server in a docker container running on OpenWRT.
It's been working fine for a couple of weeks, but yesterday the container begun to stop and start looping.

The server log:

2024-01-26 22:03:30.287 Info Main: Application path: /system/EmbyServer.dll
2024-01-26 22:03:31.345 Info Main: Emby
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 5.15.137 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0
	Framework: .NET 6.0.20
	OS/Process: arm64/arm64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /config
	Application path: /system
2024-01-26 22:03:31.345 Info Main: Logs path: /config/logs
2024-01-26 22:03:31.345 Info Main: Cache path: /config/cache
2024-01-26 22:03:31.346 Info Main: Internal metadata path: /config/metadata
2024-01-26 22:03:31.348 Info Main: Transcoding temporary files path: /config/transcoding-temp
2024-01-26 22:03:31.556 Info App: Application version: 4.7.14.0
2024-01-26 22:03:31.569 Info App: Loading assemblies
2024-01-26 22:03:31.633 Info App: Copying plugin from /system/plugins/AudioDb.dll to /config/plugins/AudioDb.dll
2024-01-26 22:03:31.681 Info App: Copying plugin from /system/plugins/BlurayMounter.dll to /config/plugins/BlurayMounter.dll
2024-01-26 22:03:31.720 Info App: Copying plugin from /system/plugins/DvdMounter.dll to /config/plugins/DvdMounter.dll
2024-01-26 22:03:31.769 Info App: Copying plugin from /system/plugins/Emby.Dlna.dll to /config/plugins/Emby.Dlna.dll
2024-01-26 22:03:31.824 Info App: Copying plugin from /system/plugins/Emby.M3UTuner.dll to /config/plugins/Emby.M3UTuner.dll
2024-01-26 22:03:31.874 Info App: Copying plugin from /system/plugins/Emby.PortMapper.dll to /config/plugins/Emby.PortMapper.dll
2024-01-26 22:03:31.913 Info App: Copying plugin from /system/plugins/Emby.Server.CinemaMode.dll to /config/plugins/Emby.Server.CinemaMode.dll
2024-01-26 22:03:31.954 Info App: Copying plugin from /system/plugins/Emby.Webhooks.dll to /config/plugins/Emby.Webhooks.dll
2024-01-26 22:03:32.001 Info App: Copying plugin from /system/plugins/Emby.XmlTV.dll to /config/plugins/Emby.XmlTV.dll
2024-01-26 22:03:32.040 Info App: Copying plugin from /system/plugins/EmbyGuideData.dll to /config/plugins/EmbyGuideData.dll
2024-01-26 22:03:32.068 Info App: Copying plugin from /system/plugins/Fanart.dll to /config/plugins/Fanart.dll
2024-01-26 22:03:32.116 Info App: Copying plugin from /system/plugins/MovieDb.dll to /config/plugins/MovieDb.dll
2024-01-26 22:03:32.156 Info App: Copying plugin from /system/plugins/MusicBrainz.dll to /config/plugins/MusicBrainz.dll
2024-01-26 22:03:32.206 Info App: Copying plugin from /system/plugins/NfoMetadata.dll to /config/plugins/NfoMetadata.dll
2024-01-26 22:03:32.245 Info App: Copying plugin from /system/plugins/OMDb.dll to /config/plugins/OMDb.dll
2024-01-26 22:03:32.293 Info App: Copying plugin from /system/plugins/OpenSubtitles.dll to /config/plugins/OpenSubtitles.dll
2024-01-26 22:03:32.332 Info App: Copying plugin from /system/plugins/StudioImages.dll to /config/plugins/StudioImages.dll
2024-01-26 22:03:32.382 Info App: Copying plugin from /system/plugins/Tvdb.dll to /config/plugins/Tvdb.dll
2024-01-26 22:03:32.467 Error App: Error updating last version file
	*** Error Report ***
	Version: 4.7.14.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 5.15.137 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0
	Framework: .NET 6.0.20
	OS/Process: arm64/arm64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /config
	Application path: /system
	System.IO.IOException: System.IO.IOException: Input/output error : '/config/data/lastversion.txt'
	   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
	   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
	   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
	   at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
	   at System.IO.File.WriteAllText(String path, String contents)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.WriteAllText(String path, String text)
	   at Emby.Server.Implementations.ApplicationHost.UpdateLastServerVersion(Version version)
	Source: System.Private.CoreLib
	TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])
	
2024-01-26 22:03:32.591 Info App: Loading AudioDb, Version=1.0.16.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AudioDb.dll
2024-01-26 22:03:32.591 Info App: Loading BlurayMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/BlurayMounter.dll
2024-01-26 22:03:32.591 Info App: Loading DvdMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/DvdMounter.dll
2024-01-26 22:03:32.591 Info App: Loading Emby.Dlna, Version=1.0.91.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Dlna.dll
2024-01-26 22:03:32.591 Info App: Loading Emby.M3UTuner, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.M3UTuner.dll
2024-01-26 22:03:32.591 Info App: Loading Emby.PortMapper, Version=1.1.8.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.PortMapper.dll
2024-01-26 22:03:32.592 Info App: Loading Emby.Server.CinemaMode, Version=1.0.40.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Server.CinemaMode.dll
2024-01-26 22:03:32.592 Info App: Loading Emby.Webhooks, Version=1.0.25.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Webhooks.dll
2024-01-26 22:03:32.592 Info App: Loading Emby.XmlTV, Version=1.0.9.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.XmlTV.dll
2024-01-26 22:03:32.592 Info App: Loading EmbyGuideData, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /config/plugins/EmbyGuideData.dll
2024-01-26 22:03:32.592 Info App: Loading Fanart, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Fanart.dll
2024-01-26 22:03:32.592 Info App: Loading MovieDb, Version=1.6.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MovieDb.dll
2024-01-26 22:03:32.592 Info App: Loading MusicBrainz, Version=1.0.22.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MusicBrainz.dll
2024-01-26 22:03:32.592 Info App: Loading NfoMetadata, Version=1.0.70.0, Culture=neutral, PublicKeyToken=null from /config/plugins/NfoMetadata.dll
2024-01-26 22:03:32.592 Info App: Loading OMDb, Version=1.0.18.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OMDb.dll
2024-01-26 22:03:32.592 Info App: Loading OpenSubtitles, Version=1.0.31.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OpenSubtitles.dll
2024-01-26 22:03:32.592 Info App: Loading StudioImages, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioImages.dll
2024-01-26 22:03:32.592 Info App: Loading Tvdb, Version=1.3.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Tvdb.dll
2024-01-26 22:03:32.592 Info App: Loading Emby.Api, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Web, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading MediaBrowser.Model, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading MediaBrowser.Common, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading MediaBrowser.Controller, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Providers, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Photos, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Server.Implementations, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.LiveTV, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.ActivityLog, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Server.MediaEncoding, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.LocalMetadata, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Notifications, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Codecs.Dxva, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.592 Info App: Loading Emby.Codecs, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.593 Info App: Loading Emby.Server.Connect, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.593 Info App: Loading Emby.Server.Sync, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:32.593 Info App: Loading EmbyServer, Version=4.7.14.0, Culture=neutral, PublicKeyToken=null
2024-01-26 22:03:33.261 Info SqliteUserRepository: Sqlite version: 3.39.2
2024-01-26 22:03:33.265 Info SqliteUserRepository: Sqlite compiler options: ATOMIC_INTRINSICS=1,COMPILER=gcc-10.3.0,DEFAULT_AUTOVACUUM,DEFAULT_CACHE_SIZE=-2000,DEFAULT_FILE_FORMAT=4,DEFAULT_JOURNAL_SIZE_LIMIT=-1,DEFAULT_MMAP_SIZE=0,DEFAULT_PAGE_SIZE=4096,DEFAULT_PCACHE_INITSZ=20,DEFAULT_RECURSIVE_TRIGGERS,DEFAULT_SECTOR_SIZE=4096,DEFAULT_SYNCHRONOUS=2,DEFAULT_WAL_AUTOCHECKPOINT=1000,DEFAULT_WAL_SYNCHRONOUS=2,DEFAULT_WORKER_THREADS=0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS4,ENABLE_FTS5,ENABLE_GEOPOLY,ENABLE_MATH_FUNCTIONS,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MALLOC_SOFT_LIMIT=1024,MAX_ATTACHED=10,MAX_COLUMN=2000,MAX_COMPOUND_SELECT=500,MAX_DEFAULT_PAGE_SIZE=8192,MAX_EXPR_DEPTH=1000,MAX_FUNCTION_ARG=127,MAX_LENGTH=1000000000,MAX_LIKE_PATTERN_LENGTH=50000,MAX_MMAP_SIZE=0x7fff0000,MAX_PAGE_COUNT=1073741823,MAX_PAGE_SIZE=65536,MAX_SCHEMA_RETRY=25,MAX_SQL_LENGTH=1000000000,MAX_TRIGGER_DEPTH=1000,MAX_VARIABLE_NUMBER=250000,MAX_VDBE_OP=250000000,MAX_WORKER_THREADS=8,MUTEX_PTHREADS,OMIT_LOOKASIDE,SECURE_DELETE,SYSTEM_MALLOC,TEMP_STORE=1,THREADSAFE=1
2024-01-26 22:03:33.266 Info SqliteUserRepository: Opening sqlite connection to /config/data/users.db
2024-01-26 22:03:33.351 Error Main: Error in appHost.Init
	*** Error Report ***
	Version: 4.7.14.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 5.15.137 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0
	Framework: .NET 6.0.20
	OS/Process: arm64/arm64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /config
	Application path: /system
	SQLitePCL.pretty.SQLiteException: CannotOpen: unable to open database file
	SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
	   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
	   at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
	   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
	   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
	   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
	   at Emby.Server.Implementations.ApplicationHost.RegisterResources()
	   at Emby.Server.Implementations.ApplicationHost.Init()
	   at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken)
	Source: SQLitePCL.pretty
	TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)

The only solution I found was to delete the container to install it again.

Link to comment
Share on other sites

Miles28

Yes, space wasn't a problem. There is more than 60% free space.

Edited by Miles28
Link to comment
Share on other sites

Q-Droid

Re-installing the container fixes it? For how long?

What is your docker run/compose?

Link to comment
Share on other sites

Miles28
1 hour ago, Q-Droid said:

Re-installing the container fixes it? For how long?

What is your docker run/compose?

Yes, it's running since yesterday night.

I've installed this image: https://hub.docker.com/r/emby/embyserver/ following luci-app-dockerman web interface for OpenWRT.

 

 

 

Link to comment
Share on other sites

Miles28

Since the last reinstall it seems to be working ok. Regarding the previous installation, I have modified the /config folder. Before it was on an external hard drive and now I have put it in /opt/docker/volume...

  • Thanks 1
Link to comment
Share on other sites

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...