linuxserver / docker-jackett

GNU General Public License v3.0
395 stars 95 forks source link

[BUG] Jackett WebGUI Portainer Issue #152

Closed jcarroll53 closed 5 hours ago

jcarroll53 commented 3 months ago

Is there an existing issue for this?

Current Behavior

When I use the "LinuxServer.io" Jackett docker compose example inside Portainer and use the PUID and PGID of 1000, the WebUI is not accessible and the container will not load. The only way I can get the container to load and the WebUI to work is if I set the PUID and PGID to 0 (root). When I set it back to 1000 and inspect the logs, the container won't even finish loading or pulling the image. If I switch it back to 0, it loads everything perfectly fine.

I have also created a user called "docker" that is used throughout the network for various containers with sudo privileges. I matched the PUID and PGID for that user and tried that and still does not work.

Expected Behavior

Jackett stack should fully load if using PGID/PUID of 1000.

Steps To Reproduce

  1. Fresh install of Ubuntu 22.04
  2. Install Docker Engine
  3. Create Portainer docker-compose.yaml
  4. Add LinuxServer.io jackett example to the stack deployment section.
  5. Try switching PUID/PGID from 1000 to 0 and the container will fully load and allow WebUI to work.

Environment

- OS: Ubuntu 22.04
- How docker service was installed: Installed via Portainer using the "stack" deployment.

CPU architecture

x86-64

Docker creation

services:
  jackett:
    image: lscr.io/linuxserver/jackett:latest
    container_name: jackett
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /dockerpods/jackett/data:/config
      - /dockerpods/jackett/blackhole:/downloads
    ports:
      - 9117:9117
    restart: unless-stopped

Container logs

This is when I run it with PUID/PGID as 1000:

[migrations] started
[migrations] no migrations found
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: v0.22.281-ls455
Build-date: 2024-07-06T06:42:02+00:00
───────────────────────────────────────

----------------------------------------------------------------
This is when I run it with PUID/PGID as 0:

[migrations] started
[migrations] no migrations found
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    0
User GID:    0
───────────────────────────────────────
Linuxserver.io version: v0.22.281-ls455
Build-date: 2024-07-06T06:42:02+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
07-06 16:39:31 Info Starting Jackett v0.22.281
07-06 16:39:32 Info Environment version: 8.0.6 (/app/Jackett/)
07-06 16:39:32 Info OS version: Unix 5.15.0.113 (64bit OS) (64bit process)
07-06 16:39:32 Info Jackett variant: CoreLinuxMuslAmdx64
07-06 16:39:32 Info File /etc/issue: Welcome to Alpine Linux 3.20
07-06 16:39:32 Info Running in Docker: Yes (image build: v0.22.281-ls455)
07-06 16:39:32 Info ThreadPool MaxThreads: 32767 workerThreads, 1000 completionPortThreads
07-06 16:39:32 Info App config/log directory: /config/Jackett
07-06 16:39:32 Info Using proxy: Disabled
07-06 16:39:32 Info Using FlareSolverr: No
07-06 16:39:32 Error Jackett is running with root privileges. You should run Jackett as an unprivileged user.
07-06 16:39:32 Info Using HTTP Client: HttpWebClient2
07-06 16:39:32 Info Loading Native indexers ...
07-06 16:39:32 Info Loaded 72 Native indexers.
07-06 16:39:32 Info Loading Cardigann indexers from: /config/cardigann/definitions/, /etc/xdg/cardigan/definitions/, /app/Jackett/Definitions
07-06 16:39:35 Info Loaded 544 Cardigann indexers.
07-06 16:39:35 Info Loaded 616 indexers in total
07-06 16:39:35 Info Adding aggregate indexer ('all' indexer) ...
07-06 16:39:35 Info Adding filter indexer ('type:public' indexer) ...
07-06 16:39:35 Info Adding filter indexer ('type:private' indexer) ...
07-06 16:39:35 Info Adding filter indexer ('type:semi-public' indexer) ...
07-06 16:39:35 Info Jackett startup finished in 4.352 s
Hosting environment: Production
Content root path: /app/Jackett/Content
Now listening on: http://[::]:9117
Application started. Press Ctrl+C to shut down.
Connection to localhost (::1) 9117 port [tcp/*] succeeded!
[ls.io-init] done.
github-actions[bot] commented 3 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 3 months ago

The container works fine according to our smoke tests: https://ci-tests.linuxserver.io/linuxserver/jackett/latest/index.html

Seems like to potentially might be permissions issues but you'd have to test with true compose. We do not support nor recommend portainer for deployment of our containers. https://docs.linuxserver.io/misc/support-policy/

jcarroll53 commented 3 months ago

Thanks! I'll double check and will report back if I find anything.

LinuxServer-CI commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.