openpyn-nordvpn icon indicating copy to clipboard operation
openpyn-nordvpn copied to clipboard

OpenWRT: default log_folder is erased at reboot because /var -> /tmp

Open renauddetry opened this issue 4 years ago • 2 comments

Thank you so much for this package, it's awesome!

In OpenWRT, /var is a symlink to /tmp. As a result, after reboot, openpyn.openpyn.run() stops at os.path.exists(log_folder), and one needs to either manually recreate the log dir or re-init. The openpyn's test branch appears to store logs in $HOME instead of /var. Patience will solve this issue. In the meantime, I'm changing the default log_folder to a different path.

Note to OpenWRT users: it's tempting to make /var a directory, so that it survives across reboots. Unfortunately, this solution appears unwise (even if you can afford the extra storage), because several OpenWRT packages use /var/run and /tmp/run interchangeably, and assume they point to the same location.

renauddetry avatar Apr 04 '20 22:04 renauddetry

Please use the test branch especially for OpenWRT, it contains the latest code!!

1951FDG avatar Apr 05 '20 13:04 1951FDG

Please try openpyn 3.0.0!

1951FDG avatar Oct 27 '21 18:10 1951FDG