Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Auto-connect not working #36

Closed
pszucs opened this issue Nov 21, 2019 · 2 comments
Closed

[BUG] Auto-connect not working #36

pszucs opened this issue Nov 21, 2019 · 2 comments

Comments

@pszucs
Copy link

pszucs commented Nov 21, 2019

Describe the bug
I followed the instructions to set up auto-connecting on boot but it doesn't work.

Manually connecting to the server works.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the steps above and set up auto-connect on boot
  2. Restart computer
  3. Check IP address

Expected behavior
I was expecting the client to auto-connect to the provided server, but it didn't, I've got the IP from my ISP instead of the VPN server's IP.

Error Messages/Program Output/Log Messages (~/.pvpn-cli/pvpn-cli.log)

Output of the relevant section of ~/.pvpn-cli/pvpn-cli.log

2019-11-21 19:44:20,359 — protonvpn-cli — DEBUG — cli:84 — ###########################
2019-11-21 19:44:20,360 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ###
2019-11-21 19:44:20,360 — protonvpn-cli — DEBUG — cli:86 — ###########################
2019-11-21 19:44:20,361 — protonvpn-cli — DEBUG — cli:87 — ['/usr/local/bin/protonvpn', 'connect', 'UK#6', '-p', 'UDP']
2019-11-21 19:44:20,361 — protonvpn-cli — DEBUG — cli:88 — Arguments
{'--cc': None,
'--fastest': False,
'--help': False,
'--p2p': False,
'--random': False,
'--sc': False,
'--tor': False,
'--version': False,
'-p': 'UDP',
'': 'UK#6',
'c': False,
'configure': False,
'connect': True,
'd': False,
'disconnect': False,
'examples': False,
'init': False,
'r': False,
'reconnect': False,
'refresh': False,
's': False,
'status': False}
2019-11-21 19:44:20,361 — protonvpn-cli — DEBUG — cli:89 — USER: peter
2019-11-21 19:44:20,361 — protonvpn-cli — DEBUG — cli:90 — CONFIG_DIR: /home/peter/.pvpn-cli
2019-11-21 19:44:20,380 — protonvpn-cli — DEBUG — direct:226 — Starting direct connect with UK#6
2019-11-21 19:44:20,381 — protonvpn-cli — DEBUG — call_api:30 — Initiating API Call: https://api.protonmail.ch/vpn/logicals
2019-11-21 19:44:20,386 — protonvpn-cli — DEBUG — call_api:40 — Error connecting to ProtonMail API

Desktop (please complete the following information):

  • OS: elementary OS
  • Python Version: 3.6.8
  • ProtonVPN-CLI Version: 2.1.1
@Rafficer
Copy link
Owner

This is basically a duplicate of the issues in #10.

The problem is that the program fires before you have a working internet connection. I plan to add a "waiting for connection" feature this weekend and it should be resolved with the next release.

I'll close this issue, please refer to #10.

@pszucs
Copy link
Author

pszucs commented Nov 21, 2019

Awesome, thanks (sorry for the duplicate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants