Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plexanisync tautulli autorun #227

Closed
reitenth opened this issue Dec 7, 2023 · 14 comments
Closed

plexanisync tautulli autorun #227

reitenth opened this issue Dec 7, 2023 · 14 comments

Comments

@reitenth
Copy link

reitenth commented Dec 7, 2023

im trying to get the anilist script to auto mark something as watched when finished and cant seem to get working on a real watch or the test.
image
image

@Soitora
Copy link

Soitora commented Dec 8, 2023

What does your logs say?
Do you have "MF GHOST " (exact name) on your Plex?

@reitenth
Copy link
Author

reitenth commented Dec 8, 2023

image
MF Ghost is on plex

@LucasSymons
Copy link

looks like you need to install the packages for the script.
Python is throwing an error about them being missing.
Try pip install -r requirements.txt

@D3thRoned
Copy link

I got the same problem, based on my research it seems like the Docker-Container failes to install the requirements. The Tautulli User has no home directory. Manually creation after setup works (root console), but shouldnt be the final answer

mkdir /home/tautulli
chown tautulli:tautulli /home/tautulli/
cp /plexanisync/requirements.txt /home/tautulli/requirements.txt
su - tautulli -c "pip install -r requirements.txt"

@reconman
Copy link
Collaborator

I got the same problem, based on my research it seems like the Docker-Container failes to install the requirements. The Tautulli User has no home directory. Manually creation after setup works (root console), but shouldnt be the final answer

Are you talking about the plexanisync-tautulli image or the official tautulli image?

@D3thRoned
Copy link

I got the same problem, based on my research it seems like the Docker-Container failes to install the requirements. The Tautulli User has no home directory. Manually creation after setup works (root console), but shouldnt be the final answer

Are you talking about the plexanisync-tautulli image or the official tautulli image?

The "image: 'ghcr.io/rickdb/tautulli-plexanisync:latest'" - i did the setup based on the "Docker-Tautulli-PlexAniSync" readme

@reconman
Copy link
Collaborator

reconman commented Apr 13, 2024

I tested the image and everything works normally:

