Used to have a nicely running plex server. Then it quit and I don’t know the circumstances around that.
I have been reading for the last week and tried, what feels like, every possible solution proposed by the staff, from database fixes, to validating paths, ownership… Uninstalled and reinstalled.
But where I’m at is on Ubuntu 20.04 standard install, no mods to the systemd service file.
It just won’t start.
Installed from repository v1.22.3.4392-d7c624def
Apr 24 22:28:52 Plex systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Apr 24 22:28:52 Plex systemd[1]: plexmediaserver.service: Failed with result 'signal'.
-- The unit plexmediaserver.service has entered the 'failed' state with result 'signal'.
-- Subject: A start job for unit plexmediaserver.service has failed
-- A start job for unit plexmediaserver.service has finished with a failure.
Oct 12, 2020 18:59:28.222 [0x7f5c267fc700] WARN - [Notify] Received unexpected inotify event: 8192
Oct 12, 2020 18:59:28.222 [0x7f5c267fc700] WARN - [Notify] Received unexpected inotify event: 8192
Oct 12, 2020 ?
Is this the last time the server ran?
Regarding the “unexpected inotify event”, that’s the server attempting to setup directory monitoring and running out of slots (Linux default is 8192). This is easily increased.
Do you have a configuration override in use (override.conf) ?
Telling me things like this, Proxmox & container, are important.
Is there anything else changed? UID/GID being used ? (not plex:plex ?)
Can you get me the current logs, wherever they might be?
Sorry for the miss.
I’m using plex:plex.
Did not change UID/GID, just whatever was assigned when I fired up the container. (I think that’s what you are asking).
Are you looking for the syslog/dmesg from the container?
The override is not active. The # in column 1 makes it a comment
Those inotify configuration values are huge. Do you really have 4 million directories containing media? All of fs.inotify uses non-paged kernel (locked) memory. If you don’t have enough memory, PMS will never run.
The only one we ever worry about is max_user_watches .
128 users is usually 117 more than we need but it’s the default so we let it alone.
The same ratio is true for queued events. If there are more than 16K events queued, something is seriously wrong with the host not having enough CPU power to handle the load.
Your fs.inotify customization is using about 12GB of memory unto itself. Do you have that much memory to spare in the host?
How ‘married’ are you to this instantiation of the server? I ask because, given the amount of time which has elapsed since it last ran, and all the changes to the scanners (new movie and TV scanners & agents), I wonder if you might be better served by starting over ?
Same values on the host. it was running like this before.
Potentially. Utilizing a 3rdGen i7 with 32G… But it was running quite nicely before.
Yes
I’m with you at this point. If you can point me to Plex authored directions to backup and restore (just the Plex databases I think) on a fresh instance, I’ll get started tonight.
Regarding backing up Proxmox, we don’t have any because Proxmox isn’t an officially supported distro.
I’ve been trying to make time to learn it for cases such as yours but about the best I can do is direct you to their forums. I would think/hope you can use the basic tar commands from the command line shell when you ssh into it.
I have only an installation guide for PMS on Proxmox which was donated by a user
If I backup the Plex db’s and restore, that should keep my library in tact, no?
I’m sure there’s probably a schema upgrade, but that’s all I’m looking for.
If you keep the “Plex Media Server” directory, where you see the “Metadata”, “Media”, “Plug-in Support”, and “Preferences.xml” directories and file, as a tar ball then you have a mirror backup. You can restore that later if you want or just use the new instance.
Please allow it to suffice that my B.S. is Electrical Engineering, my M.S. is Computer Engineering, and Ph.D. is in a technology which is interwoven with daily life for many people.
In anticipation of your next question, “What am I doing here?”, I offer this:
I’m here because I was physically disabled 9 years ago and forced to leave the aviation & aerospace industry. My disability did not dampen my desires nor the enjoyment I get from helping others. I do this as my way to continue contributing and to keep my mind sharp as I ease into retirement.
Return to the local system and completely remove the existing installation. If there is an option to purge all the local data , please do so. You want a completely fresh installation.
Next, Start fresh.
Keep to the defaults
Define one library section
Get it running and evaluate from there.
If you can’t make the default installation start then I need refer you to whomever did the package for ProxMox. We don’t do any packaging for it.
Cleared all the old server (devices).
Spun up a new container (privileged btw), installed from repository, after setting up the source.
All up and running.
Now I’ll work on getting my shares back on line and moving over the config… but tomorrow.
Thanks for the help, I’ll follow up with what worked and didn’t.
BTW, I get why you asked about UID:GID. The new normal is to create a new container as unprivileged which whacks everything up. I just went priv… till I figure out how to make that work.