Closed IDisposable closed 2 months ago
I'm the friend who reported this. Chiming in so I'm available if any questions are needed.
It seems like it would be wise if the installer found foreign files in the configuration directories at install time it should ask "are you sure"
This actually wouldn't have stopped the problem and in fact it may have already done that. I would have said "Yes I'm sure" because the wording had me thinking the Jellyfin installer was asking where I put my Media files, not where would I be putting the configuration for Jellyfin.
I agree that the real solve here would be the Uninstaller only deleting known Jellyfin files.
The question here is should the fix be in the installer, the uninstaller, or both?
Warn if there are any files in the CONFIG directory that are not typical of a JellyFin install (e.g. more than things in config
, etc. directories).
Pros:
Cons:
Warn if there are any files in the CONFIG directory that are not typical of a JellyFin install (e.g. more than things in config
, etc. directories).
Pros:
Cons:
Personally, an acceptable simple solution to me, would be the Uninstaller having a large obvious warning that it will delete every single file in that directory (maybe display the directory too) if I say "Yes" (actually it might have been a "No"?)
Would it be kinder to show at least a quick list of not expected files/directories?
This is all mitigated by work planned for 10.9, where I have adapted an NSIS macro that builds a manifest of installed files, and removes only those files in the uninstaller.
Unfortunately that work isn't in the 10.8 branch, it would be a future version (probably November at the earliest, most likely December).
Also - because I only just read more of the description - yes, it wouldn't remove post install files (so plugins), but I could remove that folder specifically. The larger point is that I already have work that moves away from doing just a straight rm/delete on the entire directory, and is much more targeted.
Excellent news... I'll just await the NSIS changes :)
While you're doing that... any chance we could get the exposure in the installer (and retention in an upgrade install) of the user id/password for the JellyFin service... just the other day I had a minor panic after upgrading to 10.8.11 because it didn't retain that run-as for the service and thus couldn't see the server's media...
Exposure? I bet we could show the username on the service, but the password would be encrypted and of no use.
The better thing is to not replace the service on upgrade, which is a planned change as well. Unfortunately it will still break one more time with the 10.9 upgrade, as I plan to move away from NSSM for the service launcher, and using the tray app for that purpose.
Moving away from NSSM would be a huge bummer, as the Tray App starting things up wouldn't work for a server environment until someone logs in... that's not really where I hope this is headed.
@IDisposable I should have explained further. The plan is to build a service mode in to the tray app that would behave the same way as NSSM, except, it would only handle Jellyfin.
Looking at this again, many months later, I don't know that we can ever be sure to delete just config files. There's no way to enumerate all of them before hand. I can certainly delete just the program files (because we know what those are ahead of time), but config is a much trickier issue to solve.
At best for config, I can start by at least putting a big warning telling people "Are you sure? This will delete everything in
Please describe your bug
Reported to me by a friend
That shouldn't have been media files
Which OS?
It seems like it would be wise if the installer found foreign files in the configuration directories at install time it should ask "are you sure". Also seems like the uninstall should be asking if we find non-config files in that directory.
Jellyfin Version
10.8.z
if other:
No response
Environment
Jellyfin logs
No response
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct