[TOS 4]Plex fails to start?

TOS application, TNAS PC, TNAS mobile
User avatar
TMSupport
TM Support
Posts: 2308
Joined: 13 Dec 2019, 15:15

[TOS 4]Plex fails to start?

Post by TMSupport »

Troubleshooting

Applicable Version:
TOS 4

Applicable Models:
All NAS models

If you are unable to enable the Plex service after reinstalling it (the "Enable" button does not respond), please follow the steps below:

1. Log in to the terminal via SSH:
viewtopic.php?t=2350

2. Check user and group information:
Check if the user exists:

Code: Select all

cat /etc/passwd
Check if the group exists:

Code: Select all

cat /etc/group
If both the user and group are present (as shown in the screenshot), skip steps 3–5.

3. Create the Plex group:

Code: Select all

groupadd -g 5555 plex
4. Create the Plex user and assign it to the Plex group:

Code: Select all

useradd -M -u 5555 plex -g plex
5. Restart the Plex service:

Code: Select all

/etc/init.d/plex restart
6. Go to the App Center and uninstall Plex.

7. Go to File Management and click User Personal Folder. A clickable User directory will appear at the top of the page.

8. Click User, and rename the Plex folder to Plex1.
(Refer to the image below.)

9. Go back to the App Center and reinstall Plex.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
ETCornerReviews
Posts: 1
Joined: 19 Jan 2021, 23:22

Re: Plex fails to start?

Post by ETCornerReviews »

I have tried the above mentioned steps and can still not get the newest version of Plex working.
I am using Plex version 1.22.3.4392 with a clean install of TOS version 4.2.09-2101251735.

It says the install is successful, however when I try to start Plex it goes from Configuring to Stopped while displaying "Operation Successful."

Is there anything else I can try?
User avatar
ETCornerReviews
Posts: 1
Joined: 19 Jan 2021, 23:22

Re: Plex fails to start?

Post by ETCornerReviews »

For anyone with the same issue, I fixed it with a restart and reinstall.
User avatar
freemanrw
Posts: 0
Joined: 16 May 2021, 06:54

Re: Plex fails to start?

Post by freemanrw »

Could you more specific on the setps you took to solve the issue?
I have the same issue with PMS failing to start.
I uninstall PMS, performed a reboot of the NAS and reinstall afterwards PMS, but I keep getting the same error: PMS won't start.
User avatar
demetry14
Posts: 20
Joined: 22 Nov 2020, 05:23
United States of America

Re: Plex fails to start?

Post by demetry14 »

When the Plex app fails to start and is stuck in "Configuring... Please wait." I do the following:

Login to the SSH terminal as admin (or whatever your admin username is) and run:
sudo ../.././mnt/md0/application/pkgs/plex/etc/init.d/plex status

Output is always:
PlexMediaServer stopped

Then I run:
sudo ../.././mnt/md0/application/pkgs/plex/etc/init.d/plex start

And I watch the system fail to symlink, change owners, change groups and then:
Starting PlexMediaServer: success

Hope this helps others!

~~~~~~~~~~~~~~~

For the Terra-Master Support Team, when the icon and when the manual process above are run the outputs I can follow that error are:

SINGLE ERROR:
ln: /home/plex/home: File exists

THIS CHOWN ERROR IS ABOUT 3 PAGES WORTH OS SPECIFIC BUNDLES AND FILE IDS THAT IT SAYS ARE NOT THERE:
chown: /mnt/md0/User/plex/Library/Application Support/Plex Media Server/Metadata/Movie/FOLDER NUMBER/BUNDLE_NAME_HERE.bundle/Contents/_combined/posters/com.plexapp.agents.localmedia_FILE_ID: No such file or directory

AT THE END OF THE FILE RIGHT BEFORE IT STARTS THESE TWO CHANGE GROUPS FAIL:
chgrp: /dev/dri/renderD128: No such file or directory
chgrp: /dev/dri/card0: No such file or directory
User avatar
demetry14
Posts: 20
Joined: 22 Nov 2020, 05:23
United States of America

Re: Plex fails to start?

Post by demetry14 »

Also DMESG states:

