机型: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%复现。该如何修复?
TOS 5.0 重启机器后,emby无法登录
版主: TerraSupport, TMsupport, TMjack
- sabertooth
- 帖子: 2
- 注册时间: 2024年 10月 29日 星期二 8:10 pm

Re: TOS 5.0 重启机器后,emby无法登录
已解决,用户权限问题。
首次安装时,emby服务进程由emby用户拉起,emby数据库文件赋予了emby用户的访问读写权限。
重启设备后,emby服务进程由NAS管理用户拉起,无对应数据库的读写权限,因此报错。
解决方法为使用ssh 登录NAS操作系统,对emby安装路径赋予权限。
如我的安装路径为:
/Volume1/@apps/emby
emby文件夹原始权限为:
drwxr-xr-x 7 emby media 4.0K Oct 29 20:28 emby
简单暴力的赋权方法: chmod -R 777 emby/
修改后的权限为:
drwxrwxrwx 7 emby media 4.0K Oct 29 20:33 emby
首次安装时,emby服务进程由emby用户拉起,emby数据库文件赋予了emby用户的访问读写权限。
重启设备后,emby服务进程由NAS管理用户拉起,无对应数据库的读写权限,因此报错。
解决方法为使用ssh 登录NAS操作系统,对emby安装路径赋予权限。
如我的安装路径为:
/Volume1/@apps/emby
emby文件夹原始权限为:
drwxr-xr-x 7 emby media 4.0K Oct 29 20:28 emby
简单暴力的赋权方法: chmod -R 777 emby/
修改后的权限为:
drwxrwxrwx 7 emby media 4.0K Oct 29 20:33 emby
Re: TOS 5.0 重启机器后,emby无法登录
您好!请问您当前使用的 TOS 系统版本是多少呢?需要注意的是,TOS 5.0 已是相对旧的系统版本,我们建议您尽快升级到最新的系统版本以获得更好的体验。sabertooth 写了: ↑2024年 10月 29日 星期二 8:39 pm 已解决,用户权限问题。
首次安装时,emby服务进程由emby用户拉起,emby数据库文件赋予了emby用户的访问读写权限。
重启设备后,emby服务进程由NAS管理用户拉起,无对应数据库的读写权限,因此报错。
解决方法为使用ssh 登录NAS操作系统,对emby安装路径赋予权限。
如我的安装路径为:
/Volume1/@apps/emby
emby文件夹原始权限为:
drwxr-xr-x 7 emby media 4.0K Oct 29 20:28 emby
简单暴力的赋权方法: chmod -R 777 emby/
修改后的权限为:
drwxrwxrwx 7 emby media 4.0K Oct 29 20:33 emby
联系我们的团队,请发送电子邮件到以下地址,记住用@代替(at):
技术团队:support(at)terra-master.com (技术支持)
服务团队:service(at)terra-master.com (用于购买,退货,更换,RMA服务)
技术团队:support(at)terra-master.com (技术支持)
服务团队:service(at)terra-master.com (用于购买,退货,更换,RMA服务)
Re: TOS 5.0 重启机器后,emby无法登录
您好!请问您遇到了什么具体的问题或困难吗?请详细描述一下情况,我们将竭诚为您提供帮助和解决方案。
联系我们的团队,请发送电子邮件到以下地址,记住用@代替(at):
技术团队:support(at)terra-master.com (技术支持)
服务团队:service(at)terra-master.com (用于购买,退货,更换,RMA服务)
技术团队:support(at)terra-master.com (技术支持)
服务团队:service(at)terra-master.com (用于购买,退货,更换,RMA服务)