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

Container keeps rebooting #1173

Closed user4567ty closed 4 years ago

user4567ty commented 4 years ago

Hi,

Today I installed the docker-transmission-openvpn container and everything worked fine. I made some changes to my settings and deployed the container again using docker-compose. Now the container keeps rebooting giving the following error:

Using default OpenVPN gateway for provider protonvpn Setting OPENVPN credentials... adding route to local network 192.168.1.0/24 via 172.17.0.1 dev eth0 Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/protonvpn/default.ovpn Use --help for more information.

My docker-compose file: transmission-vpn: container_name: transmission-vpn image: haugene/transmission-openvpn cap_add:

Since deploying this container I'm also having connectivity issues with this server, running Ubuntu 18.04.

If anybody has a clue what the cause could be, let me know.

Thanks in advance!

pkishino commented 4 years ago

which release are you using?

ILAsoft commented 4 years ago

Had the same issue w/lastest-armhf, so switched to 2.12-armhf temporarily and working fine now...

user4567ty commented 4 years ago

I was using the latest version. Switching to an older release seems to be working. Thanks!

screwfaze commented 4 years ago

Older release not working for me anyone know of any other fix?

Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/nordvpn/default.ovpn:1: html (2.4.4)

SaltyPaws commented 4 years ago

I have the same issue running ubuntu server 20.20 with Docker version 19.03.9, build 9d988398e7 ILAsoft's recommendation worked but this is not a long term solution...

Blehhh commented 4 years ago

I am having the same issue with my OMV setup "Error opening configuration file: /etc/openvpn/protonvpn/default.ovpn" It was working fine yesterday. If someone could assist me in what they have done to get a fix would be much appreciated. I have seen mentions of rolling back but unsure on how to do that.

Bidley commented 4 years ago

Same issue here, also unsure of how to roll back with OMV5/Portainer.

Logs: https://pastebin.com/8gXNNtMJ

Portainer config: https://pastebin.com/ehZQfCcV

Bidley commented 4 years ago

I don't know if it's related, but my issue seemed to start after updating Docker via OMV. Could this cause the above problems?

Bidley commented 4 years ago

OK I have it working now - I previously had the container within a docker network - removing the network from the equation allows the container to work as normal. Trying to route it through the network causes the same error again.

I'll be honest, I set this up about a year ago on OMV4 by following a youtube video, so I don't actually know if the network is necessary any more. But either way it seems to be working perfectly now.

Blehhh commented 4 years ago

I have tried setting up two different OMV vm's in virtual box, one running the latest version of omv4 and one running 4.1.3 they both get the same error: "options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/protonvpn/default.ovpn".

pkishino commented 4 years ago

protonvpn doesnt have a default.ovpn from what it looks like so you will need to specify openvpn_config parameter

Blehhh commented 4 years ago

protonvpn doesnt have a default.ovpn from what it looks like so you will need to specify openvpn_config parameter

I am pretty sure I have done that, I set OPENVPN_CONFIG = "config certificate I downloaded from protonvpn", when I built the container through omv webgui but the logs still had the same error though.

pkishino commented 4 years ago

if you just downloaded the config it most likely will not work as it needs to be modified slightly to work with the container. I believe it is described in the documentation how

pkishino commented 4 years ago

try specifying one of the configs from the protonvpn directory here.. like nl-01.protonvpn.com.udp

Blehhh commented 4 years ago

ok I will take a look, thanks for the help.

Blehhh commented 4 years ago

I have tried that as well, but could have missed something. When setting it to nl-01.protonvpn.com.udp, I was not able to find that file in the /var/lib/docker/ directory so I tried downloading the file and then setting OPENVPN_CONFIG to that file but was still the same error.

pkishino commented 4 years ago

If you check this repo you will see the openvpn folder.. all config are in there. So just set the config sich and it will load, no need to download anything

On Wed, May 27, 2020 at 10:38 Blehhh notifications@github.com wrote:

I have tried that as well, but could have missed something. When setting it to nl-01.protonvpn.com.udp, I was not able to find that file in the /var/lib/docker/ directory so I tried downloading the file and then setting OPENVPN_CONFIG to that file but was still the same error.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/haugene/docker-transmission-openvpn/issues/1173#issuecomment-634373464, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7OFYT2IURGZFIFOQTKPYTRTRVJBANCNFSM4MXZ3J7A .

Blehhh commented 4 years ago

Sorry if I am being dense but I do not understand what you mean. To point OPENVPN_CONFIG to one of the .ovpn files I need them on my system, but I am unable to find them in my docker folders using locate, so I clone this repository, then point OPENVPN_CONFIG to a .ovpn file.... and it does not work. Supplied config /home/brook/transmission-openvpn/openvpn/protonvpn/au-09.protonvpn.com.tcp.ovpn.ovpn could not be found. I know that that file path has .ovpn twice but my config looks like this: image It also still gives the initial error: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/protonvpn/default.ovpn

pkishino commented 4 years ago

all the openvpn files here: https://github.com/haugene/docker-transmission-openvpn/tree/master/openvpn are baked into the docker image.. so please just try setting OPENVPN_CONFIG to au-09.protonvpn.com.tcp thats it, nothing more

Blehhh commented 4 years ago

Ah ok I was over-complicating things sorry, my knowledge was lacking, was not aware you could do that. Unfortunately still the same issue though.

pkishino commented 4 years ago

Can you please post run command/config and any log please?

Blehhh commented 4 years ago

@pkishino Actually just using au-09.proton.com fixed it, I went through my build doc and I had made a typo when recreating it. Thank you so much for your help and patience.