Jellyfin Forum
Can't Login Through Browser on Local Server - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Can't Login Through Browser on Local Server (/t-can-t-login-through-browser-on-local-server)



Can't Login Through Browser on Local Server - gabrielconroy - 2024-09-18

After clearing my browser cache, I was asked to log in on my local server through the browser.

I couldn't remember my password, so went to password reset.

That generated the local file with the PIN, but after clicking Got It, no dialogue appeared to enter the PIN (I haven't installed any custom CSS).

I found a workaround on Reddit and used the following code

curl.exe -X POST -H "Content-Type: application/json" -d "{\"Pin\":\"PIN CODE\"}" http://localhost:8096
/Users/ForgotPassword/Pin

which returned

{"Success":true,"UsersReset":["Ben"]}

Weirdly, I can now log in to the above user on my Android TV app without entering a password.

HOWEVER, I still cannot log in through my local machine browser. I still get a Username/Password prompt, and just entering the username without a password doesn't work.

Any ideas? I guess it's not a disaster at the moment as I only watch videos through the Android TV app, but it's frustrating not to be able to access the server on the machine that's hosting it!


RE: Can't Login Through Browser on Local Server - TheDreadPirate - 2024-09-18

You can re-enable the setup wizard via the system.xml file.

You don't specify the OS, so here is where it should be located in various OSes.

Windows - C:\ProgramData\Jellyfin\Server\config\system.xml
Linux - /etc/jellyfin
Docker - /config/config/system.xml

Near the top of that file is "IsStartupWizardComplete". Change the value from true to false, restart jellyfin, and when you access it in the browser it should walk you through the setup process. Only worry about creating a user. This will overwrite the username and password for the admin, but all watch status info is retained since that data is tied to the ID (which is not changed) and not the user name. Skip everything else.


RE: Can't Login Through Browser on Local Server - gabrielconroy - 2024-09-18

I just tried that, changed it to false, restarted jellyfin and it took me back to the login page.

Now when I check system.xml again, the value has changed back to true...!

I'm starting to think it might be something weird with my browser? Maybe an extension auto-closing a pop up or dialogue?

Or could the fact that the Android TV app is signed in triggering the startupwizard to think the process has already been completed?


RE: Can't Login Through Browser on Local Server - TheDreadPirate - 2024-09-18

Stop Jellyfin, clear your browser cache, set the field to false, start jellyfin. Does it still take you to the login page?


RE: Can't Login Through Browser on Local Server - gabrielconroy - 2024-09-18

OK. I was being an idiot. Clearly I hadn't cleared the cache in between shutting down JF and changing the value.

Thanks so much!


RE: Can't Login Through Browser on Local Server - gabrielconroy - 2024-09-23

Hi again - while the above fix reset the password for my account, it seems not to have admin rights. There's a chance that it never had admin rights as it used to log in automatically, and perhaps I'd reset a different account.

But in any case, could someone point me to how to assign admin rights to an account?

I've had a look in the jellyfin.db file but don't see anything obvious.

(I'm on Windows).


RE: Can't Login Through Browser on Local Server - TheDreadPirate - 2024-09-24

When you re-ran the setup wizard, the account you created during that process is THE admin account. You cannot revoke the admin permissions on that account.

What admin task aren't you able to do?