Why does this manual doesn't work on my Ubuntu Server 20.04 & PMS?

Continuing the discussion from Moving PMS 'Library':

I did few times and still Library on it’s old place(

Server Version#: 4.66.1
Player Version#:

Summary

Dec 25, 2021 16:31:35.749 [0x7f4830a65b38] INFO - Plex Media Server v1.25.2.5319-c43dc0277 - Ubuntu PC x86_64 - build: linux-x86_64 debian - GMT 03:00
Dec 25, 2021 16:31:35.750 [0x7f4830a65b38] INFO - Linux version: 20.04.3 LTS (Focal Fossa), language: en-US
Dec 25, 2021 16:31:35.750 [0x7f4830a65b38] INFO - Processor Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
Dec 25, 2021 16:31:35.750 [0x7f4830a65b38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv b587490162c22e078c314e3f7dc560c691d126aa)
Dec 25, 2021 16:31:35.750 [0x7f4830a65b38] INFO - /usr/lib/plexmediaserver/Plex Media Server
Dec 25, 2021 16:31:35.750 [0x7f4834255b58] DEBUG - BPQ: [Idle] → [Starting]
Dec 25, 2021 16:31:35.750 [0x7f4834255b58] DEBUG - FeatureManager: Using cached data for features list
Dec 25, 2021 16:31:35.751 [0x7f4834255b58] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Dec 25, 2021 16:31:35.793 [0x7f4834255b58] DEBUG - Running migrations. (EPG 0)
Dec 25, 2021 16:31:35.813 [0x7f4834255b58] DEBUG - ChangestampAllocator: initialized to 66388
Dec 25, 2021 16:31:35.816 [0x7f4834255b58] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.35.5, threadsafe=1
Dec 25, 2021 16:31:35.820 [0x7f4834255b58] DEBUG - Running migrations. (EPG 0)
Dec 25, 2021 16:31:35.832 [0x7f4834255b58] DEBUG - [CERT] Subject name is /CN=*.f3c8d538f7cc44368cb1d72e7922a4d0.plex.direct
Dec 25, 2021 16:31:35.832 [0x7f4834255b58] DEBUG - [CERT] Installed certificate with fingerprint 6d:9a:d7:a2:b3:33:4c:4a:81:00:4c:60:ac:1d:23:46:42:29:bf:b1.
Dec 25, 2021 16:31:35.832 [0x7f4834255b58] DEBUG - [CERT/OCSP] Stapling requests will be made to ‘http://r3.o.lencr.org/’.
Dec 25, 2021 16:31:35.832 [0x7f4834255b58] INFO - [CERT/OCSP] Successfully retrieved response from cache.
Dec 25, 2021 16:31:35.832 [0x7f4834255b58] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
Dec 25, 2021 16:31:35.832 [0x7f4834255b58] DEBUG - HttpServer: Listening on port 32400.
Plex Media Server Logs_2021-12-25_17-30-56.zip (1.9 MB)

Please show the override.conf contents

sudo nano /etc/systemd/system/plexmediaserver.service.d

override.conf

Customize Plex’s config

[Service]
Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/nextcloud/plexdata/Library/Application Support”

These values are only needed if you wish to change user & group

User=plex
Group=plex

This is needed to change the default umask

UMask=0002 # this must be 4 digits of octal

Is this a network share mount? the name nextcloud implies that

If so, it will never work. The absolute file locking required to run PMS is not available on any of the network file sharing protocols (NFS, SMB/CIFS, AFS)

No it just a mount point on 1Tb hard drive

Check the following.

  1. Unmount the drive

  2. Let’s make certain the unprivileged user plex can traverse them
    – chmod 755 /mnt/nextcloud /mnt/nextcloud/plexdata

  3. Also make certain Plex owns the top mount point
    – sudo chown plex:plex /mnt/nextcloud/plexdata

  4. Now mount the file system & confirm user plex owns Library (use ls -la)

  5. It’s prudent to force / confirm all ownership from Library down
    – sudo chown -R plex:plex /mnt/nextcloud/plexdata/Library

Now give it a spin.

I did that, and now plex lybrary after reboot is empty
drwxr-xr-x 3 plex plex 4.0K Dec 23 21:59 Library

And if I unmount the drive, how I can do that? System do not see this folders

Based on the mount point – these directories already exist in the file system of the main host therefore you set them BEFORE mounting the drive

After mounting the drive, ‘Library’ becomes visible under the mount point, True?

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