ProtonVPN / linux-cli

Official ProtonVPN Linux app (CLI)
https://protonvpn.com/download-linux
GNU General Public License v3.0
332 stars 42 forks source link

Unable to generate logs: can't compare offset-naive and offset-aware datetimes #94

Open JRDetwiler opened 1 year ago

JRDetwiler commented 1 year ago

The CLI client has the following error for me on Arch Linux:

$ protonvpn-cli --get-logs

Generating logs...

Unable to generate logs: can't compare offset-naive and offset-aware datetimes

In the resulting protonvpn-cli.log, there's:

2023-02-20 16:22:10,026 — cli.py — INFO — __init__:17 — 
-------------------------------------------------

----------- Initialized protonvpn-cli   -----------

-------------------------------------------------
2023-02-20 16:22:10,026 — cli.py — INFO — __init__:29 — Proton VPN CLI v3.13.0 (protonvpn-nm-lib v3.14.0; proton-client v0.7.1)
2023-02-20 16:22:10,031 — cli_wrapper.py — ERROR — get_logs:842 — can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/protonvpn_cli/cli_wrapper.py", line 840, in get_logs
    bug_report.generate_logs()
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 21, in generate_logs
    self.generate_network_manager_log()
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 32, in generate_network_manager_log
    self.__generate_log("NetworkManager.service", NETWORK_MANAGER_LOGFILE)
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 68, in __generate_log
    self.__add_log_to_file(_journal, filepath)
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 98, in __add_log_to_file
    if entry["_SOURCE_REALTIME_TIMESTAMP"] < start_date:
TypeError: can't compare offset-naive and offset-aware datetimes
Tnology commented 1 year ago

Hey, did you ever fix this issue?

JRDetwiler commented 1 year ago

Hey, did you ever fix this issue?

No, sorry. It's a standing issue with the repo because Proton abandoned their official client...again. There haven't been any commits here in several months.

S0litaire commented 1 year ago

Started getting this today out of the blue!. To my knowledge, nothing on my system has changed

cyberfeign commented 1 year ago

I'm getting this as well. Trying to troubleshoot "Unknown API error." whenever I try to log in with either CLI or GUI.