Phrd 3 Posted June 1, 2024 Posted June 1, 2024 (edited) I have problems since yesterday to login using my Admin user to login to Emby. It have been working fine since i started with emby 5/6 years ago. I have tried to use password reset and use the code and login without password but it still complains about wrong user/password. Other people can login but they don't have admin rights, so i'm a bit stuck here. I have no clue how to solve this issue, running server on Asustor (latest version). The problem started on my mobile app but i could still login using windows laptop Chrome untill i tried to reset password and then logout from Windows and login again. In the logfile i get this (Pierre is admin account): *** Error Report *** Version: 4.8.6.0 Command line: /volume1/.@plugins/AppCentral/emby-server/system/EmbyServer.dll -programdata /home/emby -ffdetect /usr/local/AppCentral/emby-server/bin/ffdetect -ffmpeg /usr/local/AppCentral/emby-server/bin/ffmpeg -ffprobe /usr/local/AppCentral/emby-server/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-asustor_{version}_x86-64.apk Operating system: Linux version 5.13.x (root@sw1-dailybuild) (x86_64-asustor_x64_g3_2020.12.24-linux-gnu-gcc (crosstool-NG 1.24.0) 7.4.0, GNU ld (crosstool-NG 1.24.0) 2 Framework: .NET 6.0.25 OS/Process: x64/x64 Runtime: volume1/.@plugins/AppCentral/emby-server/system/System.Private.CoreLib.dll Processor count: 4 Data path: /home/emby Application path: /volume1/.@plugins/AppCentral/emby-server/system System.Exception: System.Exception: Invalid username or password. at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser) at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser, CancellationToken cancellationToken) Source: Emby.Server.Implementations TargetSite: System.Threading.Tasks.Task`1[MediaBrowser.Controller.Authentication.ProviderAuthenticationResult] Authenticate(System.String, System.String, MediaBrowser.Controller.Entities.User) 2024-06-01 17:02:29.673 Info UserManager: Authentication request for Pierre has been denied. 2024-06-01 17:02:29.675 Warn Server: AUTH-ERROR: 192.168.X.XXX - Invalid username or password entered. 2024-06-01 17:02:29.675 Error Server: Invalid username or password entered. 2024-06-01 17:02:29.675 Info Server: http/1.1 Response 401 to 192.168.X.XXX. Time: 4ms. POST http://192.168.X.XXX:XXXX/emby/Users/authenticatebyname?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=3a9a5420-e337-4e3b-856a-c60c93314ae1&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=21134d753c9e4b9c8ec60de2f004113b&X-Emby-Language=sv Edited June 1, 2024 by Phrd
Happy2Play 9780 Posted June 1, 2024 Posted June 1, 2024 Do have more than one admin account? There is no auto complete/store username/password being applied when logging in? As the Forgot password process is pretty straight forward on this account.
Phrd 3 Posted June 1, 2024 Author Posted June 1, 2024 Thanks for your reply. Just one admin account, and yes the forget password is straight forward but it seems not be working for me? I have removed my auto login password in chrome and also tried manual login but get the same error. I can not login on any device anymore Tv, android, google tv or shield. I noticed that my admin account has a character space at the end, tried forget password with "Pierre" and it says there is no user with that name. If i do the same but with "Pierre " it says password have been reset, logon using no password. Still get wrong user or password, try again.
Phrd 3 Posted June 1, 2024 Author Posted June 1, 2024 In the user.db file on the asustor server it seems i still have a password set and last login is very old? {"UsesIdForConfigurationPath":true,"Password":"6DEF6006BE1B37622EC295A69429B8DCF269D7FA","ImageInfos":[{"Path":"/home/emby/config/users/9d3c3775ed62472c99a7256ce7070793/poster.jpg","Type":"Primary","DateModified":"2021-10-06T21:04:17.8008149Z","Width":1615,"Height":1482}],"Name":"Pierre ","LastLoginDate":"2023-12-31T23:25:30.3138418Z","LastActivityDate":"2024-06-01T13:37:16.7275774Z","IsNameParsedFromFolder":false}
Happy2Play 9780 Posted June 1, 2024 Posted June 1, 2024 35 minutes ago, Phrd said: Thanks for your reply. Just one admin account, and yes the forget password is straight forward but it seems not be working for me? I have removed my auto login password in chrome and also tried manual login but get the same error. I can not login on any device anymore Tv, android, google tv or shield. I noticed that my admin account has a character space at the end, tried forget password with "Pierre" and it says there is no user with that name. If i do the same but with "Pierre " it says password have been reset, logon using no password. Still get wrong user or password, try again. Not sure here as I think you only have two options if the Forgot Password method is failing. 1. Shutdown Emby reset the "IsStartupWizardCompleted" to false in system.xml, start Emby and edit username and password on setup screen. Note this just renames existing admin user (indexid 1). But path should be ( Data path: /home/emby/config ). 2. Shutdown Emby and edit the users.db directly. userid 1 But once you are back up you may need/want to create a second emergency only hidden admin account. 5 minutes ago, Phrd said: In the user.db file on the asustor server it seems i still have a password set and last login is very old? {"UsesIdForConfigurationPath":true,"Password":"6DEF6006BE1B37622EC295A69429B8DCF269D7FA","ImageInfos":[{"Path":"/home/emby/config/users/9d3c3775ed62472c99a7256ce7070793/poster.jpg","Type":"Primary","DateModified":"2021-10-06T21:04:17.8008149Z","Width":1615,"Height":1482}],"Name":"Pierre ","LastLoginDate":"2023-12-31T23:25:30.3138418Z","LastActivityDate":"2024-06-01T13:37:16.7275774Z","IsNameParsedFromFolder":false} Since you posted this clear the space and everything in the quotes for password and then start Emby and login without password.
Luke 42077 Posted June 2, 2024 Posted June 2, 2024 Hi, I think the trailing space might actually be the reason for your issue. It's difficult to test trying to create this situation given the numerous safeguards the server has to sanitize newly created usernames...but I think I see an adjustment that can be made to resolve this. It sounds like you need immediate relief, so you'll be able to get this on the beta channel, hopefully tomorrow. The other option would be using a database editor to remove the trailing space. 1
Phrd 3 Posted June 2, 2024 Author Posted June 2, 2024 Removing password did not help, still get the same error. @LukeYou mean that i could use the same method as removing password just to remove the space in username? I could try that. Do something like this? {"UsesIdForConfigurationPath":true,"ImageInfos":[{"Path":"/home/emby/config/users/9d3c3775ed62472c99a7256ce7070793/poster.jpg","Type":"Primary","DateModified":"2021-10-06T21:04:17.8008149Z","Width":1615,"Height":1482}],"Name":"Pierre","LastLoginDate":"2023-12-31T23:25:30.3138418Z","LastActivityDate":"2024-06-01T13:37:16.7275774Z","IsNameParsedFromFolder":false}
Solution Happy2Play 9780 Posted June 2, 2024 Solution Posted June 2, 2024 4 minutes ago, Phrd said: Removing password did not help, still get the same error. @LukeYou mean that i could use the same method as removing password just to remove the space in username? I could try that. Do something like this? {"UsesIdForConfigurationPath":true,"ImageInfos":[{"Path":"/home/emby/config/users/9d3c3775ed62472c99a7256ce7070793/poster.jpg","Type":"Primary","DateModified":"2021-10-06T21:04:17.8008149Z","Width":1615,"Height":1482}],"Name":"Pierre","LastLoginDate":"2023-12-31T23:25:30.3138418Z","LastActivityDate":"2024-06-01T13:37:16.7275774Z","IsNameParsedFromFolder":false} No as I would assume you broke something as Password should be blank not removed. So like this {"UsesIdForConfigurationPath":true,"Password":"","ImageInfos":[{"Path":"/home/emby/config/users/9d3c3775ed62472c99a7256ce7070793/poster.jpg","Type":"Primary","DateModified":"2021-10-06T21:04:17.8008149Z","Width":1615,"Height":1482}],"Name":"Pierre","LastLoginDate":"2023-12-31T23:25:30.3138418Z","LastActivityDate":"2024-06-01T13:37:16.7275774Z","IsNameParsedFromFolder":false} 1
Happy2Play 9780 Posted June 2, 2024 Posted June 2, 2024 But last resort do you have a user account that has access?
Phrd 3 Posted June 2, 2024 Author Posted June 2, 2024 Ok, sorry my bad, i looked at the other user accounts and they did not have "password", yes i have several of user accounts that work but none of them are admin. 1
Happy2Play 9780 Posted June 2, 2024 Posted June 2, 2024 (edited) All else fails you need to upgrade a user account offline. removed policy hack. Edited June 2, 2024 by Happy2Play remove info
Phrd 3 Posted June 2, 2024 Author Posted June 2, 2024 It works now, but i had to remove the space in "Pierre " to "Pierre" then i logged in straight away. I really appreciate all help i got! I have a quite large collection of media about 16TB so it would take days to start over from scratch. My theory is that i had two accounts, one "Pierre " and the other that is used "Pierre" was removed some way. From now on i defiantly have more than one admin account. Anyway it work fine and all latest statistiks like watched movies are intact, Thanks again. 1
Happy2Play 9780 Posted June 2, 2024 Posted June 2, 2024 I removed the info as the last resort would be manually elevating a user to admin. So technically as long as you have a user that can log in you have a way forward.
Phrd 3 Posted June 2, 2024 Author Posted June 2, 2024 (edited) 1 hour ago, Happy2Play said: All else fails you need to upgrade a user account offline. Yes i tried this as well and it worked fine. Edited June 2, 2024 by Phrd
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