Jump to content

Problems restoring emby on a raspberry 4, help...


moha85

Recommended Posts

moha85

Hello everybody

Recently I have had problems with the boot of my raspberry 4, which did not boot and I have not managed to get it to boot, I do not know exactly why, the good thing is that I was able to make a copy of the entire contents of the SSD.

Now I'm trying to go back to my previous installation of emby 4.5.4.0, but I'm not able to get it to work.

I install the 4.5.4.0 version, stop it, replace the files I have in var\lib\emby, restart the raspberry 4 and the service doesn't start. I start it by hand but it doesn't start.

Can you help me? because I can not recover my previous emby, especially what I want is to recover my previous database, as they are many and many hours of work.

Thanks

Link to comment
Share on other sites

XcOM9876

What's the stop code/output from:

systemctl status emby-server

You can also grab your logs from /var/lib/emby/logs, the most recent will just be called embyserver.txt, older ones will be appended with the timestamp, check if there is anything in there that would indicate why it won't start?

Another place to get logs would be from your system logs, use the below command to create a file with the logs from the service:

journalctl -u emby-server > embyserverservice.txt

All of that is a starting point, maybe upload the logs and someone smarter than me might know why it won't start lol

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
moha85
On 6/28/2021 at 2:38 PM, XcOM9876 said:

What's the stop code/output from:


systemctl status emby-server

You can also grab your logs from /var/lib/emby/logs, the most recent will just be called embyserver.txt, older ones will be appended with the timestamp, check if there is anything in there that would indicate why it won't start?

Another place to get logs would be from your system logs, use the below command to create a file with the logs from the service:


journalctl -u emby-server > embyserverservice.txt

All of that is a starting point, maybe upload the logs and someone smarter than me might know why it won't start lol

 

On 6/30/2021 at 5:18 PM, Luke said:

Hello, first of all I apologize for not responding sooner.

