Changing user:group for PMS question

I changed the default plex:plex a long time ago using this guide by @ChuckPa. I didn’t move the directory, I just changed the user:group.

Now that I tried putting it back to plex:plex, I keep freezing after a few minutes.

I’m sure I’m missing a step or something.
Steps:

  1. stop PMS
  2. chown plex:plex -R /var/lib/plexmediaserver
  3. chown plex:plex -R [transcode directory]
  4. delete /etc/systemd/system/plexmediaserver.service.d/override.conf
  5. systemctl daemon-reload
  6. start PMS

Everything will work fine for a few minutes, then it freezes. I’m wondering if the problem is because the /tmp folder still has some old permissions or DB locks. I just rebooted the server. I’m hoping that’s it. I’ll provide logs if it happens again.

So it happened again… I’m now trying Chuck’s DBRepair.

NEED LOGS.

DBRepair won’t fix it if the permissions are jacked up.

1 Like

[deleted link]
Thanks Chuck!

I feel so stupid. I think Plex was optimizing database shortly after Plex was restarted.

When I viewed the logs just now with tail -f, I could see it was trying to optimize the database. It was just taking forever before, and that’s why it was frozen for so long. After I ran the DBRepair the optimization ran a little faster. It basically unfroze when the optimization was done.

Now I know better that I need to check the Plex logs directly instead of just journalctl. It would be nice if the progress to a database optimization or database migration was outputted into syslog/journalctl.

/CROSSES FINGERS that I get no more issues!

So this is another PEBKAC?

:joy:

FYI: Opening the browser should have shown you the ‘503’ maintenance message. ( Translation: WAIT :stuck_out_tongue: lol )

1 Like

Haha, no, actually, the local browser for 32400 was completely frozen. It wasn’t migrating. It was optimizing, and I suppose it only shows the maintenance message when it’s migrating.

I’m sure this was never a concern normally because this optimization would only last a few seconds. But for very large databases it can lock everything up for a few minutes until it’s completed.

But, yeah! I should have checked the plex logs. I swear I waited! I knew that sometimes it performs some maintenance tasks when plex starts, but it was taking too long, and everything was frozen. If I just checked the logs itself I would’ve seen that it was doing stuff! Haha, I’m just relieved it’s working!

Thanks for all you do Chuck!

As for journalctl / syslog,

you do have a choice which you can set in the override.conf

There is one caveat… If you switch to using syslog/journal, then the burden of providing CLEAN plex logs is on you. We won’t sit there and filter through the pile of messages for you LOL

1 Like

Thanks, it’s fine now, I’ll just leave it as-is. I know now to monitor the plex logs directly if it’s not loading up, haha.

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