Plex reinstall on Raspberry Pi won't load. Service won't start because of permissions?

Server Version#: v.1.32.8.7639-fb6452ebf

My Raspberry Pi os crashed so I had to reinstall. I had backed up the Plex directory and followed the directions here: https://support.plex.tv/articles/201539237-backing-up-plex-media-server-data/

and here: Plex Media Server won't start up after server crash - #7

but I get an unable to connect or connection refused depending on the browser.

I’ve tried manually restarting the service which seems to work without errors.

I think I’ve tracked the problem down to file permissions when starting the service. The restart doesn’t give errors but the journal file says:

PMS: failure detected. Read/write access is required for path: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server

The permissions I have on the folder are: drwxrwxr-- 14 which seems like it should be allowing read/write access.

I was able to get it working by setting permissions to 777, but that seems too open. Is there a more secure permissions set that it should have?

What is the user/group ownership for this path? It should be plex:plex by default. It’s possible that in the process of backing up and subsequently restoring the directory that the ownership was changed (maybe to root, or your own user?).

If that’s the case, you would need to change the ownership back to plex:plex and then set the permissions back to a more reasonable 755 (directories) and 644 (files) via chown/chmod.

Thank you for the help. Yes, the permissions had reverted. I’ve corrected them as you suggested and the server is still working.

You’re welcome, glad you got it working!

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