Hi
I have NAS Asustor, and try to use qbittorrent.
qBittorrent 4.3.5.r01
ASUSTOR AS6202T
ADM 3.5.7.RJ92
Linux AS6202T-829B 4.14.x #1 SMP Fri Jul 9 00:31:02 CST 2021 x86_64 GNU/Linux
I can't change values in file hosts, and qBittorrent does not work.
My task: tracker on url must work. I write URL in file hosts
Try 1.
root@AS6202T-829B:/volume1/.@root # cat /usr/local/etc/init.d/S01.sh
echo "163.172.167.207 bt.t-ru.org" >> /etc/hosts
root@AS6202T-829B:/volume1/.@plugins/etc/init.d # chmod +x /usr/local/etc/init.d/S01.sh
root@AS6202T-829B:/volume1/.@plugins/etc/init.d # ls -l
total 12
lrwxrwxrwx 1 root root 53 Jul 11 15:51 K50docker-ce -> /usr/local/AppCentral/docker-ce/CONTROL/start-stop.sh*
lrwxrwxrwx 1 root root 62 Jul 11 15:52 K70qbittorrent-docker -> /usr/local/AppCentral/qbittorrent-docker/CONTROL/start-stop.sh*
-rwxr-xr-x 1 root root 203 Jul 17 13:38 S01.sh*
lrwxrwxrwx 1 root root 53 Jul 11 15:51 S50docker-ce -> /usr/local/AppCentral/docker-ce/CONTROL/start-stop.sh*
lrwxrwxrwx 1 root root 62 Jul 11 15:52 S70qbittorrent-docker -> /usr/local/AppCentral/qbittorrent-docker/CONTROL/start-stop.sh*
lrwxrwxrwx 1 root root 25 Jul 17 13:49 rcK -> /etc/script/rcK.pluginsfs*
lrwxrwxrwx 1 root root 25 Jul 17 13:49 rcS -> /etc/script/rcS.pluginsfs*
but qBittorrent does not use the system file: /etc/hosts. (reboot NAS)
Try 2.
root@AS6202T-829B:/volume1/.@root # docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
658c3146cb82 ghcr.io/linuxserver/qbittorrent:latest "/init" 6 days ago Up 17 minutes 0.0.0.0:6881->6881/tcp, 0.0.0.0:18181->18181/tcp, 0.0.0.0:6881->6881/udp, 8080/tcp qBittorrent
root@AS6202T-829B:/volume1/.@root # cat /volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/658c3146cb825e612bff09c198505b0faa5351c92442de1db0a666618369b8de/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 658c3146cb82
root@AS6202T-829B:/volume1/.@root # docker exec -ti 658 /bin/bash
root@658c3146cb82:/# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 658c3146cb82
root@658c3146cb82:/# echo "163.172.167.207 bt.t-ru.org" >> /etc/hosts
root@658c3146cb82:/# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 658c3146cb82
163.172.167.207 bt.t-ru.org
root@658c3146cb82:/# exit
exit
root@AS6202T-829B:/volume1/.@root # echo "163.172.167.207 bt.t-ru.org" >> /volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/658c3146cb825e612bff09c198505b0faa5351c92442de1db0a666618369b8de/hosts
root@AS6202T-829B:/volume1/.@root # cat /volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/658c3146cb825e612bff09c198505b0faa5351c92442de1db0a666618369b8de/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 658c3146cb82
163.172.167.207 bt.t-ru.org
163.172.167.207 bt.t-ru.org
root@AS6202T-829B:/volume1/.@root # docker restart 658
658
root@AS6202T-829B:/volume1/.@root # docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
658c3146cb82 ghcr.io/linuxserver/qbittorrent:latest "/init" 6 days ago Up 26 seconds 0.0.0.0:6881->6881/tcp, 0.0.0.0:18181->18181/tcp, 0.0.0.0:6881->6881/udp, 8080/tcp qBittorrent
root@AS6202T-829B:/volume1/.@root # cat /volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/658c3146cb825e612bff09c198505b0faa5351c92442de1db0a666618369b8de/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 658c3146cb82
no url in file hosts for docker
Qbittorent working right on windows 10 with file C:\Windows\System32\drivers\etc\hosts
Working wrong on ADM in ASUSTOR
skipping tracker announce (unreachable)
Status Not working
Please. How do I resolve this problem?
How change file hosts for qBittorrent?
-
- Posts: 2
- youtube meble na wymiar Warszawa
- Joined: Sun Jul 18, 2021 12:36 am
How change file hosts for qBittorrent?
- Attachments
-
- not wrk.PNG (89.58 KiB) Viewed 2810 times
- Nazar78
- Posts: 2085
- Joined: Wed Jul 17, 2019 10:21 pm
- Location: Singapore
- Contact:
Re: How change file hosts for qBittorrent?
Isn't your dns working within the container? Check your resolv.conf. Why would you need to modify your hosts file even on Windows? Unless of course your ISP is blocking the host
Docker is not using the hosts file from the host it will however use it to maintain its own hosts file. You can create using --add-host 163.172.167.207:bt.t-ru.org. Use portainer to modify or from the command line e.g. below:
Docker is not using the hosts file from the host it will however use it to maintain its own hosts file. You can create using --add-host 163.172.167.207:bt.t-ru.org. Use portainer to modify or from the command line e.g. below:
Code: Select all
docker rm -f qBittorrent
docker create -i -t --name=qBittorrent \
-p 18181:18181 \
-p 6881:6881 \
-p 6881:6881/udp \
-e PUID=999 -e PGID=999 \
-e WEBUI_PORT=18181 \
-v /etc/localtime:/etc/localtime:ro \
-v /volume1/Docker/qBittorrent/config:/config:rw \
-v /volume1/Download:/downloads:rw \
--restart unless-stopped \
ghcr.io/linuxserver/qbittorrent:latest \
--add-host 163.172.167.207:bt.t-ru.org
docker start qBittorrent
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
-
- Posts: 2
- Joined: Sun Jul 18, 2021 12:36 am
Re: How change file hosts for qBittorrent?
Thank you.
- root@AS6202T-829B:/volume1/.@root # docker rm -f qBittorrent
qBittorrent
root@AS6202T-829B:/volume1/.@root # docker create -i -t --name=qBittorrent --add-host bt.t-ru.org:163.172.167.207 --add-host bt2.t-ru.org:163.172.167.207 --add-host bt3.t-ru.org:163.172.167.207 --add-host bt4.t-ru.org:163.172.167.207 -p 18181:18181 -p 6881:6881 -p 6881:6881 /udp -e PUID=999 -e PGID=999 -e WEBUI_PORT=18181 -v /etc/localtime:/etc/localtime:ro -v /volume1/Docker/qBittorrent/config:/config:rw -v /volume1/Download:/downloads:rw --restart unless-stopped ghcr.io/linuxserver/qbittorrent:latest
95537afc5b29a57731f76f75a19feb372d6bd07a61929319218799ff4426147a
root@AS6202T-829B:/volume1/.@root #
root@AS6202T-829B:/volume1/.@root # docker start 955
955
root@AS6202T-829B:/volume1/.@root #