I have had a lot of problems with my new house and I had to disassemble everything, computer, raspberry, tv, etc ... and I could not look at anything, only today I could finish assembling the computer, I will try to get some time when I can and get with it, but right now my house and life is chaos!!!! :(

Greetings and I hope soon to upload the log and fix my backup.

Translated with www.DeepL.com/Translator (free version)

  • Like 1
Link to comment
Share on other sites

On 7/10/2021 at 1:05 PM, moha85 said:

 

Hello, first of all I apologize for not responding sooner.

I have had a lot of problems with my new house and I had to disassemble everything, computer, raspberry, tv, etc ... and I could not look at anything, only today I could finish assembling the computer, I will try to get some time when I can and get with it, but right now my house and life is chaos!!!! :(

Greetings and I hope soon to upload the log and fix my backup.

Translated with www.DeepL.com/Translator (free version)

Great, thanks for the update !

Link to comment
Share on other sites

moha85

Hello again

I have been able to connect my raspberry 4 and the pc, everything is down but it is working.

I have uninstalled the latest version of emby and installed the 4.5.4.0 (the server has not started until I have not created by hand the emby folder in /var/lib, I've gone a little crazy).

Once the server started the 4.5.4.0 correctly, I stopped it.
I deleted all the /var/lib/emby folders and copied the folders from the previous backup.

I reboot and check the server status with "systemctl status emby-server". and it tells me that it is stopped

Quote

emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2021-07-14 00:29:07 BST; 8min ago
  Process: 5956 ExecStart=/opt/emby-server/bin/emby-server (code=exited, status=0/SUCCESS)
 Main PID: 5956 (code=exited, status=0/SUCCESS)

Jul 14 00:29:07 raspberrypi emby-server[5956]:            at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(S
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at Emby.Server.Implementations.ApplicationHost.InitDatabases()
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at Emby.Server.Implementations.ApplicationHost.Init()
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at EmbyServer.HostedService.StartAsync(CancellationToken cancellation
Jul 14 00:29:07 raspberrypi emby-server[5956]:         Source: SQLitePCL.pretty
Jul 14 00:29:07 raspberrypi emby-server[5956]:         TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)
Jul 14 00:29:07 raspberrypi emby-server[5956]:
Jul 14 00:29:07 raspberrypi emby-server[5956]: Info Main: Shutdown complete
Jul 14 00:29:07 raspberrypi systemd[1]: emby-server.service: Succeeded.
 

I leave you the last log that emby has thrown:

Quote

2021-07-14 00:29:05.148 Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
2021-07-14 00:29:05.933 Info Main: Emby
    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}_armhf.deb
    Operating system: Linux version 5.10.17-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #142
    Framework: .NET Core 3.1.8
    OS/Process: arm/arm
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
2021-07-14 00:29:06.068 Info App: Application version: 4.5.4.0
2021-07-14 00:29:06.075 Info App: Loading assemblies
2021-07-14 00:29:06.148 Info App: File /var/lib/emby/plugins/Tvdb.dll has version 1.0.36.0
2021-07-14 00:29:06.149 Info App: File /opt/emby-server/system/plugins/Tvdb.dll has version 1.0.35.0
2021-07-14 00:29:06.150 Info App: File /var/lib/emby/plugins/Emby.PortMapper.dll has version 1.0.4.0
2021-07-14 00:29:06.150 Info App: File /opt/emby-server/system/plugins/Emby.PortMapper.dll has version 1.0.4.0
2021-07-14 00:29:06.152 Info App: File /var/lib/emby/plugins/StudioImages.dll has version 1.0.3.0
2021-07-14 00:29:06.153 Info App: File /opt/emby-server/system/plugins/StudioImages.dll has version 1.0.3.0
2021-07-14 00:29:06.153 Info App: File /var/lib/emby/plugins/NfoMetadata.dll has version 1.0.34.0
2021-07-14 00:29:06.154 Info App: File /opt/emby-server/system/plugins/NfoMetadata.dll has version 1.0.34.0
2021-07-14 00:29:06.154 Info App: File /var/lib/emby/plugins/OMDb.dll has version 1.0.12.0
2021-07-14 00:29:06.154 Info App: File /opt/emby-server/system/plugins/OMDb.dll has version 1.0.11.0
2021-07-14 00:29:06.155 Info App: File /var/lib/emby/plugins/Emby.Dlna.dll has version 1.0.39.0
2021-07-14 00:29:06.156 Info App: File /opt/emby-server/system/plugins/Emby.Dlna.dll has version 1.0.39.0
2021-07-14 00:29:06.156 Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.27.0
2021-07-14 00:29:06.157 Info App: File /opt/emby-server/system/plugins/OpenSubtitles.dll has version 1.0.27.0
2021-07-14 00:29:06.157 Info App: File /var/lib/emby/plugins/BlurayMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.158 Info App: File /opt/emby-server/system/plugins/BlurayMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.158 Info App: File /var/lib/emby/plugins/MusicBrainz.dll has version 1.0.13.0
2021-07-14 00:29:06.159 Info App: File /opt/emby-server/system/plugins/MusicBrainz.dll has version 1.0.13.0
2021-07-14 00:29:06.159 Info App: File /var/lib/emby/plugins/Fanart.dll has version 1.0.10.0
2021-07-14 00:29:06.160 Info App: File /opt/emby-server/system/plugins/Fanart.dll has version 1.0.10.0
2021-07-14 00:29:06.160 Info App: File /var/lib/emby/plugins/DvdMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.160 Info App: File /opt/emby-server/system/plugins/DvdMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.161 Info App: File /var/lib/emby/plugins/AudioDb.dll has version 1.0.11.0
2021-07-14 00:29:06.162 Info App: File /opt/emby-server/system/plugins/AudioDb.dll has version 1.0.11.0
2021-07-14 00:29:06.162 Info App: File /var/lib/emby/plugins/Emby.Webhooks.dll has version 1.0.14.0
2021-07-14 00:29:06.163 Info App: File /opt/emby-server/system/plugins/Emby.Webhooks.dll has version 1.0.13.0
2021-07-14 00:29:06.163 Info App: File /var/lib/emby/plugins/MovieDb.dll has version 1.3.8.0
2021-07-14 00:29:06.164 Info App: File /opt/emby-server/system/plugins/MovieDb.dll has version 1.3.8.0
2021-07-14 00:29:06.164 Info App: File /var/lib/emby/plugins/Emby.Server.CinemaMode.dll has version 1.0.35.0
2021-07-14 00:29:06.164 Info App: File /opt/emby-server/system/plugins/Emby.Server.CinemaMode.dll has version 1.0.35.0
2021-07-14 00:29:06.241 Info App: Loading Tvdb, Version=1.0.36.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Tvdb.dll
2021-07-14 00:29:06.241 Info App: Loading Emby.PortMapper, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.PortMapper.dll
2021-07-14 00:29:06.241 Info App: Loading MediaBrowser.Plugins.VuPlus, Version=3.2.2.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MediaBrowser.Plugins.VuPlus.dll
2021-07-14 00:29:06.241 Info App: Loading StudioImages, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/StudioImages.dll
2021-07-14 00:29:06.241 Info App: Loading NfoMetadata, Version=1.0.34.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/NfoMetadata.dll
2021-07-14 00:29:06.241 Info App: Loading OMDb, Version=1.0.12.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/OMDb.dll
2021-07-14 00:29:06.241 Info App: Loading MediaBrowser.Plugins.Trailers, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Mediabrowser.Plugins.Trailers.dll
2021-07-14 00:29:06.241 Info App: Loading Emby.Dlna, Version=1.0.39.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Dlna.dll
2021-07-14 00:29:06.242 Info App: Loading AutoCollections, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AutoCollections.dll
2021-07-14 00:29:06.242 Info App: Loading Iconic, Version=1.0.2.1, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Iconic.dll
2021-07-14 00:29:06.242 Info App: Loading AutoBoxSets, Version=1.2.5.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AutoBoxSets.dll
2021-07-14 00:29:06.242 Info App: Loading OpenSubtitles, Version=1.0.27.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/OpenSubtitles.dll
2021-07-14 00:29:06.242 Info App: Loading SmartPlaylist, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/SmartPlaylist.dll
2021-07-14 00:29:06.242 Info App: Loading BlurayMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/BlurayMounter.dll
2021-07-14 00:29:06.242 Info App: Loading MusicBrainz, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MusicBrainz.dll
2021-07-14 00:29:06.242 Info App: Loading Fanart, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Fanart.dll
2021-07-14 00:29:06.242 Info App: Loading DvdMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/DvdMounter.dll
2021-07-14 00:29:06.242 Info App: Loading AudioDb, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AudioDb.dll
2021-07-14 00:29:06.242 Info App: Loading Emby.Webhooks, Version=1.0.14.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Webhooks.dll
2021-07-14 00:29:06.242 Info App: Loading MovieDb, Version=1.3.8.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MovieDb.dll
2021-07-14 00:29:06.242 Info App: Loading Emby.Server.CinemaMode, Version=1.0.35.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Server.CinemaMode.dll
2021-07-14 00:29:06.242 Info App: Loading Emby.Api, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Web, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading MediaBrowser.Model, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading MediaBrowser.Common, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading MediaBrowser.Controller, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Providers, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Photos, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Server.Implementations, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.LiveTV, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.ActivityLog, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Server.MediaEncoding, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.243 Info App: Loading Emby.LocalMetadata, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.243 Info App: Loading Emby.Notifications, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.245 Info App: Loading Emby.Codecs.Dxva, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading Emby.Codecs, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading Emby.Server.Connect, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading Emby.Server.Sync, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading EmbyServer, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.766 Info SqliteUserRepository: Sqlite version: 3.33.0
2021-07-14 00:29:06.769 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_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
2021-07-14 00:29:06.825 Info SqliteUserRepository: Default journal_mode for /var/lib/emby/data/users.db is wal
2021-07-14 00:29:06.966 Info AuthenticationRepository: Default journal_mode for /var/lib/emby/data/authentication.db is wal
2021-07-14 00:29:07.120 Info ActivityRepository: Default journal_mode for /var/lib/emby/data/activitylog.db is wal
2021-07-14 00:29:07.133 Info SqliteDisplayPreferencesRepository: Default journal_mode for /var/lib/emby/data/displaypreferences.db is wal
2021-07-14 00:29:07.158 Info App: Adding HttpListener prefix http://+:8096/
2021-07-14 00:29:07.681 Debug XmlSerializer: Deserializing file /var/lib/emby/config/users/c46cdf2036a947a1a7f691fcdd1e17bb/policy.xml
2021-07-14 00:29:07.865 Info SqliteItemRepository: Default journal_mode for /var/lib/emby/data/library.db is wal
2021-07-14 00:29:07.902 Error Main: Error in appHost.Init
    *** Error Report ***
    Version: 4.5.4.0
    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}_armhf.deb
    Operating system: Linux version 5.10.17-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #142
    Framework: .NET Core 3.1.8
    OS/Process: arm/arm
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    SQLitePCL.pretty.SQLiteException: ReadOnly: attempt to write a readonly database
    SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
       at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
       at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3_stmt stmt, Int32 rc)
       at SQLitePCL.pretty.StatementImpl.MoveNext()
       at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql)
       at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, IUserManager userManager)
       at Emby.Server.Implementations.ApplicationHost.InitDatabases()
       at Emby.Server.Implementations.ApplicationHost.Init()
       at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken)
    Source: SQLitePCL.pretty
    TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)
    
