Jump to content


Photo

Emby exits with System.NullReferenceException and Zero Byte Log Files

Server Mono DotNET Null Ref

  • Please log in to reply
27 replies to this topic

#21 Kolomona OFFLINE  

Kolomona

    Member

  • Members
  • 17 posts
  • Local time: 09:48 PM

Posted 06 May 2019 - 02:31 PM

Any advice on how to get the server to run again?



#22 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127005 posts
  • Local time: 12:48 AM

Posted 06 May 2019 - 03:18 PM

Can you try the latest beta package? Thanks.



#23 Kolomona OFFLINE  

Kolomona

    Member

  • Members
  • 17 posts
  • Local time: 09:48 PM

Posted 07 May 2019 - 09:45 PM

$ sudo apt remove emby-server
$ wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.2.0.4/emby-server-deb_4.2.0.4_amd64.deb
$ sudo dpkg -i emby-server-deb_4.2.0.4_amd64.deb

$ sudo service emby-server status
● emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-05-08 00:45:31 UTC; 1min 53s ago
  Process: 2570 ExecStart=/opt/emby-server/bin/emby-server (code=exited, status=0/SUCCESS)
 Main PID: 2570 (code=exited, status=0/SUCCESS)

May 08 00:45:31 KmCreations emby-server[2570]:            at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.TaskManager.AddTasks(IEnumerable`1 tasks)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ApplicationHost.RunStartupTasks()
May 08 00:45:31 KmCreations emby-server[2570]:            at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken)
May 08 00:45:31 KmCreations emby-server[2570]:         Source: System.Private.CoreLib
May 08 00:45:31 KmCreations emby-server[2570]:         TargetSite: System.String NormalizeDatePattern(System.String)
May 08 00:45:31 KmCreations emby-server[2570]:         
May 08 00:45:31 KmCreations emby-server[2570]: Info Main: Shutdown complete



$ sudo journalctl -b | grep emby
May 08 00:43:47 KmCreations sudo[2388]:     hapa : TTY=pts/0 ; PWD=/home/hapa/temp/emby ; USER=root ; COMMAND=/usr/bin/apt remove emby-server
May 08 00:45:21 KmCreations sudo[2489]:     hapa : TTY=pts/0 ; PWD=/home/hapa/temp/emby ; USER=root ; COMMAND=/usr/bin/dpkg -i emby-server-deb_4.2.0.4_amd64.deb
May 08 00:45:28 KmCreations passwd[2510]: password for 'emby' changed by 'root'
May 08 00:45:29 KmCreations emby-server[2570]: Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
May 08 00:45:29 KmCreations emby-server[2570]: Info Main: Emby
May 08 00:45:29 KmCreations emby-server[2570]:         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
May 08 00:45:29 KmCreations emby-server[2570]:         Operating system: Unix 4.15.0.48
May 08 00:45:29 KmCreations emby-server[2570]:         64-Bit OS: True
May 08 00:45:29 KmCreations emby-server[2570]:         64-Bit Process: True
May 08 00:45:29 KmCreations emby-server[2570]:         User Interactive: True
May 08 00:45:29 KmCreations emby-server[2570]:         Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
May 08 00:45:29 KmCreations emby-server[2570]:         Processor count: 1
May 08 00:45:29 KmCreations emby-server[2570]:         Program data path: /var/lib/emby
May 08 00:45:29 KmCreations emby-server[2570]:         Application directory: /opt/emby-server/system
May 08 00:45:29 KmCreations emby-server[2570]: Info App: Application version: 4.2.0.4
May 08 00:45:29 KmCreations emby-server[2570]: Info App: Loading assemblies
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.15.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/OpenSubtitles.dll has version 1.0.16.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/OMDb.dll has version 1.0.5.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/OMDb.dll has version 1.0.6.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/MusicBrainz.dll has version 1.0.5.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/MusicBrainz.dll has version 1.0.6.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/StudioImages.dll has version 1.0.0.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/StudioImages.dll has version 1.0.1.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/NfoMetadata.dll has version 1.0.11.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/NfoMetadata.dll has version 1.0.11.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/Fanart.dll has version 1.0.2.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/Fanart.dll has version 1.0.3.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/Tvdb.dll has version 1.0.7.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/Tvdb.dll has version 1.0.8.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/Emby.Dlna.dll has version 1.0.13.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/Emby.Dlna.dll has version 1.0.14.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/MovieDb.dll has version 1.0.8.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/MovieDb.dll has version 1.1.0.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/AudioDb.dll has version 1.0.4.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/AudioDb.dll has version 1.0.5.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/Emby.PortMapper.dll has version 1.0.1.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/Emby.PortMapper.dll has version 1.0.1.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /var/lib/emby/plugins/Emby.Server.CinemaMode.dll has version 1.0.14.0
May 08 00:45:29 KmCreations emby-server[2570]: Info App: File /opt/emby-server/system/plugins/Emby.Server.CinemaMode.dll has version 1.0.16.0
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading OpenSubtitles, Version=1.0.16.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/OpenSubtitles.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading OMDb, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/OMDb.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MusicBrainz, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MusicBrainz.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading StudioImages, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/StudioImages.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading NfoMetadata, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/NfoMetadata.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Fanart, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Fanart.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Tvdb, Version=1.0.8.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Tvdb.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Dlna, Version=1.0.14.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Dlna.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MovieDb, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MovieDb.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading AudioDb, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AudioDb.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.PortMapper, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.PortMapper.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Server.CinemaMode, Version=1.0.16.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Server.CinemaMode.dll
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.Api, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.WebDashboard, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.Model, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.Common, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.Controller, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.Providers, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Photos, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Server.Implementations, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.LiveTV, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Server.MediaEncoding, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading MediaBrowser.LocalMetadata, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Notifications, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Codecs.Dxva, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Codecs, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Server.Connect, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading Emby.Server.Sync, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info App: Loading EmbyServer, Version=4.2.0.4, Culture=neutral, PublicKeyToken=null
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteUserRepository: Sqlite version: 3.28.0
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteUserRepository: Sqlite compiler options: COMPILER=gcc-6.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS4,ENABLE_FTS5,ENABLE_JSON1,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
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteUserRepository: Default journal_mode for /var/lib/emby/data/users.db is wal
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteUserRepository: PRAGMA synchronous=1
May 08 00:45:30 KmCreations emby-server[2570]: Info AuthenticationRepository: Default journal_mode for /var/lib/emby/data/authentication.db is wal
May 08 00:45:30 KmCreations emby-server[2570]: Info AuthenticationRepository: PRAGMA synchronous=1
May 08 00:45:30 KmCreations emby-server[2570]: Info ActivityRepository: Default journal_mode for /var/lib/emby/data/activitylog.db is wal
May 08 00:45:30 KmCreations emby-server[2570]: Info ActivityRepository: PRAGMA synchronous=1
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteDisplayPreferencesRepository: Default journal_mode for /var/lib/emby/data/displaypreferences.db is wal
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteDisplayPreferencesRepository: PRAGMA synchronous=1
May 08 00:45:30 KmCreations emby-server[2570]: Info HttpServer: Adding HttpListener prefix http://+:8096/
May 08 00:45:30 KmCreations emby-server[2570]: Info HttpServer: Adding HttpListener prefix https://+:8920/
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteItemRepository: Default journal_mode for /var/lib/emby/data/library.db is wal
May 08 00:45:30 KmCreations emby-server[2570]: Info SqliteItemRepository: PRAGMA synchronous=1
May 08 00:45:31 KmCreations emby-server[2570]: Info Skia: SkiaSharp version: 1.68.0.0
May 08 00:45:31 KmCreations emby-server[2570]: Error Main: Error in appHost.RunStartupTasks
May 08 00:45:31 KmCreations emby-server[2570]:         *** Error Report ***
May 08 00:45:31 KmCreations emby-server[2570]:         Version: 4.2.0.4
May 08 00:45:31 KmCreations emby-server[2570]:         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
May 08 00:45:31 KmCreations emby-server[2570]:         Operating system: Unix 4.15.0.48
May 08 00:45:31 KmCreations emby-server[2570]:         64-Bit OS: True
May 08 00:45:31 KmCreations emby-server[2570]:         64-Bit Process: True
May 08 00:45:31 KmCreations emby-server[2570]:         User Interactive: True
May 08 00:45:31 KmCreations emby-server[2570]:         Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
May 08 00:45:31 KmCreations emby-server[2570]:         Processor count: 1
May 08 00:45:31 KmCreations emby-server[2570]:         Program data path: /var/lib/emby
May 08 00:45:31 KmCreations emby-server[2570]:         Application directory: /opt/emby-server/system
May 08 00:45:31 KmCreations emby-server[2570]:         System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.CalendarData.NormalizeDatePattern(String input)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.CalendarData.LoadCalendarDataFromSystem(String localeName, CalendarId calendarId)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.CalendarData..ctor(String localeName, CalendarId calendarId, Boolean bUseUserOverrides)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.CultureData.GetCalendar(CalendarId calendarId)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.CultureData.DateSeparator(CalendarId calendarId)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.DateTimeFormatInfo.InitializeOverridableProperties(CultureData cultureData, CalendarId calendarId)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.CultureInfo.get_DateTimeFormat()
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Globalization.DateTimeFormatInfo.get_CurrentInfo()
May 08 00:45:31 KmCreations emby-server[2570]:            at System.DateTimeFormat.Format(DateTime dateTime, String format, IFormatProvider provider, TimeSpan offset)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.DateTimeFormat.Format(DateTime dateTime, String format, IFormatProvider provider)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.DailyTrigger.Start(TaskResult lastResult, ILogger logger, String taskName, Boolean isApplicationStartup)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ReloadTriggerEvents(Boolean isApplicationStartup)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.InitTriggerEvents()
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker..ctor(IScheduledTask scheduledTask, IApplicationPaths applicationPaths, ITaskManager taskManager, IJsonSerializer jsonSerializer, ILogger logger, IFileSystem fileSystem, ISystemEvents systemEvents, INetworkManager networkManager)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.TaskManager.<AddTasks>b__40_0(IScheduledTask t)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
May 08 00:45:31 KmCreations emby-server[2570]:            at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ScheduledTasks.TaskManager.AddTasks(IEnumerable`1 tasks)
May 08 00:45:31 KmCreations emby-server[2570]:            at Emby.Server.Implementations.ApplicationHost.RunStartupTasks()
May 08 00:45:31 KmCreations emby-server[2570]:            at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken)
May 08 00:45:31 KmCreations emby-server[2570]:         Source: System.Private.CoreLib
May 08 00:45:31 KmCreations emby-server[2570]:         TargetSite: System.String NormalizeDatePattern(System.String)
May 08 00:45:31 KmCreations emby-server[2570]:         
May 08 00:45:31 KmCreations emby-server[2570]: Info Main: Shutdown complete



