TL;DR: If you have broken your OMV machine's internet connection by manually installing resolvconf,
uninstall resolvconf
run: omv-salt deploy run systemd-networkd
then, slap yourself on the wrist for messing with the underlying system and try to do things through the OMV interface in the future.
Original Message:
Hello folks. First, thanks for your wonderful work on OMV; I've enjoyed learning how to use it. Now I think I'm over my head and so I thought I should ask for help before I continue to make matters worse. I just recently did a fresh install of OMV 6, set up data shares and installed a few plugins with no problems.
I would like to have OMV access the internet through SurfShark, a VPN provider. I got the Wireguard plugin installed and a custom configuration following guides from wireguard and surfshark. When I tried to activate it, though, I got an error:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color wireguard 2>&1' with exit code '1': debian:
----------
ID: stop_wireguard_service_wgnet_wgnet_mad
Function: service.dead
Name: wg-quick@wgnet_wgnet_mad
Result: True
Comment: The service wg-quick@wgnet_wgnet_mad is already dead
Started: 19:26:03.517709
Duration: 70.882 ms
Changes:
----------
ID: remove_wireguard_custom_fileswgnet_wgnet_mad
Function: file.absent
Name: /etc/wireguard/wgnet_wgnet_mad.conf
Result: True
Comment: File /etc/wireguard/wgnet_wgnet_mad.conf is not present
Started: 19:26:03.591605
Duration: 0.685 ms
Changes:
----------
ID: configure_wireguard_wgnet_wgnet_mad
Function: file.managed
Name: /etc/wireguard/wgnet_wgnet_mad.conf
Result: True
Comment: File /etc/wireguard/wgnet_wgnet_mad.conf updated
Started: 19:26:03.592397
Duration: 150.202 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: start_wireguard_service_wgnet_wgnet_mad
Function: service.running
Name: wg-quick@wgnet_wgnet_mad
Result: False
Comment: Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
Started: 19:26:04.140999
Duration: 379.843 ms
Changes:
----------
ID: stop_wireguard_service_wgnet_wgnet_ash
Function: service.dead
Name: wg-quick@wgnet_wgnet_ash
Result: True
Comment: The service wg-quick@wgnet_wgnet_ash is already dead
Started: 19:26:04.521425
Duration: 74.547 ms
Changes:
----------
ID: remove_wireguard_custom_fileswgnet_wgnet_ash
Function: file.absent
Name: /etc/wireguard/wgnet_wgnet_ash.conf
Result: True
Comment: File /etc/wireguard/wgnet_wgnet_ash.conf is not present
Started: 19:26:04.596513
Duration: 1.542 ms
Changes:
----------
ID: stop_wireguard_service_wgnet_wgnet_zur
Function: service.dead
Name: wg-quick@wgnet_wgnet_zur
Result: True
Comment: The service wg-quick@wgnet_wgnet_zur is already dead
Started: 19:26:04.598282
Duration: 73.259 ms
Changes:
----------
ID: remove_wireguard_custom_fileswgnet_wgnet_zur
Function: file.absent
Name: /etc/wireguard/wgnet_wgnet_zur.conf
Result: True
Comment: File /etc/wireguard/wgnet_wgnet_zur.conf is not present
Started: 19:26:04.672071
Duration: 1.549 ms
Changes:
----------
ID: remove_wireguard_dummy_file
Function: file.absent
Name: /etc/wireguard_dummy_file
Result: True
Comment: File /etc/wireguard_dummy_file is not present
Started: 19:26:04.673839
Duration: 1.026 ms
Changes:
Summary for debian
------------
Succeeded: 8 (changed=1)
Failed: 1
------------
Total states run: 9
Total run time: 753.535 ms
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-rd6af3aa6e6804c5d9f98fc58ca5c301b.scope
Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r0737cade1fed499884bc050841c2101a.scope
Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color wireguard 2>&1' with exit code '1': debian:
----------
...
I had to remove some lines here because I'm too long-winded.
...
Summary for debian
------------
Succeeded: 8 (changed=1)
Failed: 1
------------
Total states run: 9
Total run time: 753.535 ms
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-rd6af3aa6e6804c5d9f98fc58ca5c301b.scope
Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r0737cade1fed499884bc050841c2101a.scope
Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for wg-quick@wgnet_wgnet_mad.service failed because the control process exited with error code.
See "systemctl status wg-quick@wgnet_wgnet_mad.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:242
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(178): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus1b...', '/tmp/bgoutputTU...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(199): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
Alles anzeigen
After some reading, I conclude that the problem is that SurfShark has DNS leak protection and specifies a DNS line in the configuration file (which I can provide if it would be helpful). In what I now believe to be an error, I installed resolveconf through the CLI.
I've now lost internet connection on OMV: a CLI ping to http://www.google.com returns "name or service not known". I was never able to activate WireGuard, so I think the problem lies with my installation of resolvconf. My instinct is to uninstall it, then remove the DNS leak prevention from the Wireguard custom config file (just for testing-- I prefer to have it working ultimately), and see if I can activate.
But I think I need to stop and get help since my resolutions so far have made the problem worse. I'm not really all that technical anymore.
If I can't ultimately use SurfShark DNS leak protection through the plugin, I have in the back of my mind that I could run it in a docker container, or, failing that, then on a router.
Thanks in advance for any assistance.