2024-07-28, 02:58 PM
(This post was last modified: 2024-08-04, 12:39 PM by raulo1985. Edited 14 times in total.)
Weird, I finally gave up trying to find the specific files that would allow preserving auto log in after restoring them. Weird thing is that I just did a full backup and restore from both directories (/etc/jellyfin and /var/lib/jellyfin) and some of my clients do auto log in, but two of them don’t. One is JMP installed on a Windows 10 notebook, the other one is a LG Smart TV with the official app (not sure if this has something to do with the client itself, since a full backup/restore should make the clients believe they are logging in to the same server, regardless of the client. I may be wrong, though).
Things that I’ve noticed:
1) With full backup, all my iOS clients auto log in without issues.
2) Both the WebOS app and JMP don’t auto log in.
3) When there’s a new server with new ID, the clients trying to log in show a screen to select from the available servers (ergo, they don’t auto log in, as expected because of the new ID).
4) With full backup/restore (and double checked the permissions), the WebOS and JMP don’t auto log in, but they behave differently than trying to connect to a new server with new unique ID. If I restore only the database and the device.txt files, they get stuck at logging in. They don’t show available servers, in fact they both show part of the main GUI (not the libraries, just a couple of logos I added with css), so I guess by doing that the clients can go “further” in the logging in process (but get stuck for some reason. They keep loading forever, the only way to log in is to reinstall the client and connect to the server from scratch).
5) With the WebOS app and JMP, when doing a full back up and restore, they connect to the server, but they get to the log in page (with the correct users). If the client chooses a user and enters the password, it logs in without issues. That’s the closest I have gotten to auto log in with WebOS app and JMP after a full server reinstall (and with full Jellyfin backups). I don’t know if this is normal behavior, but I would have thought that, while preserving the ID and tokens, there would be no reason for them to not auto log in. And you say that all your clients do auto log in (I’m assuming that includes JMP and/or WebOS app), so I must be doing something wrong.
6) On a side note (maybe it’s helpful info), the other day I cleaned up the devices section and accidentally deleted the LG Smart TV. I thought that deleting that entry wouldn’t make a difference, and that the next time the TV tried to log in it would do so without problems. It wasn’t the case, and it behaved exactly the same as when I did a “partial” backup/restore (device.txt and database), it got stuck at loading forever and could only log in manually. Since the behavior was exactly the same as when trying to auto log in with JMP and WebOS app after a backup of just the device.txt and database files, I thought it would be worth mentioning it (since that I always thought that the devices section was made only for order reasons, but that it didn’t have an impact on functionality. But as soon as I deleted the LG TV entry, it couldn’t auto log in and kept on loading forever until I logged in manually).
So, bottom line is that the closest I’ve come with JMP/WebOS app to auto log in after full server reinstall is by doing a full backup and restore, but that gets me to the log in page. So I have to select the user and enter the password anyway. Better than before, but still not a real auto log in (and I don’t know why). What am I missing? Both clients obviously recognize the server since it shows the log in page (and lets you log in if the correct password is provided), but something is missing for them to remember the user and password to auto log in without intervention.
Any thoughts would be appreciated. Thanks again
————————————————————————
UPDATE: I went to basics and installed everything from scratch (both OS and JF, tried with latest stable and unstable with their corresponding repos), and restored a full backup (/etc/jellyfin and /var/lib/jellyfin).
Behavior:
- With iOS clients (I’ve tried only with iPhones), they auto login as if it was the same server. No issues there.
- WebOS: it goes to the login page, but it first shows you the page that you see when you first start a fresh JF installation. It’s a little misleading, because if you follow the process, you get to the point where you create the admin, and when you do it shows you an error message. You can’t get past that screen. What you have to do is go backwards, and then you get to the log in screen with the correct users available. No auto login, though.
- JMP: exactly the same as WebOS app, exact same behavior.
Sadly, I don’t use the iOS app too much, but WebOS and JMP are used by relatives on a daily basis. It’s not that difficult to get past it, you only have to go back, select your user, enter your password, and you log in. But I’m looking for a way for them not having to do anything if I upgrade from scratch, so they don’t even notice that something changed. Weird thing is is that with the iOS app, it works, it recognizes it as the same server and also auto logs in. Not so much with JMP and WebOS app though. I don’t know why, with a full backup/restore the clients shouldn’t even be able to notice it’s a new installation (at least that’s what I thought). I’m clearly missing something.
Things that I’ve noticed:
1) With full backup, all my iOS clients auto log in without issues.
2) Both the WebOS app and JMP don’t auto log in.
3) When there’s a new server with new ID, the clients trying to log in show a screen to select from the available servers (ergo, they don’t auto log in, as expected because of the new ID).
4) With full backup/restore (and double checked the permissions), the WebOS and JMP don’t auto log in, but they behave differently than trying to connect to a new server with new unique ID. If I restore only the database and the device.txt files, they get stuck at logging in. They don’t show available servers, in fact they both show part of the main GUI (not the libraries, just a couple of logos I added with css), so I guess by doing that the clients can go “further” in the logging in process (but get stuck for some reason. They keep loading forever, the only way to log in is to reinstall the client and connect to the server from scratch).
5) With the WebOS app and JMP, when doing a full back up and restore, they connect to the server, but they get to the log in page (with the correct users). If the client chooses a user and enters the password, it logs in without issues. That’s the closest I have gotten to auto log in with WebOS app and JMP after a full server reinstall (and with full Jellyfin backups). I don’t know if this is normal behavior, but I would have thought that, while preserving the ID and tokens, there would be no reason for them to not auto log in. And you say that all your clients do auto log in (I’m assuming that includes JMP and/or WebOS app), so I must be doing something wrong.
6) On a side note (maybe it’s helpful info), the other day I cleaned up the devices section and accidentally deleted the LG Smart TV. I thought that deleting that entry wouldn’t make a difference, and that the next time the TV tried to log in it would do so without problems. It wasn’t the case, and it behaved exactly the same as when I did a “partial” backup/restore (device.txt and database), it got stuck at loading forever and could only log in manually. Since the behavior was exactly the same as when trying to auto log in with JMP and WebOS app after a backup of just the device.txt and database files, I thought it would be worth mentioning it (since that I always thought that the devices section was made only for order reasons, but that it didn’t have an impact on functionality. But as soon as I deleted the LG TV entry, it couldn’t auto log in and kept on loading forever until I logged in manually).
So, bottom line is that the closest I’ve come with JMP/WebOS app to auto log in after full server reinstall is by doing a full backup and restore, but that gets me to the log in page. So I have to select the user and enter the password anyway. Better than before, but still not a real auto log in (and I don’t know why). What am I missing? Both clients obviously recognize the server since it shows the log in page (and lets you log in if the correct password is provided), but something is missing for them to remember the user and password to auto log in without intervention.
Any thoughts would be appreciated. Thanks again
————————————————————————
UPDATE: I went to basics and installed everything from scratch (both OS and JF, tried with latest stable and unstable with their corresponding repos), and restored a full backup (/etc/jellyfin and /var/lib/jellyfin).
Behavior:
- With iOS clients (I’ve tried only with iPhones), they auto login as if it was the same server. No issues there.
- WebOS: it goes to the login page, but it first shows you the page that you see when you first start a fresh JF installation. It’s a little misleading, because if you follow the process, you get to the point where you create the admin, and when you do it shows you an error message. You can’t get past that screen. What you have to do is go backwards, and then you get to the log in screen with the correct users available. No auto login, though.
- JMP: exactly the same as WebOS app, exact same behavior.
Sadly, I don’t use the iOS app too much, but WebOS and JMP are used by relatives on a daily basis. It’s not that difficult to get past it, you only have to go back, select your user, enter your password, and you log in. But I’m looking for a way for them not having to do anything if I upgrade from scratch, so they don’t even notice that something changed. Weird thing is is that with the iOS app, it works, it recognizes it as the same server and also auto logs in. Not so much with JMP and WebOS app though. I don’t know why, with a full backup/restore the clients shouldn’t even be able to notice it’s a new installation (at least that’s what I thought). I’m clearly missing something.