linuxserver / docker-qbittorrent

GNU General Public License v3.0
1.06k stars 155 forks source link

[BUG] WebUI restarting after img update #313

Closed Bgabor997 closed 3 months ago

Bgabor997 commented 5 months ago

Is there an existing issue for this?

Current Behavior

Hello i just updated qbittorrent to the latest version (4.6.5) and my qbittorrent is unreachable atm. In the browser i get EMPTY_RESPONSE, and in the logs i see something like webui is restarting every time i open the site in a browser.

As i can see it somehow restarts when i wanna open the webui in a broswser.

Kinda out of ideas

Expected Behavior

Works like a dream with 4.5.0

Steps To Reproduce

Start the docker compose above.

Environment

- OS:Ubuntu 22
- How docker service was installed: distro' packagemanager

CPU architecture

x86-64

Docker creation

version: "3.9"
services:
  qbittorrent:
    container_name: qBittorrent
    image: lscr.io/linuxserver/qbittorrent
    healthcheck:
     test: curl -f http://localhost:8082/ || exit 1
    restart: on-failure:5
    ports:
      - 8082:8082
    volumes:
      - /volume1/docker/qbittorrent3:/config:rw
    environment:
     WEBUI_PORT: 8082
     PUID: 1000
     PGID: 1000
     TZ: Europe/Budapest

Container logs

