TOS 5.0 重启机器后,emby无法登录
发表于 : 2024年 10月 29日 星期二 8:25 pm
机型:F4-421 TOS 5.0 emby 4.8.8版本
现象为重启机器前,通过应用中心无法停止emby服务,报错“停用失败”。重启设备后,emby正常启动,在但是无法登录。使用正确的用户名密码登录报错:Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
查看emby服务器的日志,有以下信息:
2024-10-29 20:23:55.855 Error Server: Error processing request
*** Error Report ***
Version: 4.8.8.0
Command line: /Volume1/@apps/emby/emby-server/system/EmbyServer.dll -programdata /Volume1/Emby -ffdetect /Volume1/@apps/emby/emby-server/bin/ffdetect -ffmpeg /Volume1/@apps/emby/emby-server/bin/ffmpeg -ffprobe /Volume1/@apps/emby/emby-server/bin/ffprobe -defaultdirectory /mnt/public -updatepackage emby_TOS5_APP_{version}_x86_64.tpk
Operating system: Linux version 4.19.165+ (root@developer) (gcc version 7.1.0 (Buildroot 2017.08-rc1)) #435 SMP Tue Aug 9 10:27:33 CST 2022
Framework: .NET 6.0.25
OS/Process: x64/x64
Runtime: Volume1/@apps/emby/emby-server/system/System.Private.CoreLib.dll
Processor count: 2
Data path: /Volume1/Emby
Application path: /Volume1/@apps/emby/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.StatementImpl.MoveNext()
at Emby.Server.Implementations.Data.SqliteUserRepository.UpdateUser(User user)
at Emby.Server.Implementations.Library.UserManager.UpdateUser(User user, Boolean triggerEvent)
at Emby.Server.Implementations.Library.UserManager.AuthenticateUser(String username, String password, Boolean isUserSession, Boolean isInLocalNetwork, CancellationToken cancellationToken)
at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword, CancellationToken cancellationToken)
at Emby.Api.UserService.Post(AuthenticateUserByName request)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
Source: SQLitePCL.pretty
TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)
该故障100%复现。该如何修复?
现象为重启机器前,通过应用中心无法停止emby服务,报错“停用失败”。重启设备后,emby正常启动,在但是无法登录。使用正确的用户名密码登录报错:Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
查看emby服务器的日志,有以下信息:
2024-10-29 20:23:55.855 Error Server: Error processing request
*** Error Report ***
Version: 4.8.8.0
Command line: /Volume1/@apps/emby/emby-server/system/EmbyServer.dll -programdata /Volume1/Emby -ffdetect /Volume1/@apps/emby/emby-server/bin/ffdetect -ffmpeg /Volume1/@apps/emby/emby-server/bin/ffmpeg -ffprobe /Volume1/@apps/emby/emby-server/bin/ffprobe -defaultdirectory /mnt/public -updatepackage emby_TOS5_APP_{version}_x86_64.tpk
Operating system: Linux version 4.19.165+ (root@developer) (gcc version 7.1.0 (Buildroot 2017.08-rc1)) #435 SMP Tue Aug 9 10:27:33 CST 2022
Framework: .NET 6.0.25
OS/Process: x64/x64
Runtime: Volume1/@apps/emby/emby-server/system/System.Private.CoreLib.dll
Processor count: 2
Data path: /Volume1/Emby
Application path: /Volume1/@apps/emby/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.StatementImpl.MoveNext()
at Emby.Server.Implementations.Data.SqliteUserRepository.UpdateUser(User user)
at Emby.Server.Implementations.Library.UserManager.UpdateUser(User user, Boolean triggerEvent)
at Emby.Server.Implementations.Library.UserManager.AuthenticateUser(String username, String password, Boolean isUserSession, Boolean isInLocalNetwork, CancellationToken cancellationToken)
at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword, CancellationToken cancellationToken)
at Emby.Api.UserService.Post(AuthenticateUserByName request)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
Source: SQLitePCL.pretty
TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32)
该故障100%复现。该如何修复?