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] Connection Failed - cli.py #57

Closed
jallm opened this issue Dec 8, 2019 · 2 comments
Closed

[BUG] Connection Failed - cli.py #57

jallm opened this issue Dec 8, 2019 · 2 comments

Comments

@jallm
Copy link

jallm commented Dec 8, 2019

Hello,
I tried to connect on my freshly installed raspbian and couldn't use pvpn this time, like I used to do. I've already reinstalled the pvpn-ng...
Every time i try to connect now this message apears:


Traceback (most recent call last):
File "/usr/local/bin/protonvpn", line 10, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/cli.py", line 72, in main
cli()
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/cli.py", line 120, in cli
connection.dialog()
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/connection.py", line 123, in dialog
openvpn_connect(server_result, protocol_result)
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/connection.py", line 463, in openvpn_connect
disconnect(passed=True)
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/connection.py", line 339, in disconnect
manage_dns("restore")
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/connection.py", line 612, in manage_dns
oldhash = get_config_value("metadata", "resolvconf_hash")
File "/usr/local/lib/python3.7/dist-packages/protonvpn_cli/utils.py", line 113, in get_config_value
return config[group][key]
File "/usr/lib/python3.7/configparser.py", line 1251, in getitem
raise KeyError(key)
KeyError: 'resolvconf_hash'


Desktop:

  • OS: Raspbian Buster
  • Python Version: 3.7.3
  • ProtonVPN-CLI Version: 2.1.2
@jallm jallm changed the title [BUG] [BUG] Connection Failed - cli.py Dec 8, 2019
@Rafficer
Copy link
Owner

Rafficer commented Dec 8, 2019

Are you by any chance able to reproduce this consistently? If so, please share with me how!

As a temporary fix, delete the file ~/.pvpn-cli/resolvconf.bak and then reboot the pi.

@jallm
Copy link
Author

jallm commented Dec 8, 2019

Hello, Rafficer!
It happened instantly every time I tried to connect any server or tried the Purge option of configuration.
Your advice fixed the error, thanks!

@jallm jallm closed this as completed Dec 8, 2019
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