2024-06-24T08:51:19.307914966Z [migrations] started
2024-06-24T08:51:19.307957935Z [migrations] no migrations found
2024-06-24T08:51:19.389775260Z ───────────────────────────────────────
2024-06-24T08:51:19.389834273Z 
2024-06-24T08:51:19.389861655Z       ██╗     ███████╗██╗ ██████╗
2024-06-24T08:51:19.389884942Z       ██║     ██╔════╝██║██╔═══██╗
2024-06-24T08:51:19.389908218Z       ██║     ███████╗██║██║   ██║
2024-06-24T08:51:19.389938696Z       ██║     ╚════██║██║██║   ██║
2024-06-24T08:51:19.389957245Z       ███████╗███████║██║╚██████╔╝
2024-06-24T08:51:19.389987670Z       ╚══════╝╚══════╝╚═╝ ╚═════╝
2024-06-24T08:51:19.390017152Z 
2024-06-24T08:51:19.390043871Z    Brought to you by linuxserver.io
2024-06-24T08:51:19.390060135Z ───────────────────────────────────────
2024-06-24T08:51:19.391802159Z 
2024-06-24T08:51:19.391850795Z To support LSIO projects visit:
2024-06-24T08:51:19.391869846Z https://www.linuxserver.io/donate/
2024-06-24T08:51:19.391885706Z 
2024-06-24T08:51:19.391902259Z ───────────────────────────────────────
2024-06-24T08:51:19.391920285Z GID/UID
2024-06-24T08:51:19.391935543Z ───────────────────────────────────────
2024-06-24T08:51:19.417611458Z 
2024-06-24T08:51:19.417657429Z User UID:    1000
2024-06-24T08:51:19.417676387Z User GID:    1000
2024-06-24T08:51:19.417692276Z ───────────────────────────────────────
2024-06-24T08:51:19.428032074Z Linuxserver.io version: 4.6.5-r0-ls336
2024-06-24T08:51:19.429389307Z Build-date: 2024-06-23T06:52:30+00:00
2024-06-24T08:51:19.429427816Z ───────────────────────────────────────
2024-06-24T08:51:19.429484433Z     
2024-06-24T08:51:19.593975005Z [custom-init] No custom files found, skipping...
2024-06-24T08:51:19.635620366Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T08:51:19.770766263Z 
2024-06-24T08:51:19.770781054Z ******** Information ********
2024-06-24T08:51:19.770784911Z To control qBittorrent, access the WebUI at: http://localhost:8082
2024-06-24T08:51:19.770788320Z 
2024-06-24T08:51:19.770791456Z The WebUI administrator username is: admin
2024-06-24T08:51:19.770794700Z The WebUI administrator password was not set. A temporary password is provided for this session: bt35Q9u9p
2024-06-24T08:51:19.770797899Z You should set your own password in program preferences.
2024-06-24T08:51:20.626729590Z Connection to localhost (::1) 8082 port [tcp/*] succeeded!
2024-06-24T08:51:20.647059096Z [ls.io-init] done.
2024-06-24T08:51:49.461220215Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T08:51:49.595907024Z 
2024-06-24T08:51:49.595924571Z ******** Information ********
2024-06-24T08:51:49.595928534Z To control qBittorrent, access the WebUI at: http://localhost:8082
2024-06-24T08:51:49.595931905Z 
2024-06-24T08:51:49.595935404Z The WebUI administrator username is: admin
2024-06-24T08:51:49.595938571Z The WebUI administrator password was not set. A temporary password is provided for this session: NmYZcrXBV
2024-06-24T08:51:49.595941856Z You should set your own password in program preferences.
2024-06-24T08:51:50.457878252Z Connection to localhost (::1) 8082 port [tcp/*] succeeded!
2024-06-24T08:52:07.727067744Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T08:52:07.858618844Z 
2024-06-24T08:52:07.858633501Z ******** Information ********
2024-06-24T08:52:07.858637504Z To control qBittorrent, access the WebUI at: http://localhost:8082
2024-06-24T08:52:07.858640854Z 
2024-06-24T08:52:07.858643967Z The WebUI administrator username is: admin
2024-06-24T08:52:07.858647135Z The WebUI administrator password was not set. A temporary password is provided for this session: 48YHmpgX7
2024-06-24T08:52:07.858660211Z You should set your own password in program preferences.
2024-06-24T08:52:08.718067194Z Connection to localhost (::1) 8082 port [tcp/*] succeeded!
2024-06-24T08:52:09.776844756Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T08:52:09.915276806Z 
2024-06-24T08:52:09.915293717Z ******** Information ********
2024-06-24T08:52:09.915297964Z To control qBittorrent, access the WebUI at: http://localhost:8082
2024-06-24T08:52:09.915301266Z 
2024-06-24T08:52:09.915304412Z The WebUI administrator username is: admin
2024-06-24T08:52:09.915307862Z The WebUI administrator password was not set. A temporary password is provided for this session: 3xEXeEPT6
2024-06-24T08:52:09.915311126Z You should set your own password in program preferences.
2024-06-24T08:52:10.767152929Z Connection to localhost (::1) 8082 port [tcp/*] succeeded!
2024-06-24T08:52:13.972530115Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T08:52:14.110005740Z 
2024-06-24T08:52:14.110023950Z ******** Information ********
2024-06-24T08:52:14.110028180Z To control qBittorrent, access the WebUI at: http://localhost:8082
2024-06-24T08:52:14.110031849Z 
2024-06-24T08:52:14.110035071Z The WebUI administrator username is: admin
2024-06-24T08:52:14.110038213Z The WebUI administrator password was not set. A temporary password is provided for this session: h5gS3p8mY
2024-06-24T08:52:14.110041447Z You should set your own password in program preferences.
2024-06-24T08:52:14.963181439Z Connection to localhost (::1) 8082 port [tcp/*] succeeded!
2024-06-24T08:52:19.819903968Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T08:52:19.963586235Z 
2024-06-24T08:52:19.963602388Z ******** Information ********
2024-06-24T08:52:19.963606292Z To control qBittorrent, access the WebUI at: http://localhost:8082
2024-06-24T08:52:19.963609590Z 
2024-06-24T08:52:19.963612687Z The WebUI administrator username is: admin
2024-06-24T08:52:19.963615849Z The WebUI administrator password was not set. A temporary password is provided for this session: ZhEsWb2Py
2024-06-24T08:52:19.963619038Z You should set your own password in program preferences.
2024-06-24T08:52:20.816255480Z Connection to localhost (::1) 8082 port [tcp/*] succeeded!
github-actions[bot] commented 5 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 5 months ago

Cleared browser cache? Also does this happen if you try with a clean config?

Bgabor997 commented 5 months ago

yes, after browser cache and different browser, also different ports

this is a clean config

j0nnymoe commented 5 months ago

Remove your heath check line.

Bgabor997 commented 5 months ago

its the same

version: "3.9"
services:
  qbittorrentbu:
    container_name: qbit_backup
    image: lscr.io/linuxserver/qbittorrent:latest
    network_mode:  bridge
    restart: on-failure:5
    ports:
      - 8873:8873
      - 6883:6881
    volumes:
      - /volume1/docker/qbittorrent3:/config:rw
    environment:
     WEBUI_PORT: 8873
     PUID: 1000
     PGID: 1000
     TZ: Europe/Budapest

logs:

2024-06-24T10:45:09.583727584Z [migrations] started
2024-06-24T10:45:09.583760618Z [migrations] no migrations found
2024-06-24T10:45:09.643081735Z ───────────────────────────────────────
2024-06-24T10:45:09.643104154Z 
2024-06-24T10:45:09.643110335Z       ██╗     ███████╗██╗ ██████╗
2024-06-24T10:45:09.643113987Z       ██║     ██╔════╝██║██╔═══██╗
2024-06-24T10:45:09.643119255Z       ██║     ███████╗██║██║   ██║
2024-06-24T10:45:09.643125490Z       ██║     ╚════██║██║██║   ██║
2024-06-24T10:45:09.643129324Z       ███████╗███████║██║╚██████╔╝
2024-06-24T10:45:09.643132652Z       ╚══════╝╚══════╝╚═╝ ╚═════╝
2024-06-24T10:45:09.643135833Z 
2024-06-24T10:45:09.643138954Z    Brought to you by linuxserver.io
2024-06-24T10:45:09.643142050Z ───────────────────────────────────────
2024-06-24T10:45:09.643547966Z 
2024-06-24T10:45:09.643558094Z To support LSIO projects visit:
2024-06-24T10:45:09.643562130Z https://www.linuxserver.io/donate/
2024-06-24T10:45:09.643565400Z 
2024-06-24T10:45:09.643568532Z ───────────────────────────────────────
2024-06-24T10:45:09.643572241Z GID/UID
2024-06-24T10:45:09.643575607Z ───────────────────────────────────────
2024-06-24T10:45:09.649062737Z 
2024-06-24T10:45:09.649078767Z User UID:    1000
2024-06-24T10:45:09.649082583Z User GID:    1000
2024-06-24T10:45:09.649087168Z ───────────────────────────────────────
2024-06-24T10:45:09.651276034Z Linuxserver.io version: 4.6.5-r0-ls336
2024-06-24T10:45:09.651594803Z Build-date: 2024-06-23T06:52:30+00:00
2024-06-24T10:45:09.651603724Z ───────────────────────────────────────
2024-06-24T10:45:09.651617977Z     
2024-06-24T10:45:09.712341170Z [custom-init] No custom files found, skipping...
2024-06-24T10:45:09.746981200Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T10:45:09.879015641Z 
2024-06-24T10:45:09.879030712Z ******** Information ********
2024-06-24T10:45:09.879034672Z To control qBittorrent, access the WebUI at: http://localhost:8873
2024-06-24T10:45:09.879038099Z 
2024-06-24T10:45:09.879041215Z The WebUI administrator username is: admin
2024-06-24T10:45:09.879044374Z The WebUI administrator password was not set. A temporary password is provided for this session: FQ59yWPaC
2024-06-24T10:45:09.879047728Z You should set your own password in program preferences.
2024-06-24T10:45:10.741759364Z Connection to localhost (::1) 8873 port [tcp/*] succeeded!
2024-06-24T10:45:10.757355976Z [ls.io-init] done.
2024-06-24T10:45:27.867455816Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T10:45:28.001832432Z 
2024-06-24T10:45:28.001845521Z ******** Information ********
2024-06-24T10:45:28.001849580Z To control qBittorrent, access the WebUI at: http://localhost:8873
2024-06-24T10:45:28.001853226Z 
2024-06-24T10:45:28.001856439Z The WebUI administrator username is: admin
2024-06-24T10:45:28.001859603Z The WebUI administrator password was not set. A temporary password is provided for this session: vFsnkGsBC
2024-06-24T10:45:28.001862812Z You should set your own password in program preferences.
2024-06-24T10:45:28.864275115Z Connection to localhost (::1) 8873 port [tcp/*] succeeded!
2024-06-24T10:45:29.924788194Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T10:45:30.055555968Z 
2024-06-24T10:45:30.055570837Z ******** Information ********
2024-06-24T10:45:30.055574648Z To control qBittorrent, access the WebUI at: http://localhost:8873
2024-06-24T10:45:30.055577827Z 
2024-06-24T10:45:30.055581026Z The WebUI administrator username is: admin
2024-06-24T10:45:30.055584235Z The WebUI administrator password was not set. A temporary password is provided for this session: CJFtfbpMZ
2024-06-24T10:45:30.055600030Z You should set your own password in program preferences.
2024-06-24T10:45:31.190424649Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T10:45:31.321417332Z 
2024-06-24T10:45:31.321433096Z ******** Information ********
2024-06-24T10:45:31.321437021Z To control qBittorrent, access the WebUI at: http://localhost:8873
2024-06-24T10:45:31.321440287Z 
2024-06-24T10:45:31.321443446Z The WebUI administrator username is: admin
2024-06-24T10:45:31.321446630Z The WebUI administrator password was not set. A temporary password is provided for this session: MBY3n8Q4P
2024-06-24T10:45:31.321449922Z You should set your own password in program preferences.
2024-06-24T10:45:32.187094574Z Connection to localhost (::1) 8873 port [tcp/*] succeeded!
2024-06-24T10:45:35.321559815Z WebUI will be started shortly after internal preparations. Please wait...
2024-06-24T10:45:35.454839986Z 
2024-06-24T10:45:35.454856006Z ******** Information ********
2024-06-24T10:45:35.454860002Z To control qBittorrent, access the WebUI at: http://localhost:8873
2024-06-24T10:45:35.454863308Z 
2024-06-24T10:45:35.454866612Z The WebUI administrator username is: admin
2024-06-24T10:45:35.454869854Z The WebUI administrator password was not set. A temporary password is provided for this session: c2UZYyS4m
2024-06-24T10:45:35.454873332Z You should set your own password in program preferences.
j0nnymoe commented 5 months ago

That shouldn't be restarting, I think your healthcheck / restart on failure is causing the problem

Bgabor997 commented 5 months ago

i removed the healthcheck and the restart policy too, its the same

Bgabor997 commented 5 months ago

not sure if it helps, if i clear cache, i can open it once, but then i get the same "EMPTY_RESPONSE"

j0nnymoe commented 5 months ago

Could you try with a incognito browser? Wondering if you have an extension causing a problem

Bgabor997 commented 5 months ago

tried it, i can open it once then if i refresh i get "EMPTY RESPONSE" again, same with different browser, with 0 extension

Bgabor997 commented 5 months ago
this is the compose what works
services:
  qbittorrent:
    container_name: qbittorrent
    image: lscr.io/linuxserver/qbittorrent:4.5.0
    healthcheck:
      test: curl -f http://localhost:8080/ || exit 1
    restart: always
    ports:
      - 8080:8080
      - 6882:6881
    network_mode: bridge
thespad commented 5 months ago

You need to check your qbittorrent logs in the /config mount, something is causing the service to crash and restart over and over. Probably corrupt resume data, but it could be anything.

Bgabor997 commented 5 months ago

(I) 2024-06-24T14:09:36 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/6881"
(I) 2024-06-24T14:09:36 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/6881"
(I) 2024-06-24T14:09:36 - Successfully listening on IP. IP: "172.17.0.6". Port: "TCP/6881"
(I) 2024-06-24T14:09:36 - Successfully listening on IP. IP: "172.17.0.6". Port: "UTP/6881"
(I) 2024-06-24T14:09:36 - Successfully listening on IP. IP: "::1". Port: "TCP/6881"
(I) 2024-06-24T14:09:36 - Successfully listening on IP. IP: "::1". Port: "UTP/6881"
(I) 2024-06-24T14:09:36 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jun 1 02:35:40 2024.
(N) 2024-06-24T14:09:36 - Using built-in WebUI.
(W) 2024-06-24T14:09:36 - Couldn't load WebUI translation for selected locale (C).
(N) 2024-06-24T14:09:36 - WebUI: Now listening on IP: *, port: 8080
(I) 2024-06-24T14:09:36 - Detected external IP. IP: "5.187.254.130"
(N) 2024-06-24T14:09:37 - qBittorrent v4.6.5 started
(N) 2024-06-24T14:09:37 - Using config directory: /config/qBittorrent
(N) 2024-06-24T14:09:37 - Trying to listen on the following list of IP addresses: "0.0.0.0:6881,[::]:6881"
(I) 2024-06-24T14:09:38 - Peer ID: "-qB4650-"
(I) 2024-06-24T14:09:38 - HTTP User-Agent: "qBittorrent/4.6.5"
(I) 2024-06-24T14:09:38 - Distributed Hash Table (DHT) support: ON
(I) 2024-06-24T14:09:38 - Local Peer Discovery support: ON
(I) 2024-06-24T14:09:38 - Peer Exchange (PeX) support: ON
(I) 2024-06-24T14:09:38 - Anonymous mode: OFF
(I) 2024-06-24T14:09:38 - Encryption support: ON
(I) 2024-06-24T14:09:38 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/6881"
(I) 2024-06-24T14:09:38 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/6881"
(I) 2024-06-24T14:09:38 - Successfully listening on IP. IP: "172.17.0.6". Port: "TCP/6881"
(I) 2024-06-24T14:09:38 - Successfully listening on IP. IP: "172.17.0.6". Port: "UTP/6881"
(I) 2024-06-24T14:09:38 - Successfully listening on IP. IP: "::1". Port: "TCP/6881"
(I) 2024-06-24T14:09:38 - Successfully listening on IP. IP: "::1". Port: "UTP/6881"
(I) 2024-06-24T14:09:38 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jun 1 02:35:40 2024.
(N) 2024-06-24T14:09:38 - Using built-in WebUI.
(W) 2024-06-24T14:09:38 - Couldn't load WebUI translation for selected locale (C).
(N) 2024-06-24T14:09:38 - WebUI: Now listening on IP: *, port: 8080
(I) 2024-06-24T14:09:38 - Detected external IP. IP: "5.187.254.130"
(N) 2024-06-24T14:11:40 - qBittorrent v4.6.5 started
(N) 2024-06-24T14:11:40 - Using config directory: /config/qBittorrent
(N) 2024-06-24T14:11:40 - Trying to listen on the following list of IP addresses: "0.0.0.0:6881,[::]:6881"
(I) 2024-06-24T14:11:40 - Peer ID: "-qB4650-"
(I) 2024-06-24T14:11:40 - HTTP User-Agent: "qBittorrent/4.6.5"
(I) 2024-06-24T14:11:40 - Distributed Hash Table (DHT) support: ON
(I) 2024-06-24T14:11:40 - Local Peer Discovery support: ON
(I) 2024-06-24T14:11:40 - Peer Exchange (PeX) support: ON
(I) 2024-06-24T14:11:40 - Anonymous mode: OFF
(I) 2024-06-24T14:11:40 - Encryption support: ON
(I) 2024-06-24T14:11:40 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/6881"
(I) 2024-06-24T14:11:40 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/6881"
(I) 2024-06-24T14:11:40 - Successfully listening on IP. IP: "172.17.0.6". Port: "TCP/6881"
(I) 2024-06-24T14:11:40 - Successfully listening on IP. IP: "172.17.0.6". Port: "UTP/6881"
(I) 2024-06-24T14:11:40 - Successfully listening on IP. IP: "::1". Port: "TCP/6881"
(I) 2024-06-24T14:11:40 - Successfully listening on IP. IP: "::1". Port: "UTP/6881"
(I) 2024-06-24T14:11:40 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jun 1 02:35:40 2024.
(N) 2024-06-24T14:11:40 - Using built-in WebUI.
(W) 2024-06-24T14:11:40 - Couldn't load WebUI translation for selected locale (C).
(N) 2024-06-24T14:11:40 - WebUI: Now listening on IP: *, port: 8080
(I) 2024-06-24T14:11:40 - Detected external IP. IP: "5.187.254.130"
thespad commented 5 months ago

No idea then. Something is causing the service to die and be restarted and qbittorrent doesn't even seem to be aware it's happening. You may need to raise it with the upstream project as I've been running 4.6.5 for some time without any problem, which suggests an environmental issue.

Bgabor997 commented 5 months ago

I can give you some fresh news, tried a few versions, and everythong works below 4.6.3, when i try 4.6.3 i get the empty response message

Bgabor997 commented 5 months ago

to be more precise lscr.io/linuxserver/qbittorrent:4.6.3-r0-ls313 is the last version working, ls314 results to the empty response, the anoying part is, as i can see there was only dependency updates in that version, any idea about this?

Bierdusche commented 4 months ago

Having the same problem. With Chrome I can login without any problems, Firefox just shows me the login page again after logging in.

j0nnymoe commented 4 months ago

You say you're having the same problem yet proceed to describe a different problem. If one browser is working fine and the other not, it's an issue with the browser, not container (Unless qbittorent has introduced a bug which you'd need to look on their github if there are any reports of this.)

Bierdusche commented 4 months ago

You say you're having the same problem yet proceed to describe a different problem. If one browser is working fine and the other not, it's an issue with the browser, not container (Unless qbittorent has introduced a bug which you'd need to look on their github if there are any reports of this.)

true

Bgabor997 commented 4 months ago

My problem is solved, I updated the OS on the host machine from Ubuntu 22 to 24 and everything works perfectly now, still no idea what caused it 😅

LinuxServer-CI commented 3 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.