wernight / docker-qbittorrent

Containerized qBittorrent NOX (i.e., headless)
https://registry.hub.docker.com/u/wernight/qbittorrent/
MIT License
48 stars 35 forks source link

Keeps restarting #10

Open rackey12 opened 7 years ago

rackey12 commented 7 years ago

hi i am new to docker and trying to learn and setup things that would be useful for me running a ubuntu server.

setup: - virtual box with ubuntu server running on a host ubuntu desktop machine created your docker image with the following command

docker run --restart=always -d --name qbittorrent -p 8080:8080 -p 6881:6881/tcp -p 6881:6881/udp -v /docker/containers/qbittorrent/config:/config -v /docker/containers/qbittorrent/torrents:/torrents -v /docker/downloads/completed:/downloads wernight/qbittorrent

when i run Docker ps in the command field it shows "dumb-init /entryp..."

wernight commented 7 years ago

I don't see which part is your issue here.

lukee910 commented 7 years ago

I encountered similar behaviour, the container is constantly on status restart. It never binds ports or creates config-files, even after manually copy-pasting the qBittorrent.conf this behaviour doesn't change. The issue is that it can't be reached via WebUI (or Sonarr in my case).

[root@localhost ~]# docker ps
CONTAINER ID        IMAGE                  COMMAND                  CREATED              STATUS                          PORTS                                                                      NAMES
765eceeb5ba7        wernight/qbittorrent   "dumb-init /entryp..."   About a minute ago   Restarting (1) 50 seconds ago                                                                              anime_qbit_1
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE                  COMMAND                  CREATED              STATUS                        PORTS                                                                      NAMES
765eceeb5ba7        wernight/qbittorrent   "dumb-init /entryp..."   About a minute ago   Restarting (1) 1 second ago                                                                              anime_qbit_1
wernight commented 7 years ago

Docker shouldn't restart the container unless the process dies. This is how Docker works. Network should have nothing to do with that (unless you've another tool on top).

Are you running Windows Bash? (both of you)

rackey12 commented 7 years ago

i found that issue was that i did not give the folders the correct rights of 520 has is in wernight instructions

i am using terminal but new issue is that when i go to the WebUI and upload a torrent file it will start downloading and then work its way down to 0kbs upload and download and will not start up again unless i stop and start the torrent down load and then the same will happen again

wernight commented 7 years ago

That 0kbs means usually that the directory isn't writable by qbt user. It runs as UID 520

wernight commented 7 years ago

Note that you need to give write permission. I think the startup script could perform a check

basmith7 commented 7 years ago

i think this is the same thing as https://github.com/wernight/docker-qbittorrent/issues/4

try this

docker ps
docker logs <container id>

do you see a bunch of

cp: can't create '/config/qBittorrent.conf': Permission denied

I am having this problem too. I tried everything in the previous issue but nothing is working

rackey12 commented 7 years ago

hi Brian

my issue was that i had to give the folder the correct permissions for the qbittorrent user if i remember the user ID was 51

On 10 June 2017 at 12:06, Brian Smith notifications@github.com wrote:

i think this is the same thing as #4 https://github.com/wernight/docker-qbittorrent/issues/4

try this

docker ps docker logs

do you see a bunch of

cp: can't create '/config/qBittorrent.conf': Permission denied

I am having this problem too. I tried everything in the previous issue but nothing is working

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wernight/docker-qbittorrent/issues/10#issuecomment-307558491, or mute the thread https://github.com/notifications/unsubscribe-auth/AbYDtpOjHP-XFiYvBtGX26j7uS0YvzTsks5sCni0gaJpZM4NbA9a .

-- Rackey Singh hope you have a nice day