Failed to run packege service Error Again

Server Version#:1.23.6.4481-6000

I have a DS2415+ with 10x 10TB Ironwolf Pros. I had one drive go bad and after the replacement showed up I started to have issues with PLEX. I went through the previous posts that talked about my problem and I ended up doing a fresh install. I restarted my Synology this morning and now I’m getting the same error from Plex again. I looked at my logs and saw that the permissions for the Plex folder were all turned off. So I fixed the permissions so it had access and restarted again without any luck. Am I going to have to delete everything again and reinstall Plex? The bad part is it just finished going through all of my folders and updating metadata and those kinds of things. Plex has worked flawlessly for me since I got this server in 2017.

If I cannot get the Plex to run how do I pull the logs? I’m not very familiar with DSM so I may need a walk-through.

I found the logs: Plex Media Server.log (3.4 MB)

Can you grab all the files in the Logs folder?

It will help me to by seeing what it has been doing

The Synology logs or the Plex logs?

All the Plex Logs please

would you mind redoing that real quick?

  1. Open the Plex shared folder
  2. Navigate down
  3. Right-Click LogsCompress to Logs.zip
  4. Upload that file.

Sorry.

Sorry about that. Here you are:
Logs.zip (5.2 MB)

Thanks for that.

I don’t see why it stopped but we can definitely start walking the path to making it run again.

First and foremost are the ownership & permissions in the Plex shared folder.
If we get them right, It will start.

  1. The Plex share
    a. File Station
    b. Left Pane
    c. Right click Plex
    d. Properties
    e. Permissions
    f. Plex has Full Control
    g. Apply to this folder, sub-folders, and files.

    h. OK – and wait for that to finish
    i. Right-click “Library”
    j. Properties → Permissions
    k. Verify owner is plex
    l. Apply to this folder, sub-folders, and files, Click OK.

Let’s give that a spin.

If it starts ok, I do request you turn off VERBOSE logging. VERBOSE makes logs messy and is rarely used anymore. Also, a lot of data is lost because the window is only 2 minutes long.

I tried your recommended solution and I am still getting the failed to run package service error. What is the next step?

now we get to have fun :smiling_imp:

  1. Control Panel - Terminal & SNMP
  2. Enable SSH
  3. Using Putty / SSH
  4. SSH into the Synology
  5. At the command line: sudo bash (type the same login password again)
  6. cd "/var/packages/Plex Media Server/scripts"
  7. ./start-stop-status start

Copy & Paste that console output back here please.

bash-4.3# cd “/var/packages/Plex Media Server/scripts”
bash-4.3# ./start-stop-status start
Starting Plex …
su: user plex does not exist

tried it again and got this:
bash-4.3# cd “/var/packages/Plex Media Server/scripts”
bash-4.3# ./start-stop-status start
Starting Plex …
bash-4.3#

After I did this I went to the package center and clicked run on the Plex. It started up and I immediately went and turned off verbose logging. I added some files to each folder to ensure that Plex was monitoring each folder. I did the complete library scan also. I waited until this morning to restart the server to ensure that it would continue to function. It is currently working. Now I need to go and look at the setting to get it back to the way I had it previously. Thank you very much for your help. I do have one more question. How did you learn how to SSH and read the logs?

If I may add?

Trumpy has put in the time & effort to learn.

Recently, by working with me on the Linux packaging and of his own determination, he’s learning how to write BASH scripts. Basic BASH is easy. Over the past 3 months, he’s advanced from basic scripting to understanding and modifying a Plex automatic update script which is suitable for everyone’s use

That answers a lot. the reason I asked is that I’m getting ready to retire from the Army and it is something that interests me I am uncertain about where to go to start learning.

@Jasf316

I’ve been doing this since the early '80s both at home and professionally/

Trumpy has been (AFAIK) entirely a Windows type person. He did “resist” :smiling_imp: a bit in the beginning but now he undertands so much more and can really help offload me.

If you want to start learning,

  1. Create a VM - you can’t hurt anything there
  2. Learn the BASH command line . it’s a great scripting language
  3. Linux includes all the documentation for every command. man command-name brings it up for you to read.
  4. search google for some things you want to try and some Linux command tutorials.

You can’t hurt anything in the VM.

Thanks for the info. I found out yesterday that the Army has a program for Soldiers transitioning out that teaches you python. I’m going to look into it tomorrow.

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