-
stop if: - bitmask is running (we don't want to mess with the helper if the app is running) - we cannot stop the service for some reason. powershell gives more flexibility to stop services, but Remove-Service is not present in PS < 6, so we try to remove the service from the post-install too (the golang helper will complain about an eventlog registry key). this could probably be improved in the helper, but we'll be moving to the official openvpnserv2 service for 0.21.4. we might want to revisit the current helper for the firewall/killswitch.
stop if: - bitmask is running (we don't want to mess with the helper if the app is running) - we cannot stop the service for some reason. powershell gives more flexibility to stop services, but Remove-Service is not present in PS < 6, so we try to remove the service from the post-install too (the golang helper will complain about an eventlog registry key). this could probably be improved in the helper, but we'll be moving to the official openvpnserv2 service for 0.21.4. we might want to revisit the current helper for the firewall/killswitch.
Troubleshooting
This document contains some useful debug information.
OSX
If you're having troubles with old versions of RiseupVPN that did not have an uninstaller, and the new installer is not cleanly replacing the previous install, you might need to manually clean things up. You will need root access to stop the privileged helper.
First, see if the helper is running:
pgrep bitmask-helper
To stop it:
sudo launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist
To start it:
sudo launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist
sudo launchctl start /Library/LaunchDaemons/se.leap.bitmask-helper.plist
Check that it's running:
pgrep bitmask-helper
Manually check that the web api is running, and that it reports a version that matches what you currently have installed:
curl http://localhost:7171/version
Also, you can check that the path near the end of the file /Library/LaunchDaemons/se.leap.bitmask-helper.plist matches the current path where you installed RiseupVPN.app.
Cleaning up
If you have things messed up and you want to completely delete the bitmask-helper:
sudo launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist
sudo rm -rf /Library/LaunchDaemons/se.leap.bitmask-helper.plist
Make sure that "pgrep bitmask-helper" does not return any pid.
Now you can move /Applications/RiseupVPN.app to the Trash, and launch a recent installer to get a clean install.
Windows
In Windows you can use PowerShell to see if there's an old service Running (it can be from RiseupVPN, CalyxVPN, LibraryVPN etc...).
PS C:\Users\admin> Get-Service bitmask-helper-v2
You can also stop it (needs admin)
PS C:\Users\admin> Stop-Service bitmask-helper-v2