lowmemorykiller: Killing 'Plex Media Scan' (9399), adj 0, to free 1674664kB on behalf of 'Plex Media Scan' (9399) because cache 6068kB is below limit 6144kB for oom_score_adj 0 Free memory is -2868kB above reserved

Which is most likely when my RSYNC backup runs.
User avatar
sacbutt
Posts: 0
Joined: 15 Oct 2020, 14:25

Re: Plex fails to start?

Post by sacbutt »

TMSupport wrote:
> Hi - I have this problem - plex fails to start probably 50% of times, it's really unreliable. It says it's not connecting when attempting open on phone / tablet app and on laptop, when I try opening via the TNAS desktop page it says configuring. I have unisntalled all plex apps on all platforms multiple times, everything is up to date, still a problem.

I followed these instructions in this thread:
viewtopic.php?f=75&t=364#p1441

22/4/20: 20:44 - change user id to 5555 - it was already this, no change needed
22/4/20: 20:47 - TOS desktop file manager - db to db.bak steps - THIS WORKED!! ... and then it stopped working the second time I tried to log in (the next day). Same problem - diosconnec ted (on the mobiles app, laptop, configuring on the TNAS app.

So I followed the steps up to 4, couldn't go further because there were already .db.bak files (ie, there were both .db and .db.bak undated files) and I couldn't finish the process.

It's still configuring...

I'd like to try this instruction:
14/10/20:17:55 - SSH TNAS as root - but I don't know what a SSH is and I'm worried I'll mess it up and make even more stuff stop working on my laptop. It may seem like basic following instructions (I'm a gamer - I love rule books! I should be able to do this, right?) - but for someone with no computing background, there aren't many clues for which of the 9 links in the MSI windows installer section to choose from in this page https://www.chiark.greenend.org.uk/~sgt ... atest.html (I'm assuming I'd need to download something from this section, not the alternative binary files???)


I also note Demetry's post
by demetry14 » 02 Jun 2021, 14:02

When the Plex app fails to start and is stuck in "Configuring... Please wait." I do the following:

Login to the SSH terminal as admin (or whatever your admin username is) and run:
sudo ../.././mnt/md0/application/pkgs/plex/etc/init.d/plex status


but I don't know where to find the SSH terminal in my laptop.

So - Plex still configuring, db/bak fix isn't an option, there's an SSH terminal somewhere with my name on it and I am less than minimum-chips-computer-savvy - can any one please help me get Plex working and set up with a reliable fix?
Thank you!!!
User avatar
TMSupport
TM Support
Posts: 2308
Joined: 13 Dec 2019, 15:15

Re: Plex fails to start?

Post by TMSupport »

{L_BUTTON_AT}sacbutt
Log in to SSH terminal If the issue still exist, you can contact our tech team.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
sacbutt
Posts: 0
Joined: 15 Oct 2020, 14:25

Re: Plex fails to start?

Post by sacbutt »

TMSupport wrote:
> {L_BUTTON_AT}sacbutt
Log in to SSH terminal If the issue still exist, you can contact our tech team.
<
Yes, I have now tried that.

I can get up to step 3A but can't complete it as I don't understand how to action the instructions.

I get to here in the putty black screen:

"End of keyboard-interactive prompts from server
Welcome to TNAS
-bash: ulimit: open files: cannot modify limit: Operation not permitted
(my name)@(my NAS's name):~$ ^C "

and then nothing.
Plex is still not connecting, no prompts in the black screen for what to do now.

So, 2 questions
- What do I type in or do to follow the second part " then switch to the highest root authority with the same password" ?
I don't know what is the 'highest root authority' is (even after googling it). Is it the password for my laptop?

- Also - "-bash: ulimit:" etc message is given in the MAC example (steps 2A / 2B), but mine is a windows laptop, I don't know why my black screen text doesn't look like the examples in steps 3A / 3B. How do I interpret this?

Thanks
User avatar
TMSupport
TM Support
Posts: 2308
Joined: 13 Dec 2019, 15:15

Re: Plex fails to start?

Post by TMSupport »

{L_BUTTON_AT}sacbutt
Enter the following command to switch to the root user.

Code: Select all

sudo -i
Then enter the administrator's password.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Post Reply

Return to “Applications”