Plex won't start

How versed are you with the command line?

I’ll write a Scheduled Task - User-script if you’re not.

Would you get the 2023-03-09 database backups into the Databases directory please ?

Not familiar at all for Plex. I can write some JSON for Azure, but that’s about it.

Adding that to the DB directory now.

That’s added now.

Almost done writing

  1. Create Scheduled Task - User-script

Screenshot from 2023-03-13 18-56-24

  1. Runs as root but not “enabled” to run on a schedule (Important)

Screenshot from 2023-03-13 18-56-57

  1. Final run details page – (emails you the results)

Screenshot from 2023-03-13 19-05-04

Here’s the actual text you paste into the window:

#!/bin/sh

# get into Plex Databases directory
cd "/var/packages/PlexMediaServer/shares/PlexMediaServer"
cd "AppData/Plex Media Server/Plug-in Support/Databases"

# now COPY the backup over the top of both blobs and main

# Each of these is one line (this window wraps for display)
cp com.plexapp.plugins.library.db-2023-03-09 com.plexapp.plugins.library.db

cp com.plexapp.plugins.library.blobs.db-2023-03-09 com.plexapp.plugins.library.blobs.db


# Make Plex the owner of the files
chown PlexMediaServer:PlexMediaServer *

# Make certain they are read/write
chmod 644 *

echo  Done
exit
  1. Save this (it will warn)

  2. Now Check the box for this task (select it)

  3. RUN (on taskbar)

  4. Expect email in a few seconds

  5. Refresh FileStation

  6. Expect to see the files renamed

Questions?

Thank you.

Task Scheduler has completed a scheduled task.

Task: Task 7
Start time: Mon, 13 Mar 2023 18:09:32 GMT
Stop time: Mon, 13 Mar 2023 18:09:35 GMT
Current status: 0 (Normal)
Standard output/error:
Done

What does fileStation show now?

You should be OK to start PMS.

This

No, it stopped by itself again and I couldn’t connect. No change.

It keeps stopping itself when I start it.

check PM

Thank you so much for your help Chuck. You write bash like a reporter getting in his story before the deadline. It’s a beautiful thing to see. You’re a very clever guy and I can’t thank you enough for all your time and solving this for me.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.