this post was submitted on 24 Nov 2023
18 points (84.6% liked)

Selfhosted

40113 readers
793 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

So I'm on plex scanning my library to get new videos added and they show up briefly then quickly disappear. So I looked into logs and plex is spitting out a boat load of permission denied logs.

Background: my plex is a vm in proxmox with its data in a cifs share stored on my truenas scale box. This has been working great for years.

I go take a look on my truenas scale dataset and sure enough, the acl is wonky.

I used to have plex as owner and group as well as permissions for several other users. Now the owner is polkitd which seems to be a service used in Linux for policy auth and permissions. Obviously I'm no Linux master, but i can fiddle.

Anyway the user I use to mount the share is no longer in the acl. Somehow it can still mount the share though?

So question, who the f is this polkitd, and who the hell do they think they are messing with my plex time?

More seriously, is there a reason polkitd would take ownership or modify an acl like this? Where would I look in logs for this?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 11 months ago

This was the issue. I did an update recently of truenas and apparently the polkitd user took over the uid for my plex account. Unfortunately it looks like this also caused some level of corruption since even changing the uid and gid haven't fixed the issue and plex is borked.

Luckily I have backups, so not all is lost, and even if it was, I could probably just regenerate that data.