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?

    • Stowaway@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year 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.

    • Stowaway@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year 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.