homeassistant-openvpn-client icon indicating copy to clipboard operation
homeassistant-openvpn-client copied to clipboard

Connection denied

Open BigDefax opened this issue 5 years ago • 13 comments

Hi, I've the openvpn-client addons installed on hassio 0.92.1 but when I try to configure it with a click on openvpn- icona, I've the browser (Chrome) error "Connection denied from hassio.local" . Any solution? I don't have https enabled.

BigDefax avatar May 03 '19 22:05 BigDefax

Same. I think I don't now how to configure it well. I've installed flask and uwsgi using pip install.

LiQuiD04 avatar May 03 '19 23:05 LiQuiD04

Hi there. This can have multiple issues. Can you show me the part of your configuration.yml file for the openvpn client?

You may have to check that the URL or IP adress defined in the file is correct. Furthermore, if you define a local IP Adresse, you can only access the configuration page via the local network.

I'm currently on a journey so I will check this is in more detail when I'm back.

larsklitzke avatar May 04 '19 05:05 larsklitzke

Hi, two file in attachment. Note: Home Assistant is installed on raspberry pi 3 b+ that doesn't have flask installed because required pip that required python. There isn't a "easy" addons that install OpenVpn Client on Home Assistant?

config file1

BigDefax avatar May 06 '19 21:05 BigDefax

hassio-openvpn-client2 hassio-openvpn-client1 you must install/build and start it first, than configure+upload keys (files must have name as described! ca.crt, client.crt, client.key [+ta.key] )

triblax avatar May 07 '19 06:05 triblax

sorry but the addons is on start. The problem is how can i upload the certificate if when i click on OpenVpn icona there is “access denied” error?

BigDefax avatar May 07 '19 07:05 BigDefax

did you have installed, builded and started addon?

triblax avatar May 07 '19 07:05 triblax

no, sorry.... You are right, thanks

BigDefax avatar May 07 '19 17:05 BigDefax

@triblax thanks for handling this issue :+1:

I will update the instructions in the README and include the steps to build and start the addon.

larsklitzke avatar May 14 '19 10:05 larsklitzke

Is there any tutorial how to build it and run it ? i have cloned it in addon folder, but i have same "denied" page, and i dont see OpenVPN Client in addon page PS: i use latest hassio on RPi... that means i dont have ssh connection to host system thanks PS2: i got it .... i install it, but, when i try start it ...

/openvpnclient/venv/bin/run.sh: line 4: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 7: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 10: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 13: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 16: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 19: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 22: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 25: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 33: syntax error near unexpected token `$'{\r''
/openvpnclient/venv/bin/run.sh: line 33: `function log(){
'

shajek avatar Sep 28 '19 20:09 shajek

So @larsklitzke how do I build and start the add-on? Can you please explain a bit?

xyboox avatar Mar 09 '20 21:03 xyboox

Unable to connect

Hi, I have similar problem. Firefox can’t establish a connection to the server at 192.168.xxx.xxx:8090.

Also, I cannot see OpenVPN addon under Supervisor.

MatejKovacic avatar Feb 15 '21 19:02 MatejKovacic

In fact, after some time it appeared under local addons. But I cannot install it. When I click to install, it is doing sometnihg, but nothing happens.

MatejKovacic avatar Feb 15 '21 20:02 MatejKovacic

Log says:

21-02-15 19:28:50 ERROR (MainThread) [supervisor.store] https://github.com/larsklitzke/homeassistant-openvpn-client is not a valid add-on repository
21-02-15 19:28:50 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/8af5c461/repository.json: [Errno 2] No such file or directory: '/data/addons/git/8af5c461/repository.json'
21-02-15 19:28:50 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/8af5c461/repository.json
21-02-15 19:28:50 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'auto_uart' is deprecated, use 'uart'. Please report this to the maintainer of ESPHome

MatejKovacic avatar Feb 15 '21 20:02 MatejKovacic