Plex on new QNAP 453be

Server Version#: Version 1.14.1.5488

Hi all, I’ve retiring a synology NAS and moving to this new QNAP NAS. I tried to setup Plex a few years ago on the Synology but I think it didn’t have enough grunt. The QNAP NAS is meant to be much better. I’ve been moving folders/files over but whilst the QNAP Plex library sees the folders, it can’t seem to add the file names to the library.

I’ve setup the following folders, and following suggestions from other parts of the forum, have made sure to point the libraries to CACHEDEV1_DATA/ subdirectories.
/share/CACHEDEV1_DATA/Public/Movies
/share/CACHEDEV1_DATA/Public/TV
/share/CACHEDEV1_DATA/Public/Photos
/share/CACHEDEV1_DATA/Public/Music
/share/CACHEDEV1_DATA/Public/Home Media

From inside the web interface to the Plex server, every folder under the ‘library’ link, simply gives me “There are no items in this library”.

If I ‘Browse for media folder’ and follow the linked folder to the destination, I can see the file names but they’re greyed out.

All folders, in so far as I can see via ssh, appear to be owned by admin:administrators. I tried changing this akin to some of the linux suggestions, to plex:plex plex:everyone plex:administrators but nothing changed the outcome. In the end I changed it back to admin:administrators which is how the folders were setup.

In either case, ps aux suggests Plex Media Server is being run by the ‘admin’ user:

 7267 admin     15276 S   /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Tuner Service /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Private /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Share
 7268 admin     28156 S   /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex DLNA Server

Looking at the media server logs, the library does seem to be scanned and finding files, but getting some errors for each file it finds.

Mar 08, 2019 23:52:15.607 [0x7f1203d66800] DEBUG -       * Scanning Cars
Mar 08, 2019 23:52:15.607 [0x7f1203d66800] DEBUG - Looking for path match for [/share/CACHEDEV1_DATA/Public/Movies/001A Kids Movies/CARS.avi]
Mar 08, 2019 23:52:15.608 [0x7f1203d66800] DEBUG - Skipping hash check, no size match for 736210944 bytes.
Mar 08, 2019 23:52:15.608 [0x7f1203d66800] DEBUG - No match for hash.
Mar 08, 2019 23:52:15.609 [0x7f1203d66800] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Mar 08, 2019 23:52:15.610 [0x7f1203d66800] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Mar 08, 2019 23:52:15.611 [0x7f1203d66800] DEBUG - HTTP 401 response from GET http://127.0.0.1:32400/library/changestamp
Mar 08, 2019 23:52:15.612 [0x7f1203d66800] ERROR - downloadContainer: expected MediaContainer element, found html
Mar 08, 2019 23:52:15.612 [0x7f1203d66800] ERROR - Exception inside transaction (inside=1) (../Library/MetadataItem.cpp:3298): Unable to allocate a changestamp from the server
Mar 08, 2019 23:52:15.612 [0x7f1203d66800] ERROR - Exception assimilating media item in 001A Kids Movies: Unable to allocate a changestamp from the server

Your advice would be appreciated.

Plex Media Server Logs_2019-03-08_23-55-57.zip (615.6 KB)

Logs

In looking in your logs you have some weird errors such as this one.

Mar 08, 2019 23:18:08.741 [0x7f53127ff700] ERROR - Error listing directory [/share/CACHEDEV1_DATA/.qpkg/HD_Station/share] - boost::filesystem::directory_iterator::construct: Permission denied: "/share/CACHEDEV1_DATA/.qpkg/HD_Station/share"
Mar 08, 2019 23:18:17.561 [0x7f530d77d700] ERROR - Error listing directory [/share/CACHEDEV1_DATA/.qpkg/HD_Station/share] - boost::filesystem::directory_iterator::construct: Permission denied: "/share/CACHEDEV1_DATA/.qpkg/HD_Station/share"
Mar 08, 2019 23:18:19.699 [0x7f53127ff700] ERROR - Error listing directory [/share/CACHEDEV1_DATA/.qpkg/HD_Station/share] - boost::filesystem::directory_iterator::construct: Permission denied: "/share/CACHEDEV1_DATA/.qpkg/HD_Station/share"
Mar 08, 2019 23:18:19.848 [0x7f530d48f700] ERROR - Error listing directory [/share/CACHEDEV1_DATA/.qpkg/HD_Station/share] - boost::filesystem::directory_iterator::construct: Permission denied: "/share/CACHEDEV1_DATA/.qpkg/HD_Station/share"
Mar 08, 2019 23:18:25.023 [0x7f53127ff700] ERROR - Error listing directory [/share/CACHEDEV1_DATA/.qpkg/HD_Station/share] - boost::filesystem::directory_iterator::construct: Permission denied: "/share/CACHEDEV1_DATA/.qpkg/HD_Station/share"

So lets start over from scratch:

  1. Since you are just starting out, I would do a complete uninstall of Plex. That will make sure we are starting from a good state.

  2. Download the lastest PlexPass build 1.15.1.x and install that.

  3. Create a new Shared Folder (Media or whatever you want to call it). Copy your Movies, TV, etc. folders into it. Public is a QNAP default folder and as such they can change things at will so better to create your own folder. Leave permissions alone.

  4. Add new folders to Library via /share/Media/TV (etc.) You don’t need to use CACHEDEV1.

Hi just confirming, it ended up being a permissions issue on the server. A few chmod and chown commands and it ended up working. I’m not certain exactly which switched it to working - just running those commands collectively and recursively fixed it. Frustrating to encounter however, as plex was installed by the username and run under the same username as the folder and files appeared. Something wasn’t quite right though.

It would be good if there was a menu option in plex which did a file/foldername check of permissions when defining library folders, to warn you of any permission issues. i.e. you link a folder to a library and it immediately red flags if plex can see folders or files in that directory it can’t access and tells you if its a owner/user or group/read permissions issue

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