PMS after update started but is not working (ubutnu)

I edited above. Forgot a small part.

Please also scan

sudo find /etc -name \*plexmediaserver\* -print
root@HomeMediaServer:/usr/lib/plexmediaserver# sudo find /etc -name \*plexmediaserver\* -print
/etc/default/plexmediaserver
/etc/init/plexmediaserver.conf
/etc/apt/sources.list.d/plexmediaserver.list
/etc/apt/sources.list.d/plexmediaserver.list.save
/etc/apt/sources.list.d/plexmediaserver.list.distUpgrade
/etc/systemd/system/multi-user.target.wants/plexmediaserver.service

Neither of these files belong.

I updated PMS installer to remove them.

/etc/default/plexmediaserver
/etc/init/plexmediaserver.conf

Please remove manually and restart Ubuntu

Those files are left over from Ubuntu 14 and Ubuntu 15. Neither belong. This is why I remove them.

I have done it but now still no changes

has /lib/systemd/system/plexmediaserver.service been altered?

Show me if you are uncertain.

The contents of /etc/systemd/system/multi-user.target.wants is normal I expect this.

For the next and final step before wiping PMS and starting over from scratch

sudo sh
systemctl stop plexmediaserver
chown -R plex:plex /var/lib/plexmediaserver
find /var/lib/plexmediaserver -type d -exec chmod 755 {} \;
find /var/lib/plexmediaserver -type f -exec chmod 644 {} \;
systemctl restart plexmediaserver

Also:

cat /lib/systemd/system/plexmediaserver.service

[Unit]
Description=Plex Media Server for Linux
After=network.target network-online.target

[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

Please type the following and show me the output.

sudo cat /lib/systemd/system/plexmediaserver.service

YES WORKED

:+1: :+1:

but not all good

server running but no video and no posters

sudo sh
systemctl stop plexmediaserver
rm -rf "/var/lib/plexmediaserver/Application Support/Plex Media Server/Plug-in Support/Caches/*"
systemctl start plexmediaserver

manually refresh all metadata.

Also remember to sign into your account if not signed in.

I understood what was wrong, it’s all about rights, now everything is working, thanks a lot

In this file lib/systemd/system/plexmediaserver.service, I would have a user other than plex / plex.
probably with the update the file has been replaced

Do not modify /lib/systemd/system/plexmediaserver.service. That is for me to write the main service definition.

You write your customizations in /etc/systemd/system/plexmediaserver.service.d/override.conf

Here is how you can do it.

This also fixed my suddenly frozen-at-launch Plex server. Thanks!

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