haugene / docker-transmission-openvpn

Docker container running Transmission torrent client with WebUI over an OpenVPN tunnel
GNU General Public License v3.0
4.09k stars 1.2k forks source link

Docker Container not running. Instantly exits. #1638

Closed PunchEnergyFTW closed 3 years ago

PunchEnergyFTW commented 3 years ago

**I have found the issue. In the config the OPENVPN_CONFIG argument "france" wasn't supported. The log showed me every possible location for windscribe. It then worked with the Proxy on top!

Is there a way to make it work without the proxy?**

**Before creating this issue I have:**
<!-- Put an X in the boxes to tick them, like this [X] -->
- [x] Searched for [similar issues](https://github.com/haugene/docker-transmission-openvpn/issues)
- [x] [Read the documentation](https://haugene.github.io/docker-transmission-openvpn/) to a reasonable degree

**Describe your request**
Hi. I wanted to create the container with a windscribe connection. 
Here's my config: 

sudo docker run --cap-add=NET_ADMIN -d \
              -e PUID=1001 \
              -e GUID=1002 \
              -v /mnt/500/open/download:/data \
              -e OPENVPN_PROVIDER=WINDSCRIBE \
              -e OPENVPN_CONFIG=france \
              -e OPENVPN_USERNAME=myusername \
              -e OPENVPN_PASSWORD=mypassword \
              -e LOCAL_NETWORK=10.164.0.2 \
              --log-driver json-file \
              --log-opt max-size=10m \
              -p 9091:9091 \
              haugene/transmission-openvpn

But somehow, the container instantly exits when i am trying to start it. 
Running the command "sudo docker start <container name>" and instantly after that "docker ps -a" shows me, that the container exited 2s ago. Every time.

What am i doing wrong? Where can i find logs? 

One interesting thing: Afaik when i run the docker command it should output the connection being established etc. But nothing happens for me. It just pulls the image, then creates the container and gives me the ID of it. -->

>sudo docker run --cap-add=NET_ADMIN -d \
>               -e PUID=1001 \
>               -e GUID=1002 \
>               -v /mnt/500/open/download:/data \
>               -e OPENVPN_PROVIDER=WINDSCRIBE \
>               -e OPENVPN_CONFIG=france \
>               -e OPENVPN_USERNAME=myusername \
>               -e OPENVPN_PASSWORD=mypassword \
>               -e LOCAL_NETWORK=10.164.0.2 \
>               --log-driver json-file \
>               --log-opt max-size=10m \
>               -p 9091:9091 \
>               haugene/transmission-openvpn
>**1aea4bd56bc2759655404fe05cee818700d89392f4dc83deff69398019edf76a**

 In the [Debug FAQ](https://haugene.github.io/docker-transmission-openvpn/debug/) i also have tested this command: 

sudo docker run --rm -it \
  -e OPENVPN_PROVIDER=PIA \
  -e OPENVPN_CONFIG=france \
  -e OPENVPN_USERNAME=donald \
  -e OPENVPN_PASSWORD=duck \
  haugene/transmission-openvpn

And this gave me an output as described in the FAQ's.

Thanks in advance!
adocampo commented 3 years ago

Try to run docker logs immediately, by starting the container and showing the logs in the same command line, you will need to name the container with the parameter --name=transmission-vpn and the starting it like this: docker start transmission-vpn ; docker logs -f transmission-vpn Then at least it will show you the output and you will have an idea what's going on.