Emby log still zero bytes
 

sudo reboot

sudo journalctl -b | grep emby

Outputs same as above



#24 Kolomona OFFLINE  

Kolomona

    Member

  • Members
  • 17 posts
  • Local time: 09:48 PM

Posted 15 May 2019 - 10:03 PM

I just tried with emby-server-deb_4.2.0.5_amd64.deb with same results as above :(



#25 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127005 posts
  • Local time: 12:48 AM

Posted 17 May 2019 - 10:21 AM

We're hoping an ICU update in the future will resolve this.

#26 Kolomona OFFLINE  

Kolomona

    Member

  • Members
  • 17 posts
  • Local time: 09:48 PM

Posted 17 May 2019 - 11:54 AM

Are there any mitigation options available?

I can get the server to run just fine with the following command:
 

$ sudo /opt/emby-server/bin/emby-server -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

I just can't get the service to start, so I have to keep my terminal open :(



#27 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127005 posts
  • Local time: 12:48 AM

Posted 18 May 2019 - 01:14 AM

That's actually the best workaround i've seen so far. The problem is we have never reproduced this ourselves, it's only been about five users and we believe the issue is tied to the .net core ticket I linked to above.



#28 Kolomona OFFLINE  

Kolomona

    Member

  • Members
  • 17 posts
  • Local time: 09:48 PM

Posted 19 May 2019 - 06:14 PM

HA! I believe I fixed it!

 

I was on the right track when I set my local to en_US.UTF-8

But for some reason I didn't set the LANG env variable

I got the idea for this fix from this URL https://github.com/d...fx/issues/37630

 

TLDR: Make sure LANG is set to en_US.UTF-8 (If you have a different local, make sure it's not set to C.UTF-8)

$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Notice that the LANG=C.UTF-8 NOT en_US.UTF-8

 

So I did the following:

$ sudo update-locale LANG=en_US.UTF-8

$ sudo reboot

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

~$ sudo service emby-server status
● emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-05-19 21:58:25 UTC; 43s ago
 Main PID: 908 (EmbyServer)
    Tasks: 15 (limit: 2361)
   CGroup: /system.slice/emby-server.service
           └─908 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-serv

May 19 21:58:33 KmCreations emby-server[908]: Info App: SyncRepository Initialize write lock taken
May 19 21:58:33 KmCreations emby-server[908]: Info App: Entry point completed: Emby.Server.Sync.SyncManagerEntryPoint. Duration: 0.0149967 seconds
May 19 21:58:33 KmCreations emby-server[908]: Info App: Starting entry point Emby.Server.Sync.SyncNotificationEntryPoint
May 19 21:58:33 KmCreations emby-server[908]: Info App: Entry point completed: Emby.Server.Sync.SyncNotificationEntryPoint. Duration: 0.0055851 seconds
May 19 21:58:33 KmCreations emby-server[908]: Info App: Starting entry point EmbyServer.Windows.LoopUtilEntryPoint
May 19 21:58:33 KmCreations emby-server[908]: Info App: Entry point completed: EmbyServer.Windows.LoopUtilEntryPoint. Duration: 0.0004747 seconds
May 19 21:58:33 KmCreations emby-server[908]: Info App: All entry points have started
May 19 21:58:33 KmCreations emby-server[908]: Application started. Press Ctrl+C to shut down.
May 19 21:58:33 KmCreations emby-server[908]: Hosting environment: Production
May 19 21:58:33 KmCreations emby-server[908]: Content root path: /opt/emby-server/system/

SUCCESS!

 

The server loaded on reboot and appears to functioning.

 

It also seems to have fixed my zero byte log files issue!

$ ls -al /var/lib/emby/logs/
total 180
drwxr-xr-x  2 emby emby   4096 May 19 21:59 .
drwxr-xr-x 10 emby emby   4096 May  7 15:18 ..
-rw-r--r--  1 emby emby  49271 May 19 22:00 embyserver.txt
-rw-r--r--  1 emby emby 117113 May 19 21:58 hardware_detection-63693899913.txt

I don't have time right now to fully test. If I run into any other issues I'll post them

 

Thanks @Luke for trying to help me with this. Your questioning me about my locale was key to figuring it out.







Also tagged with one or more of these keywords: Server, Mono, DotNET, Null Ref

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users