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

Selfhosted

40041 readers
690 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?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 11 months ago (2 children)

Maybe the UID/GUID of the plex user changed?

Or polkitd has the same UID/GUID and takes it over when installed/updated?

[–] [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.

[–] [email protected] 5 points 11 months ago

Also thank you for pointing this out. Not sure how I missed this. I already looked in the passwd file to make sure it was an actual user account, they're right next to exciter and had the same uid. You saved me a boat load of time trying to figure that one out. Thanks for sharing your wisdom.

[–] [email protected] 4 points 11 months ago

I had a samba issue a while back where the underlying file system started my user didn’t have permission to edit it. It still showed as my user on the vm but didn’t let me edit files. It might be worth checking the owner on the original file system, as well as permissions.

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

you might need to add the plex user as an owner of the media library files (?) I had something a bit like that with nextcloud

A (bad) solution could be >chmod 777 /your/directory/