2021-07-14 00:29:07.922 Info Main: Shutdown complete
 

I could be missing to copy something from other different folders?

 

Thank you for your famtastic help.

Link to comment
Share on other sites

moha85

Hello again

I have been able to connect my raspberry 4 and the pc, everything is down but it is working.

I have uninstalled the latest version of emby and installed the 4.5.4.0 (the server has not started until I have not created by hand the emby folder in /var/lib, I've gone a little crazy).

Once the server started the 4.5.4.0 correctly, I stopped it.
I deleted all the /var/lib/emby folders and copied the folders from the previous backup.

I reboot and check the server status with "systemctl status emby-server". and it tells me that it is stopped

Quote

emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2021-07-14 00:29:07 BST; 8min ago
  Process: 5956 ExecStart=/opt/emby-server/bin/emby-server (code=exited, status=0/SUCCESS)
 Main PID: 5956 (code=exited, status=0/SUCCESS)

Jul 14 00:29:07 raspberrypi emby-server[5956]:            at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(S
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at Emby.Server.Implementations.ApplicationHost.InitDatabases()
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at Emby.Server.Implementations.ApplicationHost.Init()
Jul 14 00:29:07 raspberrypi emby-server[5956]:            at EmbyServer.HostedService.StartAsync(CancellationToken cancellation
Jul 14 00:29:07 raspberrypi emby-server[5956]:         Source: SQLitePCL.pretty
Jul 14 00:29:07 raspberrypi emby-server[5956]:         TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)
Jul 14 00:29:07 raspberrypi emby-server[5956]:
Jul 14 00:29:07 raspberrypi emby-server[5956]: Info Main: Shutdown complete
Jul 14 00:29:07 raspberrypi systemd[1]: emby-server.service: Succeeded.
 

I leave you the last log that emby has thrown:

Quote

2021-07-14 00:29:05.148 Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
2021-07-14 00:29:05.933 Info Main: Emby
    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}_armhf.deb
    Operating system: Linux version 5.10.17-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #142
    Framework: .NET Core 3.1.8
    OS/Process: arm/arm
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
2021-07-14 00:29:06.068 Info App: Application version: 4.5.4.0
2021-07-14 00:29:06.075 Info App: Loading assemblies
2021-07-14 00:29:06.148 Info App: File /var/lib/emby/plugins/Tvdb.dll has version 1.0.36.0
2021-07-14 00:29:06.149 Info App: File /opt/emby-server/system/plugins/Tvdb.dll has version 1.0.35.0
2021-07-14 00:29:06.150 Info App: File /var/lib/emby/plugins/Emby.PortMapper.dll has version 1.0.4.0
2021-07-14 00:29:06.150 Info App: File /opt/emby-server/system/plugins/Emby.PortMapper.dll has version 1.0.4.0
2021-07-14 00:29:06.152 Info App: File /var/lib/emby/plugins/StudioImages.dll has version 1.0.3.0
2021-07-14 00:29:06.153 Info App: File /opt/emby-server/system/plugins/StudioImages.dll has version 1.0.3.0
2021-07-14 00:29:06.153 Info App: File /var/lib/emby/plugins/NfoMetadata.dll has version 1.0.34.0
2021-07-14 00:29:06.154 Info App: File /opt/emby-server/system/plugins/NfoMetadata.dll has version 1.0.34.0
2021-07-14 00:29:06.154 Info App: File /var/lib/emby/plugins/OMDb.dll has version 1.0.12.0
2021-07-14 00:29:06.154 Info App: File /opt/emby-server/system/plugins/OMDb.dll has version 1.0.11.0
2021-07-14 00:29:06.155 Info App: File /var/lib/emby/plugins/Emby.Dlna.dll has version 1.0.39.0
2021-07-14 00:29:06.156 Info App: File /opt/emby-server/system/plugins/Emby.Dlna.dll has version 1.0.39.0
2021-07-14 00:29:06.156 Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.27.0
2021-07-14 00:29:06.157 Info App: File /opt/emby-server/system/plugins/OpenSubtitles.dll has version 1.0.27.0
2021-07-14 00:29:06.157 Info App: File /var/lib/emby/plugins/BlurayMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.158 Info App: File /opt/emby-server/system/plugins/BlurayMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.158 Info App: File /var/lib/emby/plugins/MusicBrainz.dll has version 1.0.13.0
2021-07-14 00:29:06.159 Info App: File /opt/emby-server/system/plugins/MusicBrainz.dll has version 1.0.13.0
2021-07-14 00:29:06.159 Info App: File /var/lib/emby/plugins/Fanart.dll has version 1.0.10.0
2021-07-14 00:29:06.160 Info App: File /opt/emby-server/system/plugins/Fanart.dll has version 1.0.10.0
2021-07-14 00:29:06.160 Info App: File /var/lib/emby/plugins/DvdMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.160 Info App: File /opt/emby-server/system/plugins/DvdMounter.dll has version 1.0.0.0
2021-07-14 00:29:06.161 Info App: File /var/lib/emby/plugins/AudioDb.dll has version 1.0.11.0
2021-07-14 00:29:06.162 Info App: File /opt/emby-server/system/plugins/AudioDb.dll has version 1.0.11.0
2021-07-14 00:29:06.162 Info App: File /var/lib/emby/plugins/Emby.Webhooks.dll has version 1.0.14.0
2021-07-14 00:29:06.163 Info App: File /opt/emby-server/system/plugins/Emby.Webhooks.dll has version 1.0.13.0
2021-07-14 00:29:06.163 Info App: File /var/lib/emby/plugins/MovieDb.dll has version 1.3.8.0
2021-07-14 00:29:06.164 Info App: File /opt/emby-server/system/plugins/MovieDb.dll has version 1.3.8.0
2021-07-14 00:29:06.164 Info App: File /var/lib/emby/plugins/Emby.Server.CinemaMode.dll has version 1.0.35.0
2021-07-14 00:29:06.164 Info App: File /opt/emby-server/system/plugins/Emby.Server.CinemaMode.dll has version 1.0.35.0
2021-07-14 00:29:06.241 Info App: Loading Tvdb, Version=1.0.36.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Tvdb.dll
2021-07-14 00:29:06.241 Info App: Loading Emby.PortMapper, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.PortMapper.dll
2021-07-14 00:29:06.241 Info App: Loading MediaBrowser.Plugins.VuPlus, Version=3.2.2.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MediaBrowser.Plugins.VuPlus.dll
2021-07-14 00:29:06.241 Info App: Loading StudioImages, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/StudioImages.dll
2021-07-14 00:29:06.241 Info App: Loading NfoMetadata, Version=1.0.34.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/NfoMetadata.dll
2021-07-14 00:29:06.241 Info App: Loading OMDb, Version=1.0.12.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/OMDb.dll
2021-07-14 00:29:06.241 Info App: Loading MediaBrowser.Plugins.Trailers, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Mediabrowser.Plugins.Trailers.dll
2021-07-14 00:29:06.241 Info App: Loading Emby.Dlna, Version=1.0.39.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Dlna.dll
2021-07-14 00:29:06.242 Info App: Loading AutoCollections, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AutoCollections.dll
2021-07-14 00:29:06.242 Info App: Loading Iconic, Version=1.0.2.1, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Iconic.dll
2021-07-14 00:29:06.242 Info App: Loading AutoBoxSets, Version=1.2.5.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AutoBoxSets.dll
2021-07-14 00:29:06.242 Info App: Loading OpenSubtitles, Version=1.0.27.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/OpenSubtitles.dll
2021-07-14 00:29:06.242 Info App: Loading SmartPlaylist, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/SmartPlaylist.dll
2021-07-14 00:29:06.242 Info App: Loading BlurayMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/BlurayMounter.dll
2021-07-14 00:29:06.242 Info App: Loading MusicBrainz, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MusicBrainz.dll
2021-07-14 00:29:06.242 Info App: Loading Fanart, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Fanart.dll
2021-07-14 00:29:06.242 Info App: Loading DvdMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/DvdMounter.dll
2021-07-14 00:29:06.242 Info App: Loading AudioDb, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/AudioDb.dll
2021-07-14 00:29:06.242 Info App: Loading Emby.Webhooks, Version=1.0.14.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Webhooks.dll
2021-07-14 00:29:06.242 Info App: Loading MovieDb, Version=1.3.8.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MovieDb.dll
2021-07-14 00:29:06.242 Info App: Loading Emby.Server.CinemaMode, Version=1.0.35.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Server.CinemaMode.dll
2021-07-14 00:29:06.242 Info App: Loading Emby.Api, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Web, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading MediaBrowser.Model, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading MediaBrowser.Common, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading MediaBrowser.Controller, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Providers, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Photos, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Server.Implementations, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.LiveTV, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.ActivityLog, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.242 Info App: Loading Emby.Server.MediaEncoding, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.243 Info App: Loading Emby.LocalMetadata, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.243 Info App: Loading Emby.Notifications, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.245 Info App: Loading Emby.Codecs.Dxva, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading Emby.Codecs, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading Emby.Server.Connect, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading Emby.Server.Sync, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.246 Info App: Loading EmbyServer, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null
2021-07-14 00:29:06.766 Info SqliteUserRepository: Sqlite version: 3.33.0
2021-07-14 00:29:06.769 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_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
2021-07-14 00:29:06.825 Info SqliteUserRepository: Default journal_mode for /var/lib/emby/data/users.db is wal
2021-07-14 00:29:06.966 Info AuthenticationRepository: Default journal_mode for /var/lib/emby/data/authentication.db is wal
2021-07-14 00:29:07.120 Info ActivityRepository: Default journal_mode for /var/lib/emby/data/activitylog.db is wal
2021-07-14 00:29:07.133 Info SqliteDisplayPreferencesRepository: Default journal_mode for /var/lib/emby/data/displaypreferences.db is wal
2021-07-14 00:29:07.158 Info App: Adding HttpListener prefix http://+:8096/
2021-07-14 00:29:07.681 Debug XmlSerializer: Deserializing file /var/lib/emby/config/users/c46cdf2036a947a1a7f691fcdd1e17bb/policy.xml
2021-07-14 00:29:07.865 Info SqliteItemRepository: Default journal_mode for /var/lib/emby/data/library.db is wal
2021-07-14 00:29:07.902 Error Main: Error in appHost.Init
    *** Error Report ***
    Version: 4.5.4.0
    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}_armhf.deb
    Operating system: Linux version 5.10.17-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #142
    Framework: .NET Core 3.1.8
    OS/Process: arm/arm
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    SQLitePCL.pretty.SQLiteException: ReadOnly: attempt to write a readonly database
    SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
       at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
       at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3_stmt stmt, Int32 rc)
       at SQLitePCL.pretty.StatementImpl.MoveNext()
       at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql)
       at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, IUserManager userManager)
       at Emby.Server.Implementations.ApplicationHost.InitDatabases()
       at Emby.Server.Implementations.ApplicationHost.Init()
       at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken)
    Source: SQLitePCL.pretty
    TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)
    
2021-07-14 00:29:07.922 Info Main: Shutdown complete
 

I could be missing to copy something from other different folders?

EDIT:

 

OK, I've been reading the log carefully and trying things out.

I copied all the contents of /opt/emby-server and rebooted, and nothing, still the same error.

So I tried changing permissions of everything to 0777, both the /opt/emby-server folder and /var/lib/emby rebooted and ......

IT WORKS!!! with all my previous configuration!

If it's my lack of time and the desire to make it work I didn't work well.

The trees prevented me from seeing the forest XD

 

Thank you for your fantastic help.

 

Edited by moha85
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...