Moved Database to USB lost all Artwork

Oh hey

i have moved my database to an external usb drive all is functioning i have just lost all my artwork.

i have tried adding new file but no artwork is found.
i have cleared the cache files

any help would be fantastic

Log File:

Oct 16, 2018 01:11:13.209 [0x73b70400] INFO - Plex Media Server v1.13.8.5395-10d48da0d - annapurnatrans PC arm7 - build: linux-annapurnatrans-arm7 readynas6 - GMT 13:00
Oct 16, 2018 01:11:13.210 [0x73b70400] INFO - Linux version: 4.14.71-v7+ (#1145 SMP Fri Sep 21 15:38:35 BST 2018), language: en-GB
Oct 16, 2018 01:11:13.210 [0x73b70400] INFO - Processor Arm
Oct 16, 2018 01:11:13.210 [0x73b70400] INFO - /usr/lib/plexmediaserver/Plex Media Server
Oct 16, 2018 01:11:14.701 [0x7450f3b0] INFO - OCSP: Successfully retrieved response from cache.
Oct 16, 2018 01:11:24.794 [0x705ff400] ERROR - Error issuing curl_easy_perform(handle): 7
Oct 16, 2018 01:11:24.794 [0x705ff400] WARN - HTTP error requesting POST http://127.0.0.1:32600/devices/discover (0, No error) (Failed connect to 127.0.0.1:32600; Connection refused)
Oct 16, 2018 01:11:32.504 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=1): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:33.259 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=2): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:33.734 [0x6da7e400] ERROR - Network Service: Error in browser handle read: 125 (Operation canceled) socket=-1
Oct 16, 2018 01:11:33.768 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=3): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:33.834 [0x6da7e400] INFO - Network Service: Abandoning browse socket, it was closed.
Oct 16, 2018 01:11:34.787 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=4): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:35.825 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=5): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:36.108 [0x6fcff400] INFO - Sync: downloaded 0 sync list(s) with 0 sync items(s): 0 new, 0 updated, 0 deleted
Oct 16, 2018 01:11:36.900 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=6): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:38.051 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=7): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:38.353 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=8): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:38.519 [0x698ff400] WARN - [Preferences] No update channels loaded, so showing the previously-selected channel, labelled ‘unknown’ since we don’t really know the name.
Oct 16, 2018 01:11:38.956 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=9): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:40.045 [0x678ff400] INFO - AutoUpdate: no updates available
Oct 16, 2018 01:11:40.163 [0x6b0ff400] ERROR - Failed to begin transaction (…/Library/MetadataCollection.cpp:173) (tries=10): Cannot begin transaction. database is locked
Oct 16, 2018 01:11:40.164 [0x6b0ff400] ERROR - Fixup 29DatabaseFixupsSyncCollections threw an exception: Cannot begin transaction. database is locked
Oct 16, 2018 01:11:43.191 [0x727ff400] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (b5df5c41-896a-4c86-8312-6e54b94a24f8, expected 89a934d8-ab4f-4a07-b0dd-ed5d846c1c16)
Oct 16, 2018 01:11:44.617 [0x688ff400] WARN - SLOW QUERY: It took 430.000000 ms to retrieve 50 items.
Oct 16, 2018 01:11:49.828 [0x6a8ff400] WARN - SLOW QUERY: It took 350.000000 ms to retrieve 50 items.
Oct 16, 2018 01:12:47.684 [0x6ecff400] INFO - LibraryUpdateManager path watching is disabled
Oct 16, 2018 01:14:56.734 [0x5f4ff400] WARN - Held transaction for too long (…/Library/MetadataItem.cpp:5497): 0.320000 seconds
Oct 16, 2018 01:15:52.786 [0x678ff400] WARN - Held transaction for too long (…/Library/MetadataItem.cpp:5497): 0.270000 seconds

No Linux expert here, but, which type of filesystem is used on the USB-thing?
I have a hunch that FAT32 or exFat are not optimal.

This is a raspberry Pi issue.
Relocated for @drmagoo to help with (Mr Wizard) :slight_smile:

1 Like

(1) What did you move exactly? You have to move the whole /var/lib/plexmediaserver directory to provide a seamless transition (i.e. “nothing happened at all”).

(2) How did you inform the systemd PMS service to access the meta data at the new location?

(3) Did you stop PMS before the move?

(4) Did you check the file permissions on your external drive, i.e. did you maybe move the directory as root and user plex does not have write access to the new location?

It is formatted as FAT32

Thanks for your reply

(1) Yes whole /var/lib/plexmediaserver directory moved

(2) i followed the guide here here

  • i have deleted the old install so i asume it has picked up the new location

(3) Yes PMS was not launching due to lack of space

(4)The PMS directory has permissions for pi user. and in the override file i has told PMS to use the pi user ( see below’s override file)

#
# Customize Plex's config
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/usbstorage/plexdata/Library/Application Support"
#
#  These values are only needed if you wish to change user & group
User=pi
Group=pi
#
# This is needed to change the default umask 
Umask=0002    # this must be 4 digits of octal

i will change it back to Plex user and see if that fixes problem

thanks again for you help

If your setup with user pi was working before, please leave it at that.

FAT32 is really not the optimal filesystem for your use case, Otto is absolutely right. I strongly suggest to use a Linux filesystem (e.g. ext4) on your USB drive or at least ntfs.

That being said, with your current setup, please make sure Linux user pi has write permissions to the plex data in /mnt/usbstorage/plexdata/Library/Application Support. That’s a bit tricky because permissions are not stored in the FAT32 filesystem and you have to make sure your mount options in /etc/fstab are set in a way so that pi can write.

@ChuckPa Do you know if the PMS database is supposed to work on FAT32 on Linux at all? I am not 100% sure about the POSIX locks.

AFAIK, the filesystem where the Plex data folder is stored needs to support Symlinks/hardlinks.
Because these are used to ‘select’ one poster out of the downloaded batch of posters.
If there are no symlinks, there is no artwork in the library.

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