BlavkEntropy 1 Posted July 20, 2021 Posted July 20, 2021 (edited) Hi All, I just want to say Thanks to the Emby team, I have been using emby for years with no issues. What is happening I have hit an issue with one android device not being able to connect to Emby via the android app on the local domain. I can access Emby via the Browser When I am on my Local domain via wifi, I open the application it hangs on the Emby logo. The below error happens in the logs. My Configuration • Windows 10 Pro • Emby server version 4.6.3 • Emby for android 3.2.0.5 • Samsung Galaxy note 20 Ultra What is working • When access my HTTPS domain externally, I have no issues • Access via Mobile Firefox browser works • Emby connect works when connecting externally • Other Android devices have no issues Fault Finding, I have done • Uninstalled and reinstalled the application • Restarted the Emby Server • Restarted the desktop, and installing all outstanding Windows Updates • Cleared all data on the android phone the /data/user/0/com.mb.android folder • Cleared Data and Cache • Reinstalled from both Play store and installed the APK directly from the Emby site • Turned off my antivirus/firewall • Tried other Android devices, they work with no issues • Changed Static IP Address of my phone, and the mac address. What has changed recently I setup a Signed Certificate from Certify the web last night, changing from a Self-Signed Certificate. Logs I am seeing the below error in the embyserver.log when I attempt to connect via this one Android device via the application. 2021-07-20 11:57:14.535 Info Server: http/1.1 GET http://192.168.0.100:8096/emby/users/public?X-Emby-Client=Emby%20for%20Android&X-Emby-Device-Name=Ryan%20Note%2020&X-Emby-Device-Id=55eb37ca8393c58d&X-Emby-Client-Version=3.2.05. UserAgent: Mozilla/5.0 (Linux; Android 11; SM-N986B Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.164 Mobile Safari/537.36 2021-07-20 11:09:27.516 Error Server: Error processing request *** Error Report *** Version: 4.6.4.0 Command line: C:\Users\xxxxx\AppData\Roaming\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows 10.0.19042 Framework: .NET Core 3.1.13 OS/Process: x64/x64 Runtime: C:/Users/xxxxx/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 8 Data path: C:\Users\xxxxx\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\xxxxx\AppData\Roaming\Emby-Server\system System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. at Emby.Server.Implementations.Library.UserManager.GetInternalId(Guid id) at Emby.Server.Implementations.Security.AuthenticationRepository.b__10_0(Guid i) at System.Linq.Enumerable.SelectListIterator`2.MoveNext() at System.Linq.Set`1.UnionWith(IEnumerable`1 other) at System.Linq.Enumerable.DistinctIterator`1.FillSet() at System.Linq.Enumerable.DistinctIterator`1.ToArray() at Emby.Server.Implementations.Security.AuthenticationRepository.GetUserHistory(String deviceId) at MediaBrowser.Api.UserService.QueryUsers(BaseUserRequest request, Boolean filterByDevice, Boolean filterByNetwork, Boolean isAuthenticated, Boolean isInLocalNetwork, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.GetUsers(GetUsersResult request, Boolean filterByDevice, Boolean filterByNetwork, Boolean isAuthenticated, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.Get(GetPublicUsers request) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: Emby.Server.Implementations TargetSite: Int64 GetInternalId(System.Guid) Hopefully I have covered everything I have done and it makes sense. I am not sure what else to check at this time. Can anyone assist with this issue? Thanks Edited July 20, 2021 by BlavkEntropy
Abobader 3464 Posted July 20, 2021 Posted July 20, 2021 Hello BlavkEntropy, ** This is an auto reply ** Please wait for someone from staff support or our members to reply to you. It's recommended to provide more info, as it explain in this thread: Thank you. Emby Team
Solution BlavkEntropy 1 Posted July 20, 2021 Author Solution Posted July 20, 2021 Hi All, So after some further Fault Finding. I found the Device ID my phone was trying to use to connect to emby was broken (55eb37ca8393c58d&X). After deleting the Emby-Server\programdata\config\users folder (Taking a backup prior) I was able to connect via my phone. All other devices connect without issues. Is there any issues with regenerating the user folder? Thanks Team
Carlo 4561 Posted July 20, 2021 Posted July 20, 2021 Glad you got this figured out. You should be ok moving forward.
BlavkEntropy 1 Posted August 3, 2021 Author Posted August 3, 2021 Hi All, I have finally figured out why this is happening. I believe this is a bug. Device - Samsung Note 20 5G Ultra Application Version - Android 3.2.05 Server Version - Windows 4.6.4.0 Assumptions You are on the Local Network What is Happening I am unable to login with the Android Application when I sign out of a account with "Hide this user from login screens on devices they've never signed into" Is activated and "Hide this user from login screens on the local network" is turned off. Steps To Replicate 1. On a Admin account, Go to Users> Select a User 2. Tick "Hide this user from login screens on devices they've never signed into" and Untick "Hide this user from login screens on the local network" 3. In the Android application Manually sign into the Hidden Account 4. Sign Out (This sits on the loading screen) 5. Reopen Emby What Is expected You sign out, and go back to the login Screen and can sign in to any account and can see the hidden account What Actually happens When Opening the Emby application, it sits on the Splash screen. The below error appears in the Logs. Note Browser access still works this only effects the Android application. How to Fix the issue Log in through the Browser, and untick "Hide this user from login screens on devices they've never signed into" or Tick "Hide this user from login screens on the local network" I get the following error in the Logs 2021-08-04 09:46:21.452 Error Server: Error processing request *** Error Report *** Version: 4.6.4.0 Command line: C:\Users\ryanc\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp Operating system: Microsoft Windows 10.0.19042 Framework: .NET Core 3.1.13 OS/Process: x64/x64 Runtime: C:/Users/ryanc/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 8 Data path: C:\Users\ryanc\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\ryanc\AppData\Roaming\Emby-Server\system System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. at Emby.Server.Implementations.Library.UserManager.GetInternalId(Guid id) at Emby.Server.Implementations.Security.AuthenticationRepository.<GetUserHistory>b__10_0(Guid i) at System.Linq.Enumerable.SelectListIterator`2.MoveNext() at System.Linq.Set`1.UnionWith(IEnumerable`1 other) at System.Linq.Enumerable.DistinctIterator`1.FillSet() at System.Linq.Enumerable.DistinctIterator`1.ToArray() at Emby.Server.Implementations.Security.AuthenticationRepository.GetUserHistory(String deviceId) at Emby.Server.Implementations.Devices.DeviceManager.GetUserHistory(String deviceId) at MediaBrowser.Api.UserService.QueryUsers(BaseUserRequest request, Boolean filterByDevice, Boolean filterByNetwork, Boolean isAuthenticated, Boolean isInLocalNetwork, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.GetUsers(GetUsersResult request, Boolean filterByDevice, Boolean filterByNetwork, Boolean isAuthenticated, CancellationToken cancellationToken) at MediaBrowser.Api.UserService.Get(GetPublicUsers request) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: Emby.Server.Implementations TargetSite: Int64 GetInternalId(System.Guid)
Luke 42080 Posted August 14, 2021 Posted August 14, 2021 Hi, I've not seen this error come up before, but it should be easy enough to trap and prevent. Thanks for reporting.
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