Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Request for OMV4 compatibility. #13

Open
mikekuzak opened this issue Nov 25, 2017 · 10 comments
Open

Request for OMV4 compatibility. #13

mikekuzak opened this issue Nov 25, 2017 · 10 comments

Comments

@mikekuzak
Copy link

After Migration from OMV3 to OMV4 the plugin seems broken.

`MV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf openvpn setup 2>&1' with exit code '1': **************************************************************
No /usr/share/easy-rsa/openssl.cnf file could be found
Further invocations will fail


NOTE: If you run ./clean-all, I will be doing a rm -rf on /usr/share/easy-rsa/keys
Using CA Common Name: Fort-Funston CA
grep: /usr/share/easy-rsa/openssl.cnf: No such file or directory
pkitool: KEY_CONFIG (set by the ./vars script) is pointing to the wrong
version of openssl.cnf: /usr/share/easy-rsa/openssl.cnf
The correct version should have a comment that says: easy-rsa version 2.x in /usr/share/php/openmediavault/system/process.inc:175
Stack trace:
#0 /usr/share/openmediavault/engined/module/openvpn.inc(88): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(168): OMV\Engined\Module\OpenVpn->applyConfig()
#2 [internal function]: OMVRpcServiceConfig->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(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc{closure}('/tmp/bgstatusy6...', '/tmp/bgoutputJ4...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: OMVRpcServiceConfig->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(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
OK`

@ryecoaaron
Copy link
Member

ryecoaaron commented Nov 26, 2017

@subzero79
Copy link
Contributor

Seems to be a bug in debian package. the easy-rsa script whichopenssl is hard coded with openssl versions that are not in stretch.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851059

For now try a symlink

ln -s /usr/share/easy-rsa/openssl-1.0.0.cnf /usr/share/easy-rsa/openssl.cnf

There is another error in how the ip address are parsed from ifconfig since the output from the command differs a little bit from jessie so you're gonna stumble another error after that.

I already have patched the mkconf script. I'll PR very soon, but is not guaranteed that other parts of the plugin are maybe broken and need fixing.

@GeraldST
Copy link

Any idea if/when this will be available for OMV4? @subzero79 you said you might start with a PR?

@skjnldsv
Copy link

Seconded :)
Can we help?

@subzero79
Copy link
Contributor

#14

@GeraldST
Copy link

I would like to mention that I already upgraded to OMV4 by successfully and quite easily migrating my OpenVPN-as plugin to a Docker Container. I used the OMV-Extras plugin "openmediavault-docker-gui".

For OpenVPN I used this docker repository:
https://hub.docker.com/r/linuxserver/openvpn-as/

If someone is interested I could provide a bit more detailed instructions about the right settings for Docker and how to migrate configuration data from the old OMV3 installation to Docker. Personally I first moved OpenVPN to Docker in OMV3 and afterwards upgraded to OMV4. For me it was easy, I never lost any data and OpenVPN works just like before with the same ports, settings and users.

@mikekuzak
Copy link
Author

mikekuzak commented Apr 28, 2018 via email

@idarek
Copy link

idarek commented Jul 17, 2018

omv-extras.org show that this plugin is working with OMV 4, however, it's not. Apart from installation in OVM, you are not able to use it and many of times crashing the whole system after reboot.

Will be really interested to test any wip builds.

@ryecoaaron
Copy link
Member

I don't use or maintain this plugin and I'm not sure if anyone is maintaining it. I put it in the repo because I was told it was working. Have you tried asking in the forum? I know people have problems with it on arm boards like the RPi but I didn't think it was crashing the whole system. What is it actually crashing?

@idarek
Copy link

idarek commented Jul 18, 2018

Thanks for the update. It's worth to take it off from stable channel as this causing only confusion.

After installing and activating, everything seems to be on, but after reboot 2 of 3 times system will not load again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants