Closed CLHatch closed 1 year ago
Yes you should make autoscan accessible to plex database file but error is nothing to do with it. There seems no permission to access docker.sock for user with $PUID:$PGID
. How about doing something like this? usermod -aG docker <username>
Yes you should make autoscan accessible to plex database file but error is nothing to do with it. There seems no permission to access docker.sock for user with
$PUID:$PGID
. How about doing something like this?usermod -aG docker <username>
Makes sense. I believe your container uses user abc
, so I created the docker
group and added user abc
to that group, then restarted for good measure. Unfortunately, still getting the permission issues.
Reproduced
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/pms/json": dial unix /var/run/docker.sock: connect: permission denied
and found the permission handling is missing https://github.com/sabrsorensen/alpine-plex_autoscan/blob/00eac031e74dd961242549451e135982fe0f1f66/root/etc/cont-init.d/10-init_user_and_fix_permissions#L52
It will be fixed soon.
I was setting up the
plex_autoscan
Docker container, basing the settings on an old config I had from a combined plex/plex_autoscan container (which used the original version of plex_autoscan). That old container I used had Plex and plex_autoscan in the same container, so of course all files were locally accessible.While setting up your container, I managed to get everything apparently set up, and it apparently was able to see the Plex libraries through Docker (I believe I had to add a mount to the
docker.sock
file). But it was also spamming the logs with this:2023/09/17 23:59:55 ERROR MAIN [MainThr] Unable to locate Plex DB file: PLEX_DATABASE_PATH=/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
I just now got rid of that error by mounting the Plex library into the plex_autoscan container, but now the error is replaced with:
This is my current compose for your container:
I feel there must be something simple I'm missing... Any help would be appreciated.
Edit: Even though I'm getting that error, this does work: