Running Plex with Dockermods (Hama) facing issue with "git unsafe"

Hi,

currently running Docker (v20.10.16) with Plex and dockermods (Hama-Absolute-Scanner) a few days ago the following error message appeared in my log

Blockquote


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support LSIO projects visit:
Donate | LinuxServer.io

GID/UID

User uid: 1001
User gid: 100

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing…
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 45-plex-claim: executing…
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing…
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing…
Docker is used for versioning skip update check
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 90-custom-folders: executing…
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 95-apt-get: executing…
Fetched 9,428 kB in 24s (401 kB/s)
Reading package lists…
[cont-init.d] 95-apt-get: exited 0.
[cont-init.d] 98-absolute-hama: executing…
**** updating scanner repo ****
fatal: unsafe repository (’/config/absolute’ is owned by someone else)
To add an exception for this directory, call:

git config --global --add safe.directory /config/absolute

**** pulling latest update ****
fatal: unsafe repository (’/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle’ is owned by someone else)
To add an exception for this directory, call:

git config --global --add safe.directory '/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle'

[cont-init.d] 98-absolute-hama: exited 0.
[cont-init.d] 99-custom-scripts: executing…
[custom-init] no custom files found exiting…
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
Critical: libusb_init failed
Blockquote

i already did some research, but can’t find any solution for this, my knowledge regarding linux is also rather basic.

Restart Plex

seems to work, now i only get following message:

**** updating scanner repo ****
Already up to date.
**** pulling latest update ****
error: Your local changes to the following files would be overwritten by merge:
Contents/Code/init.py
Please commit your changes or stash them before you merge.
Aborting
Updating a5b4383…c53b2af
[cont-init.d] 98-absolute-hama: exited 0.
[cont-init.d] 99-custom-scripts: executing…
[custom-init] no custom files found exiting…
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
Critical: libusb_init failed

It sounds like that file was modified. You can delete that folder and restart the container. It should be re-downloaded on start

thanks a lot, it worked.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.