PlexData share for QNAP systems

No. that shouldn’t be.

There was a reported problem which I corrected.
Let me look into it.

EDIT: I’m an ID-10-T :man_facepalming:

I’ll post the updated plex.sh in a few minutes. I’m going to make the changes internally so it makes the next release then post back here.

@shackrock

Would you do me a favor please?

cd /share/CA*/.qpkg/Ple*/Li*/Ple*
ls -la

verify there is no .disablePlexDataSymlink

There should not be. I am only being prudent on this end.

[/share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server] # ls -la
total 56
drwxr-xr-x 12 admin administrators 4096 2020-12-27 22:31 ./
drwxr-xr-x  4 admin administrators 4096 2020-10-22 00:28 ../
drwxr-xr-x  6 admin administrators 4096 2020-12-27 22:31 Cache/
drwxr-xr-x  4 admin administrators 4096 2020-12-20 06:51 Codecs/
drwxr-xr-x  8 admin administrators 4096 2020-12-20 06:51 Crash Reports/
drwxr-xr-x  2 admin administrators 4096 2020-10-22 02:03 Diagnostics/
drwxr-xr-x  3 admin administrators 4096 2020-12-27 22:30 Logs/
drwxr-xr-x  3 admin administrators 4096 2020-10-22 01:46 Media/
drwxr-xr-x  4 admin administrators 4096 2020-10-22 04:21 Metadata/
-rw-r--r--  1 admin administrators    5 2020-12-27 22:30 plexmediaserver.pid
drwxr-xr-x  3 admin administrators 4096 2020-10-22 00:29 Plug-ins/
drwxr-xr-x  7 admin administrators 4096 2020-10-22 00:28 Plug-in Support/
-rw-rw-rw-  1 admin administrators 1045 2020-12-27 22:31 Preferences.xml
drwxr-xr-x  2 admin administrators 4096 2020-11-07 22:27 Scripts/

Thanks.

That’s what I thought.

If you’re willing to give this a try for me to confirm it resolves the issue ?

(File removed)

cd /share/CA*/.qpkg/Ple*
mv plex.sh plex.sh-orig
unzip plex.sh.zip
chmod +x plex.sh

Just tried that and restarted plex, works as expected now, thanks!

image

image

Exellent.

thanks.

please save that ZIP file until you see the change has made its way through the production chain.

It might be a bit with the holidays and vacations but at least now, you and all are covered.

I’m VERY sorry about this having slipped through.

1 Like

Following up –

The changes have been submitted and approved.
They will be included when Engineering updates the packaging version it uses for PMS.

(This will happen very soon as it will also include DSM 7 work in flight).

1 Like

Thank you ChuckPa for managing to do an amazing job with Plex QNAP, Synology and Linux’s and still be able to keep up with these boards.

I have one question.

Has anyone seen my sanity :crazy_face: ?

I lost it somewhere and can’t find it.

@ChuckPa - I’m back, I think because it’s possible this may be part of my issue but I figured I’d report to you just in case!

Today, my plex server wasn’t showing up as online. It was active on the QNAP. I couldn’t get to it from my local IP either. Seemed random.

I stopped and started the Plex app on Qnap, but still no luck.

In my Plex Media Server.log (accessible in my share folder which is amazing!) I saw this:

ERROR - HttpServer: Error binding acceptor: Address already in use
ERROR - HttpServer: Error opening acceptor on IPv6, falling back to IPv4: Address already in use
ERROR - HttpServer: Error binding acceptor: Address already in use
ERROR - Error: Unable to set up server: listen: Address already in use (N5boost10wrapexceptINS_6system12system_errorEEE)

I found this old thread (Ubuntu 18.04 Plex Media Server: Failed to start Plex Media Server/Address already in use) and after stopping the QPKG, waiting a few seconds, I entered ps -ef | grep -i plex in SSH and it spit out:

