pradotec 0 Posted March 3, 2019 Share Posted March 3, 2019 Error on linux 2019-03-03 22:57:12.011 Error HttpServer: Error processing request *** Error Report *** Version: 4.0.1.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}_amd64.deb Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 8 Program data path: /var/lib/emby Application directory: /opt/emby-server/system SQLitePCL.pretty.SQLiteException: Constraint: NOT NULL constraint failed: Tokens.DeviceId 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.Security.AuthenticationRepository.<>c__DisplayClass6_0.<Create>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.<>c__DisplayClass20_0.<RunInTransaction>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction[T](IDatabaseConnection This, Func`2 f, TransactionMode mode) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction(IDatabaseConnection This, Action`1 action, TransactionMode mode) at Emby.Server.Implementations.Security.AuthenticationRepository.Create(AuthenticationInfo info) at Emby.Server.Implementations.Session.SessionManager.GetAuthorizationToken(User user, String deviceId, String app, String appVersion, String deviceName) at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.Post(AuthenticateUserByName request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) Source: SQLitePCL.pretty TargetSite: Void CheckOk(SQLitePCL.sqlite3, Int32) at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at Emby.Server.Implementations.Security.AuthenticationRepository.<>c__DisplayClass6_0.<Create>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.<>c__DisplayClass20_0.<RunInTransaction>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction[T](IDatabaseConnection This, Func`2 f, TransactionMode mode) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction(IDatabaseConnection This, Action`1 action, TransactionMode mode) at Emby.Server.Implementations.Security.AuthenticationRepository.Create(AuthenticationInfo info) at Emby.Server.Implementations.Session.SessionManager.GetAuthorizationToken(User user, String deviceId, String app, String appVersion, String deviceName) at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.Post(AuthenticateUserByName request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) Link to comment Share on other sites More sharing options...
Luke 37250 Posted March 3, 2019 Share Posted March 3, 2019 Hi, did you at some point go back and forth between the beta and stable channels? Link to comment Share on other sites More sharing options...
pradotec 0 Posted March 3, 2019 Author Share Posted March 3, 2019 No i have only change server and i have copy all /var/lib/emby on the new server but i don't know if the problem already exist on the old server Link to comment Share on other sites More sharing options...
Luke 37250 Posted March 3, 2019 Share Posted March 3, 2019 I would shut down the server and delete this file: /var/lib/emby/data/authentication.db Then start up and you should be fine. All users will have to login again to all apps. Thanks. Link to comment Share on other sites More sharing options...
pradotec 0 Posted March 4, 2019 Author Share Posted March 4, 2019 Same probleme 2019-03-04 01:38:01.415 Info UserManager: Authentication request for test has succeeded. 2019-03-04 01:38:01.416 Info SessionManager: Logging out access token ed114c94856842ea97db2ed9f7181446 2019-03-04 01:38:01.419 Info SessionManager: Creating new access token for user 40 2019-03-04 01:38:01.423 Error HttpServer: Error processing request *** Error Report *** Version: 4.0.2.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}_amd64.deb Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 8 Program data path: /var/lib/emby Application directory: /opt/emby-server/system SQLitePCL.pretty.SQLiteException: Constraint: NOT NULL constraint failed: Tokens.DeviceId 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.Security.AuthenticationRepository.<>c__DisplayClass6_0.<Create>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.<>c__DisplayClass20_0.<RunInTransaction>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction[T](IDatabaseConnection This, Func`2 f, TransactionMode mode) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction(IDatabaseConnection This, Action`1 action, TransactionMode mode) at Emby.Server.Implementations.Security.AuthenticationRepository.Create(AuthenticationInfo info) at Emby.Server.Implementations.Session.SessionManager.GetAuthorizationToken(User user, String deviceId, String app, String appVersion, String deviceName) at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.Post(AuthenticateUserByName request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) Source: SQLitePCL.pretty TargetSite: Void CheckOk(SQLitePCL.sqlite3, Int32) at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at Emby.Server.Implementations.Security.AuthenticationRepository.<>c__DisplayClass6_0.<Create>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.<>c__DisplayClass20_0.<RunInTransaction>b__0(IDatabaseConnection db) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction[T](IDatabaseConnection This, Func`2 f, TransactionMode mode) at SQLitePCL.pretty.DatabaseConnection.RunInTransaction(IDatabaseConnection This, Action`1 action, TransactionMode mode) at Emby.Server.Implementations.Security.AuthenticationRepository.Create(AuthenticationInfo info) at Emby.Server.Implementations.Session.SessionManager.GetAuthorizationToken(User user, String deviceId, String app, String appVersion, String deviceName) at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.Post(AuthenticateUserByName request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) For explain i try connect with the api with AuthenticateByName but the message error is "Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown." Link to comment Share on other sites More sharing options...
pradotec 0 Posted March 4, 2019 Author Share Posted March 4, 2019 I don't where is the problem but i have try install emby on my computer on windows and same problem https://pastebin.com/mCb2rp3g My form for the login test <form class="login100-form validate-form" method="post" action="http://localhost:8096/Users/AuthenticateByName"> <span class="login100-form-logo"> <img src="images/DoStream_Grey_Logo.png" style="height: 150px;"></img> </span> <span class="login100-form-title p-b-34 p-t-27"> Merci de vous identifier </span> <div class="wrap-input100 validate-input" data-validate = "Entrer username"> <input class="input100" type="text" name="Username" placeholder="Username" value="test" required> <span class="focus-input100" data-placeholder=""></span> </div> <div class="wrap-input100 validate-input" data-validate="Entrer mot de passe"> <input class="input100" type="password" name="Pw" placeholder="Mot de passe" value="test" required> <span class="focus-input100" data-placeholder=""></span> </div> <div class="contact100-form-checkbox"> <input class="input-checkbox100" id="ckb1" type="checkbox" name="remember-me"> <label class="label-checkbox100" for="ckb1"> Se souvenir de moi </label> </div> <div class="container-login100-form-btn"> <button class="login100-form-btn" name="X-Emby-Authorization" value="2dde5581d23749fd9ca68fa05a3fa201"> Connexion </button> </div> <div class="text-center p-t-90"> <a class="txt1" href="#"> Mot de passe oublié </a> </div> </form> Link to comment Share on other sites More sharing options...
pradotec 0 Posted March 4, 2019 Author Share Posted March 4, 2019 (edited) I have find my error its because i don't set X-Emby-Authorization in my request But actually i have other problem Who i can create other page for login and auth the user on the emby directly ? Because with AuthenticateByName not connect on the account when i go on the server emby and i need say in my request devices id ... What is the alternative ? Edited March 4, 2019 by pradotec Link to comment Share on other sites More sharing options...
Luke 37250 Posted March 4, 2019 Share Posted March 4, 2019 Have you checked out our Api wiki? https://github.com/MediaBrowser/Emby/wiki Link to comment Share on other sites More sharing options...
pradotec 0 Posted March 13, 2019 Author Share Posted March 13, 2019 Yes but i don't know who i can make ... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now