logs
usermod: no changes
Updating settings.ini
Running Tautulli using user tautulli (uid=1000) and group tautulli (gid=1000)
2024-04-13 15:51:28 - INFO :: MainThread : Starting Tautulli v2.13.4
2024-04-13 15:51:28 - INFO :: MainThread : [Docker] Linux 4.4.180+ (#42962 SMP Mon May 29 14:38:23 CST 2023 - Debian GNU/Linux 12 bookworm)
2024-04-13 15:51:28 - INFO :: MainThread : Europe/Vienna (UTC+0200)
2024-04-13 15:51:28 - INFO :: MainThread : Language en_US / Encoding UTF-8
2024-04-13 15:51:28 - INFO :: MainThread : Python 3.9.18 (main, Nov 29 2023, 05:59:34) [GCC 12.2.0]
2024-04-13 15:51:28 - INFO :: MainThread : SQLite 3.40.1
2024-04-13 15:51:28 - INFO :: MainThread : Program Dir: /app
2024-04-13 15:51:28 - INFO :: MainThread : Config File: /config/config.ini
2024-04-13 15:51:28 - INFO :: MainThread : Database File: /config/tautulli.db
2024-04-13 15:51:28 - INFO :: MainThread : Checking if the database upgrades are required...
2024-04-13 15:51:28 - INFO :: MainThread : Checking if configuration upgrades are required...
2024-04-13 15:51:28 - INFO :: Thread-1 : Tautulli PlexTV :: Requesting resources for server...
2024-04-13 15:51:28 - INFO :: Thread-1 : Tautulli PlexTV :: Pinging Plex.tv to refresh token.
2024-04-13 15:51:28 - INFO :: MainThread : Tautulli NotificationHandler :: Starting background notification handler (2 threads).
2024-04-13 15:51:28 - INFO :: MainThread : Tautulli WebStart :: Initializing Tautulli web server...
2024-04-13 15:51:28 - INFO :: MainThread : Tautulli WebStart :: Web server authentication is enabled: Tautulli admin (username is 'stefan.berger') and Plex admin.
2024-04-13 15:51:28 - INFO :: MainThread : Tautulli WebStart :: Thread Pool Size: 10.
2024-04-13 15:51:28 - INFO :: MainThread : Tautulli WebStart :: Starting Tautulli web server on http://0.0.0.0:8181/
2024-04-13 15:51:29 - INFO :: Thread-1 : Tautulli Config :: Writing configuration to file
2024-04-13 15:51:29 - INFO :: MainThread : [13/Apr/2024:15:51:29] ENGINE Serving on http://0.0.0.0:8181
2024-04-13 15:51:29 - INFO :: Thread-1 : Tautulli PlexTV :: Using user-defined URL.
2024-04-13 15:51:29 - INFO :: MainThread : Tautulli is ready!
2024-04-13 15:51:29 - INFO :: Thread-1 : Tautulli PlexTV :: Selected server: DS218plus (http://192.168.0.2:32400) (Linux - Version 1.40.1.8227-c0dd5a73e)
2024-04-13 15:51:29 - INFO :: Thread-1 : Tautulli Config :: Writing configuration to file
2024-04-13 15:51:29 - DEBUG :: Thread-1 : Tautulli Monitor :: Checking for active streams.
2024-04-13 15:51:29 - DEBUG :: Thread-1 : Tautulli Monitor :: Session 1 resumed.
2024-04-13 15:51:30 - INFO :: Thread-15 : Tautulli WebSocket :: Opening websocket.
2024-04-13 15:51:30 - INFO :: Thread-1 : Tautulli Users :: Requesting users list refresh...
2024-04-13 15:51:30 - INFO :: Thread-15 : Tautulli WebSocket :: Ready
2024-04-13 15:51:30 - INFO :: Thread-15 : Scheduled background task: Optimize Tautulli database
2024-04-13 15:51:30 - INFO :: Thread-15 : Scheduled background task: Backup Tautulli database
2024-04-13 15:51:30 - INFO :: Thread-15 : Scheduled background task: Backup Tautulli config
2024-04-13 15:51:30 - INFO :: Thread-15 : Scheduled background task: Refresh Plex server URLs
2024-04-13 15:51:30 - INFO :: Thread-15 : Scheduled background task: Refresh users list
2024-04-13 15:51:30 - INFO :: Thread-15 : Scheduled background task: Refresh libraries list
2024-04-13 15:51:30 - INFO :: Thread-1 : Tautulli Users :: Users list refreshed.
2024-04-13 15:51:30 - INFO :: Thread-1 : Tautulli Libraries :: Requesting libraries list refresh...
2024-04-13 15:51:31 - INFO :: Thread-1 : Tautulli Config :: Writing configuration to file
2024-04-13 15:51:31 - INFO :: Thread-1 : Tautulli Libraries :: Libraries list refreshed.
2024-04-13 15:51:35 - INFO :: CP Server Thread-7 : Tautulli Notifiers :: Updated notification agent: Script (notifier_id 1).
2024-04-13 15:51:35 - DEBUG :: CP Server Thread-8 : Sending test Script notification.
2024-04-13 15:51:35 - DEBUG :: CP Server Thread-8 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'test' (manual trigger).
2024-04-13 15:51:35 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 1.
2024-04-13 15:51:36 - DEBUG :: Thread-3 : Tautulli Notifiers :: Trying to run notify script: /plexanisync/TautulliSyncHelper.py, arguments: ['One Piece'], action: test
2024-04-13 15:51:36 - DEBUG :: Thread-3 : Tautulli Notifiers :: Full script is: ['/usr/local/bin/python', '/plexanisync/TautulliSyncHelper.py', 'One Piece']
2024-04-13 15:51:36 - DEBUG :: Thread-3 : Tautulli Notifiers :: Executing script in a new thread.
2024-04-13 15:51:53 - DEBUG :: Thread-16 : Tautulli Notifiers :: Subprocess returned with status code 0.
2024-04-13 15:51:53 - ERROR :: Thread-16 : Tautulli Notifiers :: Script error: 
  2024-04-13 15:51:39 PlexAniSync - version: 1.4.0
  2024-04-13 15:51:39 Updating single show: One Piece
  2024-04-13 15:51:39 [MAPPING] Custom mapping found locally, using: custom_mappings.yaml
  2024-04-13 15:51:39 [MAPPING] Adding remote mapping url: https://raw.githubusercontent.com/RickDB/PlexAniSync-Custom-Mappings/main/movies-tmdb.en.yaml
  2024-04-13 15:51:39 [MAPPING] Adding remote mapping url: https://raw.githubusercontent.com/RickDB/PlexAniSync-Custom-Mappings/main/series-tmdb.en.yaml
  2024-04-13 15:51:41 [MAPPING] Overwriting previous mapping for Black Rock Shooter
  2024-04-13 15:51:41 [MAPPING] Overwriting previous mapping for Bleach
  2024-04-13 15:51:41 [MAPPING] Overwriting previous mapping for Monogatari
  2024-04-13 15:51:41 [MAPPING] Overwriting previous mapping for One Piece
  2024-04-13 15:51:41 [ANILIST] Retrieving AniList list for user: re********n
  2024-04-13 15:51:43 [ANILIST] Found 734 anime series on list
  2024-04-13 15:51:48 [PLEX] Retrieving anime series from section: Anime
  2024-04-13 15:51:49 [PLEX] Found 151 anime series in section: Anime
  2024-04-13 15:51:49 [PLEX] Retrieving anime series from section: Anime Filme
  2024-04-13 15:51:50 [PLEX] Found 42 anime series in section: Anime Filme
  2024-04-13 15:51:50 [PLEX] Retrieving anime series from section: One Piece
  2024-04-13 15:51:50 [PLEX] Found 1 anime series in section: One Piece
  2024-04-13 15:51:50 [PLEX] Found matching anime series
  2024-04-13 15:51:53 [PLEX] Found 1 watched series
  2024-04-13 15:51:53 [ANILIST] Matching Plex series to Anilist
  2024-04-13 15:51:53 [ANILIST] --------------------------------------------------
  2024-04-13 15:51:53 [ANILIST] Custom Mapping of Title found | title: One Piece | anilist id: 21 | total watched episodes: 1100 | seasons with the same anilist id: [1, 20, 21, 22]
  2024-04-13 15:51:53 Plex to AniList sync finished
2024-04-13 15:51:53 - INFO :: Thread-16 : Tautulli Notifiers :: Script notification sent.
2024-04-13 15:52:06 - DEBUG :: Thread-15 : Tautulli ActivityHandler :: Session 1 paused.

Can you run docker inspect tautulli (replace tautulli with how your container is named) and post it here after removing your TOKEN values?

@D3thRoned
Copy link

I kinda got it working now - sort of dirty.

To Explain - i'm running the Docker in a Portainer-Env. The User-IDs seems to be Problem since the Tautulli ist running with the tautilli user (default 1000).
The whole Init-Process install the requirements for root.
So the Tautulli wont have access to the installed libs.

So i just set the PUID and PGID to Root (0) to make it work.

version: '3.7'
services:
  plexanisync:
    container_name: tautulli-plexanisync
    image: 'ghcr.io/rickdb/tautulli-plexanisync:latest'
    restart: unless-stopped
    environment:
      - PUID=0
      - PGID=0

@reconman
Copy link
Collaborator

This line right here sets the python path so the root packages are included: https://github.com/RickDB/PlexAniSync/blob/master/Docker/Tautulli/Dockerfile#L23

Are you sure you're using the current latest tag and not an old one?

@D3thRoned
Copy link

Its the latest, yes.
The packages are included and installed (as root PUID 0)
But not for the User the System is running with (tautulli PUID 1000).
Thats why everything works fine by testing inside a root console.

Running a Command trying to add the requirements by Docker-Compose wont work too, since the Tautulli-User has no Home-Directory and the command is run by User Tautulli (PUID 1000)

    command: >
      bash -c "
      pip install -r /plexanisync/requirements.txt
      "

(adding an whoami to the Docker-Compose Command Line tells me User tautulli (1000))

I just checked the installed packages for the tautulli-user - getting the info everything was missing

su - tautulli -c "pip list"

Package       Version
------------- ------------
APScheduler   3.10.1
cffi          1.16.0
cryptography  41.0.7
pip           23.3.1
pycparser     2.21
pycryptodomex 3.19.0
pyOpenSSL     23.3.0
pytz          2023.3.post1
setuptools    58.1.0
six           1.16.0
tzlocal       5.2
wheel         0.42.0

and as you requested (its from a Container without my PUID Changes)

Docker Inspect
{
    "AppArmorProfile": "docker-default",
    "Args": [
        "python",
        "Tautulli.py",
        "--datadir",
        "/config"
    ],
    "Config": {
        "AttachStderr": true,
        "AttachStdin": false,
        "AttachStdout": true,
        "Cmd": [
            "python",
            "Tautulli.py",
            "--datadir",
            "/config"
        ],
        "DDSM": false,
        "Domainname": "",
        "Entrypoint": [
            "./start.sh"
        ],
        "Env": [
            "PATH=/root/.local:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=C.UTF-8",
            "GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568",
            "PYTHON_VERSION=3.9.18",
            "PYTHON_PIP_VERSION=23.0.1",
            "PYTHON_SETUPTOOLS_VERSION=58.1.0",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6",
            "TAUTULLI_DOCKER=True",
            "TZ=Europe/Berlin",
            "PYTHONPATH=/root/.local/lib/python3.9/site-packages",
            "PLEX_SECTION=Anime Serien|Anime Filme",
            "PLEX_URL=http://192.168.80.1:32400",
            "PLEX_TOKEN=<removed>",
            "ANI_USERNAME=<removed>",
            "ANI_TOKEN=<removed>"
        ],
        "ExposedPorts": {
            "8181/tcp": {}
        },
        "Healthcheck": {
            "StartPeriod": 90000000000,
            "Test": [
                "CMD-SHELL",
                "curl -ILfSs http://localhost:8181/status > /dev/null || curl -ILfkSs https://localhost:8181/status > /dev/null || exit 1"
            ]
        },
        "Hostname": "295796732a86",
        "Image": "ghcr.io/rickdb/tautulli-plexanisync:latest",
        "Labels": {
            "autoheal": "true",
            "com.docker.compose.config-hash": "fb5367dd618168e1a5ddbf0844cf378977b535a6ebe34952916f8e704eddfc02",
            "com.docker.compose.container-number": "1",
            "com.docker.compose.depends_on": "",
            "com.docker.compose.image": "sha256:449b8ed4fbb581d0171435b142441f7c5433d94bd700f556d1b532067209534b",
            "com.docker.compose.oneoff": "False",
            "com.docker.compose.project": "tautulli",
            "com.docker.compose.project.config_files": "/data/compose/68/docker-compose.yml",
            "com.docker.compose.project.working_dir": "/data/compose/68",
            "com.docker.compose.replace": "c26b0a107b549be28872215664fb507717d0fc91ff5f7d85aaff5891a74366de",
            "com.docker.compose.service": "plexanisync",
            "com.docker.compose.version": "2.20.2",
            "maintainer": "Tautulli",
            "org.opencontainers.image.created": "2024-03-09T20:49:49.909Z",
            "org.opencontainers.image.description": "Sync Plex anime library to AniList",
            "org.opencontainers.image.documentation": "https://github.com/RickDB/PlexAniSync/blob/master/Docker/Tautulli/README.md",
            "org.opencontainers.image.licenses": "GPL-3.0",
            "org.opencontainers.image.revision": "e6d47d7bf8e730ea49ab31e54e306c459e98c80e",
            "org.opencontainers.image.source": "https://github.com/RickDB/PlexAniSync",
            "org.opencontainers.image.title": "PlexAniSync",
            "org.opencontainers.image.url": "https://github.com/RickDB/PlexAniSync",
            "org.opencontainers.image.version": "1.4.0"
        },
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/config": {}
        },
        "WorkingDir": "/app"
    },
    "Created": "2024-04-12T10:46:45.9517307Z",
    "Driver": "aufs",
    "ExecIDs": [
        "4660a7d077f4a8248e4387626f8c9bc6342e802ddb52b67f8aa7c86b5792f587"
    ],
    "GraphDriver": {
        "Data": null,
        "Name": "aufs"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": [
            "/volume1/docker/Tautulli/config:/config:rw"
        ],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": null,
        "CapDrop": null,
        "Cgroup": "",
        "CgroupParent": "",
        "CgroupnsMode": "host",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": null,
        "Dns": null,
        "DnsOptions": null,
        "DnsSearch": null,
        "Env": [
            "PATH=/root/.local:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=C.UTF-8",
            "GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568",
            "PYTHON_VERSION=3.9.18",
            "PYTHON_PIP_VERSION=23.0.1",
            "PYTHON_SETUPTOOLS_VERSION=58.1.0",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6",
            "TAUTULLI_DOCKER=True",
            "TZ=Europe/Berlin",
            "PYTHONPATH=/root/.local/lib/python3.9/site-packages",
            "PLEX_SECTION=Anime Serien|Anime Filme",
            "PLEX_URL=http://192.168.80.1:32400",
            "PLEX_TOKEN=<removed>",
            "ANI_USERNAME=<removed>",
            "ANI_TOKEN=<removed>"
        ],
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "private",
        "Isolation": "",
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "db"
        },
        "MaskedPaths": [
            "/proc/asound",
            "/proc/acpi",
            "/proc/kcore",
            "/proc/keys",
            "/proc/latency_stats",
            "/proc/timer_list",
            "/proc/timer_stats",
            "/proc/sched_debug",
            "/proc/scsi",
            "/sys/firmware"
        ],
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "NanoCpus": 0,
        "NetworkMode": "tautulli_default",
        "OomKillDisable": false,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": null,
        "PortBindings": {
            "8181/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "8181"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ],
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "unless-stopped"
        },
        "Runtime": "runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": null
    },
    "HostnamePath": "/volume1/@docker/containers/295796732a86ae3e85497caa46950fe46fe626b977f63be86c9adec5542dda23/hostname",
    "HostsPath": "/volume1/@docker/containers/295796732a86ae3e85497caa46950fe46fe626b977f63be86c9adec5542dda23/hosts",
    "Id": "295796732a86ae3e85497caa46950fe46fe626b977f63be86c9adec5542dda23",
    "Image": "sha256:449b8ed4fbb581d0171435b142441f7c5433d94bd700f556d1b532067209534b",
    "LogPath": "/volume1/@docker/containers/295796732a86ae3e85497caa46950fe46fe626b977f63be86c9adec5542dda23/log.db",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/config",
            "Mode": "rw",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/volume1/docker/Tautulli/config",
            "Type": "bind"
        }
    ],
    "Name": "/tautulli-plexanisync",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "",
        "Networks": {
            "tautulli_default": {
                "Aliases": [
                    "tautulli-plexanisync",
                    "plexanisync",
                    "295796732a86"
                ],
                "DriverOpts": null,
                "EndpointID": "050ba17553d221fd11306a5505aa644f3758530198f116ffb5ad5dd57496a191",
                "Gateway": "192.168.80.1",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": null,
                "IPAddress": "192.168.80.2",
                "IPPrefixLen": 20,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "02:42:c0:a8:50:02",
                "NetworkID": "575a2b5ed3a352ddca1e133d06d6f4bdebf9dfc9d96595b24dcea444753a585b"
            }
        },
        "Ports": {
            "8181/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "8181"
                }
            ]
        },
        "SandboxID": "1682902eb2911567f8e44aa9a1b89210958f1a54b414071b6ca88a68b28ac637",
        "SandboxKey": "/var/run/docker/netns/1682902eb291",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "./start.sh",
    "Platform": "linux",
    "Portainer": {
        "ResourceControl": {
            "Id": 27,
            "ResourceId": "2_tautulli",
            "SubResourceIds": [],
            "Type": 6,
            "UserAccesses": [],
            "TeamAccesses": [],
            "Public": false,
            "AdministratorsOnly": true,
            "System": false
        }
    },
    "ProcessLabel": "",
    "ResolvConfPath": "/volume1/@docker/containers/295796732a86ae3e85497caa46950fe46fe626b977f63be86c9adec5542dda23/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "0001-01-01T00:00:00Z",
        "FinishedTs": -62135596800,
        "Health": {
            "FailingStreak": 0,
            "Log": [
                {
                    "End": "2024-04-13T15:59:37.851626636+02:00",
                    "ExitCode": 0,
                    "Output": "",
                    "Start": "2024-04-13T15:59:37.691572644+02:00"
                },
                {
                    "End": "2024-04-13T16:00:08.095829754+02:00",
                    "ExitCode": 0,
                    "Output": "",
                    "Start": "2024-04-13T16:00:07.937428342+02:00"
                },
                {
                    "End": "2024-04-13T16:00:38.302493349+02:00",
                    "ExitCode": 0,
                    "Output": "",
                    "Start": "2024-04-13T16:00:38.13643242+02:00"
                },
                {
                    "End": "2024-04-13T16:01:08.504531605+02:00",
                    "ExitCode": 0,
                    "Output": "",
                    "Start": "2024-04-13T16:01:08.368594277+02:00"
                },
                {
                    "End": "2024-04-13T16:01:38.670124302+02:00",
                    "ExitCode": 0,
                    "Output": "",
                    "Start": "2024-04-13T16:01:38.537343055+02:00"
                }
            ],
            "Status": "healthy"
        },
        "OOMKilled": false,
        "Paused": false,
        "Pid": 12299,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2024-04-12T10:46:47.668805259Z",
        "StartedTs": 1712918807,
        "Status": "running"
    }
}
´´´

