eventure / hide.client.linux

Hide.me CLI VPN client for Linux
https://hide.me
GNU General Public License v2.0
90 stars 35 forks source link

Systemd Service File Dependency on /run/systemd/resolve Causes Failure to Start #34

Open itsmeherefolks opened 4 months ago

itsmeherefolks commented 4 months ago

Description

After installing the latest version (hide.me-linux-amd64-0.9.9.tar.gz ) of the Hide.me CLI VPN client on Manjaro Linux, the systemd service for the VPN connection fails to start due to a missing /run/systemd/resolve directory, which results in a Failed to set up mount namespacing error.

Steps to Reproduce

  1. Install Hide.me CLI VPN client version 0.9.9 on Manjaro Linux.
  2. Enable and start the systemd service for a VPN connection.
  3. Observe the service failing to start with a status=226/NAMESPACE error.

Workaround Implemented

I modified "/opt/hide.me/hide.me@.service" by removing the reference to /run/systemd/resolve in the ReadWritePaths directive. This allowed the service to start successfully.

Suggested Fix

It might be beneficial to evaluate the necessity of referencing /run/systemd/resolve in the service file, considering it may not exist on all systems or when systemd-resolved is not in use. An alternative approach or configuration flexibility would help accommodate various system setups.

Additional Context

This problem seems to have been addressed in a previous commit (3795591), but the issue persists or has resurfaced under certain conditions.

Thank you for looking into this matter. Thomas