4383 admin       936 S   grep -i plex
15079 admin    450936 S   ./Plex Media Server
15392 admin     68748 S N Plex Plug-in [com.plexapp.system] /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-6c22540d5/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.21.1.3830-6c22540d5 /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-6c22540d5/System.bundle
16804 admin      3292 S   Plex EAE Service
17316 admin      4080 S   /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Tuner Service /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Private /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Shared 1.21.1.3830-6c22540d5 32600 /waitmutex
25513 admin      2760 S   /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Relay -p 443 -N -R 0:127.0.0.1:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Cache/relayHostKey.txt -o LogLevel=VERBOSE -o PreferredAuthentications=password -o PubkeyAuthentication=no -l shackrock -F /dev/null IPADDRESS

Seems like some packages have hung here, but this is over my skill level, so reporting here in case it’s related at least. I’m going to restart the server and hopefully it clears it up though!

Thanks

For some reason, the QTS didnt clear out your processes.

There are two ways to resolve this:

  1. From the command line

kill -9 $(ps -ef | grep Plex | awk ‘{print $1}’)

  1. Restart QTS (which allows PMS to shut down gracefully

Maybe a dumb question: I used the PMSLibshare program long ago (I’ve removed it in recent months) and now I have PlexData and Plex shares. Can I safely delete the “Plex” share?

@jacklail

If you’ve transitioned to the PlexData method then yes. The choice is yours.
PMS is sensitive to its existence.

PMSLibShare does not follow your PMS QPKG volume where PlexData does so it comes down to whether or not you move your PMS package around to different volumes or not.

1 Like

Hey Chuck:

I converted my NAS storage pool from static to thick and to start over from backups. I have Plex backups, but in installing Plex on the newly created volume, Neither the PlexData nor the “Plex Media Server” symbolic link was created.

I stopped and started a couple times to see if that fixed it. Nope. I uninstalled and created a PlexData share, but that didn’t add the “Plex Media Server” folder/link.

Can I manually add that via SSH?

Is the target /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/?

Thanks for all your efforts. It’s very helpful!

– jack lail

@jacklail

  1. I don’t create the PlexData share anymore. There were issues with different QNAP firmware versions. It works out best to allow folks to create it if they wish to have the shared folder.

  2. When you create the shared folder, just until the fix gets released by engineering, populated it the first time with this shell command:

ln -s /share/*/.qpkg/PlexMediaServer/Library/Plex\ Media* “/share/PlexData/Plex Media Server”

You’re awesome. Thanks! :slight_smile:

I’ve been trying to follow this and upgrade from pmslibshare v1 but I don’t know what I’m doing. Is there a new pmslibshare app? Please let me know what I need to do or direct me to the topic if it’s already been discussed.
Thank you!

@Rossome2648

It’s no longer a standalone package. I’ve built it into PMS.

All you need to do is create a shared folder named PlexData.
Grant appropriate permissions as you do it.
Location doesn’t matter.

Now, because I’m still waiting for Engineering to release the fix for this, you need to kickstart it one time.

From the SSH session:

ln -s /share/*/.qpkg/PlexMediaServer/Library/Plex\ Media* “/share/PlexData/Plex Media Server”

Now, you’ll have PlexData as the shared folder.
In it, you’ll find Plex Media Server.

This is a link to where it’s really stored under the QPKG area.

It will follow (auto track) PMS’s location if you use “Migrate to”.

@ChuckPa

When I add the shared folder then ssh into and copy/paste what you wrote but I get:

<PlexMediaServer/Library/Plex\ Media* “/share/PlexData/Plex Media Server”

ln: Server”/Plex Media Serve: File exists

ln: Server”/Plex Media Server: File exists

ln: Server”/Plex: File exists

ln: Server”/Media: File exists

Does that mean it’s linking or do I need to delete the previous Plex Media Server from my QNAP then try it again? I currently have a Shared “Plex” folder and in there is the Plex Media Server. I believe this was added when I added PMS.

Any info you can provide would be great!

I did fix that so you might be running into that

The general procedure is:

  1. Create PlexData shared folder
  2. Restart PMS
  3. Look at PlexData in FileStation
  4. If you see “Plex Media Server” – then you’re up and running.
  5. The shell command is only needed if it didn’t create it. It’s also your cue to let me know it didn’t work.