Unable to install 1.15.2.793-782228f99

Tried to upgrade from 1.14 something to 1.15.2.793-782228f99 this morning, it broke.

Then uninstalled and tried to sudo dpkg -i and I get: /bin/mkdir: cannot create directory ‘/var/lib/plexmediaserver’: Permission denied

I’m running debian 9.8

  1. Copy/paste the terminal window output from the installation attempt please?
  2. Is /var/lib/plexmediaserver mounted elsewhere? (NAS, another disk volume) ?
  3. ls -la /var/lib/plexmediaserver output ?

I’ll copy/paste when I get back to my system.

I don’t have a plexmediaserver folder to show in /var/lib. I wiped it when the upgrade failed.

Is it possible that somewhere in the install the action of creating the directory in /var/lib is trying to be done under the Plex user and not as root then chown to Plex?

In the installer (%postinst and *.postinstall), I create the user and directory as root (dpkg/rpm)

If this is going to be redone from scratch, get all of it

  1. userdel plex
  2. groupdel plex
  3. rm -rf /var/lib/plexmediaserver
  4. rm -rf /etc/systemd/system/plexmediaserver*

I’ll try this in 5 hours or so and report back

You might want to join the discussion here.

I got it to install after removing a lot of leftover files.

To get my libraries to scan I changed the permissions from 750 to 775 on all of my drives that hold media.

This isn’t my ideal solution, especially since I lost all of my library information: shows I’ve watched, playlists, etc…

The default permissions for media files I tell folks to use.

  1. find /media-dir-1 /media-dir-2 (list as many as needed here) -type d -exec chmod 755 {} \;
  2. repeat the above for -type f with chmod 644 {}

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