Hi!
I’m trying to set up NordVPN using their official plugin. The plugin uses OpenVPN behind the hood.
The log file shows:
2021-03-19 00:13:56.822 T:1400176864 DEBUG: : Appending DNS to /etc/resolv.conf
2021-03-19 00:13:56.823 T:1400176864 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: global name 'PermissionError' is not defined
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/service.nord.vpn/connect.py", line 35, in <module>
appendDNS()
File "/home/osmc/.kodi/addons/service.nord.vpn/dns.py", line 34, in appendDNS
except PermissionError:
NameError: global name 'PermissionError' is not defined
-->End of Python script error report<--
2021-03-19 00:13:56.824 T:1400176864 DEBUG: onExecutionDone(44, special://home/addons/service.nord.vpn/connect.py)
Clearly, the process does not have rights to write /etc/resolv.conf. What is the right way to configure my system so that the plugin can do its job? Shall I allow the osmc user to write /etc/resolve.conf? Or would you recommend something else?