linux-app
linux-app copied to clipboard
REGRESSION: Missing headless support
Cannot connect to Proton VPN on a headless server.
System is debian based. Installed protonvpn-cli and it doesn't work at all.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/secretstorage/__init__.py", line 47, in dbus_init
return dbus.SessionBus()
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 211, in __new__
mainloop=mainloop)
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 100, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py", line 23, in __getitem__
key
File "/usr/lib/python3/dist-packages/keyring/backends/SecretService.py", line 64, in get_password
collection = self.get_preferred_collection()
File "/usr/lib/python3/dist-packages/keyring/backends/SecretService.py", line 46, in get_preferred_collection
bus = secretstorage.dbus_init()
File "/usr/lib/python3/dist-packages/secretstorage/__init__.py", line 52, in dbus_init
e.get_dbus_message())
secretstorage.exceptions.SecretServiceNotAvailableException: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/protonvpn-cli", line 11, in <module>
load_entry_point('protonvpn-cli==3.12.0', 'console_scripts', 'protonvpn-cli')()
File "/usr/lib/python3/dist-packages/protonvpn_cli/main.py", line 21, in main
ProtonVPNCLI()
File "/usr/lib/python3/dist-packages/protonvpn_cli/cli.py", line 65, in __init__
res = getattr(self, args.command)()
File "/usr/lib/python3/dist-packages/protonvpn_cli/cli.py", line 162, in login
return self.cli_wrapper.login(args.username)
File "/usr/lib/python3/dist-packages/protonvpn_cli/cli_wrapper.py", line 63, in login
if self.protonvpn.check_session_exists():
File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/api.py", line 356, in check_session_exists
return self._env.api_session.is_valid
File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/environment.py", line 56, in api_session
self.__api_session = APISession()
File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/session/session.py", line 224, in __init__
self.__keyring_load_session()
File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/session/session.py", line 254, in __keyring_load_session
KeyringEnum.DEFAULT_KEYRING_PROTON_USER.value
File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py", line 32, in __getitem__
raise exceptions.KeyringError(e)
protonvpn_nm_lib.exceptions.KeyringError: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
This is a massive regression in the CLI from the prior version, which did not have this problem.
Proton: "The Proton VPN Linux CLI is intended for every Proton VPN service user"
Scam alert! Proton too: "[...]Doesn’t run on headless servers."
It's NOT a CLI, they use the keyring of Gnome!!!
More Information: https://github.com/ProtonVPN/linux-cli/issues/48