</details>

@reconman
Copy link
Collaborator

You can see that the packages are installed if you run

su tautulli
pip list

instead.

Do you have PlexAniSync logs (from the Logs section of Portainer) for your error case where you're using the tautulli user?

@D3thRoned
Copy link

Your mentioned Lines gave me Hints to he Cause

User Tautulli cant access the PYTHONPATH - so it wont find the installed libs
cd "$PYTHONPATH" as tautulli giving access errors.
After giving rights to access the Folder and Files the user lists everything
(tested dirty with chmod -R 0777 "$PYTHONPATH")

root@5cb47339eba0:/app# su tautulli
$ pip list
WARNING: The directory '/home/tautulli/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Package                   Version
------------------------- ------------
APScheduler               3.10.1
attrs                     23.2.0
certifi                   2023.11.17
cffi                      1.16.0
charset-normalizer        3.3.2
coloredlogs               15.0.1
cryptography              41.0.7
distro                    1.9.0
graphql-core              3.2.3
humanfriendly             10.0
idna                      3.6
inflect                   5.6.2
[...]

reconman added a commit that referenced this issue Apr 13, 2024
@reconman
Copy link
Collaborator

This line should have made /root/.local readable by tautulli, but it doesn't seem to work on all docker versions?

RUN chmod -R a+rX /root

I've modified the Dockerfile for taututlli so the pip libraries are installed to /home/tautulli instead.

Please test the latest master tag.

@D3thRoned
Copy link

This line should have made /root/.local readable by tautulli, but it doesn't seem to work on all docker versions?

RUN chmod -R a+rX /root

I've modified the Dockerfile for taututlli so the pip libraries are installed to /home/tautulli instead.

Please test the latest master tag.

Looks good. Everything seem to work with no modification needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants