Yeah - on Save/Apply:
ok. thanks.
Yeah - on Save/Apply:
ok. thanks.
Don't thank me I'm glad that you are interested in...
Can you try this new test package? https://omv-extras.org/testing…vault-openvpn_5.1_all.deb
Uninstalled old, uploaded new and installed.
Error #0:
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; omv-salt deploy run --no-color openvpn 2>&1' with exit code '1': omv.jimmy.chrudim.cz:
----------
ID: start_openvpn_service
Function: service.running
Name: openvpn
Result: False
Comment: The following requisites were not found:
watch:
cmd: /usr/sbin/omv-openvpn setup
Started: 07:50:48.814569
Duration: 0.016 ms
Changes:
Summary for omv.jimmy.chrudim.cz
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
Total run time: 0.016 ms in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): 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(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusav...', '/tmp/bgoutputyF...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(189): 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
One more test please. Same location for the package.
As soon I enable the plugin this error raises (if not enabled - it applies OK)
Error #0:
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; omv-salt deploy run --no-color openvpn 2>&1' with exit code '1': omv.jimmy.chrudim.cz:
----------
ID: start_openvpn_service
Function: service.running
Name: openvpn
Result: False
Comment: The following requisites were not found:
watch:
cmd: /usr/sbin/omv-openvpn setup
Started: 12:58:34.349495
Duration: 0.016 ms
Changes:
Summary for omv.jimmy.chrudim.cz
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
Total run time: 0.016 ms in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): 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(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusM2...', '/tmp/bgoutput3j...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(189): 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
The salt cache needs to be cleared to get the changes.
sudo /usr/bin/salt-call --local saltutil.clear_cache
sudo omv-salt stage run prepare
sudo omv-salt deploy run openvpn
The salt cache needs to be cleared to get the changes.
I'm an idiot, sorry!
So now - no error thrown, but when changed settings, Save/Apply, process /usr/sbin/openvpn still run with same PID (so it doesn't restart process - so no new configuration applied).
I have to disable, Save/Apply, enable, Save/Apply still.
When you ran omv-salt deploy run openvpn, do you have the output?
When disabled:
xxxxxxxx.cz:
----------
ID: stop_openvpn_service
Function: service.dead
Name: openvpn
Result: True
Comment: The service openvpn is already dead
Started: 18:12:31.766383
Duration: 84.213 ms
Changes:
Summary for xxxxxxxx.cz
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
Total run time: 84.213 ms
Alles anzeigen
When enabled:
xxxxxxxx.cz:
----------
ID: setup_openvpn
Function: cmd.run
Name: /usr/sbin/omv-openvpn setup
Result: True
Comment:
Started: 18:15:15.559432
Duration: 553.595 ms
Changes:
----------
changed:
yes
pid:
20136
retcode:
0
stderr:
stdout:
----------
ID: start_openvpn_service
Function: service.running
Name: openvpn
Result: True
Comment: The service openvpn is already running
Started: 18:15:16.133200
Duration: 57.165 ms
Changes:
Summary for xxxxxxxx.cz
------------
Succeeded: 2 (changed=1)
Failed: 0
------------
Total states run: 2
Total run time: 610.760 ms
Alles anzeigen
After change + Save/Apply:
xxxxxxxx.cz:
----------
ID: setup_openvpn
Function: cmd.run
Name: /usr/sbin/omv-openvpn setup
Result: True
Comment:
Started: 18:17:05.988733
Duration: 444.208 ms
Changes:
----------
changed:
yes
pid:
20773
retcode:
0
stderr:
stdout:
----------
ID: start_openvpn_service
Function: service.running
Name: openvpn
Result: True
Comment: The service openvpn is already running
Started: 18:17:06.452576
Duration: 58.221 ms
Changes:
Summary for xxxxxxxx.cz
------------
Succeeded: 2 (changed=1)
Failed: 0
------------
Total states run: 2
Total run time: 502.429 ms
Alles anzeigen
but PID (using ps aufx) still same:
ok. I just changed the uploaded package so when salt runs, it does the following:
Hopefully that works.
- did reinstall
- did those "salt things"
- did config setup
- did enable the plugin
- did save/apply
- did config change
- did save/apply
IT WORKS!
Just one little change. Could you change client-config section (starting at line 368) in \usr\share\openmediavault\engined\rpc\openvpn.inc like this? (added line 'auth-nocache',). Thats all - better security for clients...
could you add, please one more static setting to file \usr\sbin\omv-openvpn before deploy (marked as bold)?
STOP!!
I just pushed the current code to github for that last package I built. If you want to make changes based off that, that would be helpful.
my previous post - please check if possible... NO MORE CHANGES FOR NOW (and version 2.4.7 of OpenVPN), I promise
change made - https://github.com/OpenMediaVa…d68e7ac48578714ee124e1c06 - and new package uploaded to same location
great job! as soon as there will be 2.5.0 for Debian, I'll be back Thanks
Package is in the regular repo now.
i have installed it but how to configure ?
I did not get username password.
How to connect via openvpn client on my android ?
i have installed it but how to configure ?
I did not get username password.
How to connect via openvpn client on my android ?
So many "out-of-topic" questions for this forum/thread. Just use "google". No better answer.
- just one hint - use "TCP protocol" and "TUN device" if you want to use OVPN with Android device...
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!