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
      ·
      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.

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

  • socphoenix@midwest.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    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.

  • merthyr1831@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    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/