quickmic 1344 Posted May 30, 2019 Share Posted May 30, 2019 (edited) Hello There is an issue in the newest emby or kodi companion 2.1.0.0 version. The issue appears on all versions after emby 4.2.0.5. And the issue (maybe) only appears while access from Internet, behind apache proxy. Lan looks ok. I assume it has something todo with the kodi companion update, here is the log from kodi box: 2019-05-30 13:44:48.541 T:3327328992 NOTICE: EMBY.connect -> --[ server/default ] 2019-05-30 13:44:48.551 T:3327328992 NOTICE: Emby.emby.core.configuration -> Begin app constructor. 2019-05-30 13:44:48.560 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> Begin connect 2019-05-30 13:44:48.566 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> Begin getAvailableServers 2019-05-30 13:44:48.567 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> Begin getConnectServers 2019-05-30 13:44:49.569 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> Found Servers: [] 2019-05-30 13:44:49.575 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> Begin connectToServers, with 1 servers 2019-05-30 13:44:49.576 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> begin connectToServer 2019-05-30 13:44:49.576 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> beginning connection tests 2019-05-30 13:44:49.577 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> testing connection mode 2 with server multimedia 2019-05-30 13:44:49.578 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> tryConnect url: https://{emby-server}/emby/system/info/public 2019-05-30 13:44:50.191 T:3327328992 ERROR: /home/osmc/.kodi/addons/plugin.video.emby/libraries/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) 2019-05-30 13:44:50.399 T:3327328992 NOTICE: Emby.emby.core.connection_manager -> calling onSuccessfulConnection with connection mode 2 with server multimedia 2019-05-30 13:44:51.166 T:3327328992 ERROR: /home/osmc/.kodi/addons/plugin.video.emby/libraries/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) 2019-05-30 13:44:51.368 T:3327328992 NOTICE: Emby.emby.core.http -> ERROR:: 500 Server Error: Internal Server Error for url: https://{emby-server}/emby/System/Info 2019-05-30 13:44:51.374 T:3327328992 NOTICE: Emby.emby.core.http -> ERROR:: --[ 500 response ] 500 Server Error: Internal Server Error for url: https://{emby-server}/emby/System/Info 2019-05-30 13:44:51.376 T:3327328992 NOTICE: Emby.emby.client -> User is authenticated. 2019-05-30 13:44:51.989 T:3327328992 ERROR: /home/osmc/.kodi/addons/plugin.video.emby/libraries/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) 2019-05-30 13:44:52.193 T:3327328992 NOTICE: Emby.emby.core.http -> ERROR:: 500 Server Error: Internal Server Error for url: https://{emby-server}/emby/Users/2912eda16db344d8b039221908646829 2019-05-30 13:44:52.193 T:3327328992 NOTICE: Emby.emby.core.http -> ERROR:: --[ 500 response ] 500 Server Error: Internal Server Error for url: https://{emby-server}/emby/Users/2912eda16db344d8b039221908646829 2019-05-30 13:44:52.800 T:3327328992 ERROR: /home/osmc/.kodi/addons/plugin.video.emby/libraries/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) 2019-05-30 13:44:53.004 T:3327328992 NOTICE: Emby.emby.core.http -> ERROR:: 500 Server Error: Internal Server Error for url: https://{emby-server}/emby/System/Configuration 2019-05-30 13:44:53.008 T:3327328992 NOTICE: Emby.emby.core.http -> ERROR:: --[ 500 response ] 500 Server Error: Internal Server Error for url: https://{emby-server}/emby/System/Configuration 2019-05-30 13:44:53.009 T:3327328992 NOTICE: EMBY.entrypoint.service -> ERROR:: 'NoneType' object has no attribute '__getitem__' log from emby server: 2019-05-30 07:39:51.658 Info TaskManager: ExecuteQueuedTasks 2019-05-30 07:40:14.746 Info HttpServer: WS http://MYURL/?api_key=MYKEYHERE&device_id=6B78126BB2524968B0A153395310C1A2. UserAgent: 2019-05-30 07:40:17.799 Info HttpServer: HTTP GET http://MYURL/emby/Plugins. UserAgent: Emby-Kodi/4.0.25a 2019-05-30 07:40:17.837 Error HttpServer: Error processing request *** Error Report *** Version: 4.2.0.10 Command line: /opt/emby/EmbyServer.dll Operating system: Unix 4.15.18.14 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///usr/share/dotnet/shared/Microsoft.NETCore.App/2.2.5/System.Private.CoreLib.dll Processor count: 12 Program data path: /opt/programdata Application directory: /opt/emby SQLitePCL.pretty.SQLiteException: Constraint: NOT NULL constraint failed: Tokens.DeviceName 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 Emby.Server.Implementations.Security.AuthenticationRepository.Update(AuthenticationInfo info) at Emby.Server.Implementations.HttpServer.Security.AuthorizationContext.GetAuthorization(IRequest httpReq) at Emby.Server.Implementations.HttpServer.Security.AuthorizationContext.GetAuthorizationInfo(IRequest requestContext) at Emby.Server.Implementations.HttpServer.Security.AuthService.Authenticate(IRequest request, IAuthenticationAttributes authAttribtues, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.ApplyRequestFilters(IRequest req, IResponse res, Object requestDto, CancellationToken cancellationToken) 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, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 host, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: SQLitePCL.pretty TargetSite: Void CheckOk(SQLitePCL.sqlite3, Int32) Edited May 30, 2019 by quickmic Link to comment Share on other sites More sharing options...
Luke 37066 Posted May 30, 2019 Share Posted May 30, 2019 @@Angelblue05 there's an existing topic about this, right? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 30, 2019 Share Posted May 30, 2019 @@Angelblue05 there's an existing topic about this, right? Not that I am aware? Link to comment Share on other sites More sharing options...
Luke 37066 Posted May 30, 2019 Share Posted May 30, 2019 It was about the device name missing from the Authorization header. 2 Link to comment Share on other sites More sharing options...
Solution Angelblue05 4130 Posted May 30, 2019 Solution Share Posted May 30, 2019 It was about the device name missing from the Authorization header. Ah yes, sorry. Long week. @@quickmic This is fixed with the next beta, for now, you can fix this by going into the add-on settings > enable use alternate device name. 2 Link to comment Share on other sites More sharing options...
quickmic 1344 Posted May 30, 2019 Author Share Posted May 30, 2019 Ok thank you, I try. Link to comment Share on other sites More sharing options...
quickmic 1344 Posted May 30, 2019 Author Share Posted May 30, 2019 yep, that's it. Case closed, thank you 1 Link to comment Share on other sites More sharing options...
Recommended Posts