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

Error during installation (OMV5) #33

Open
nath67 opened this issue Jan 17, 2021 · 2 comments
Open

Error during installation (OMV5) #33

nath67 opened this issue Jan 17, 2021 · 2 comments

Comments

@nath67
Copy link

nath67 commented Jan 17, 2021

Hello,

I have an issue when I install openvpn from OMV-Extras, it gives me the error below and the error as in #32 if I try to use it anyway :

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
openmediavault-openvpn
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/29.1 kB of archives.
After this operation, 292 kB of additional disk space will be used.
Selecting previously unselected package openmediavault-openvpn.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 50180 files and directories currently installed.)
Preparing to unpack .../openmediavault-openvpn_5.1_all.deb ...
Unpacking openmediavault-openvpn (5.1) ...
Setting up openmediavault-openvpn (5.1) ...
Updating init script links and actions.
enabled
Updating configuration database ...
--2021-01-17 21:51:22-- https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.6/EasyRSA-unix-v3.0.6.tgz
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/4519663/8d46db80-266e-11e9-85e3-7de4dbee40d9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210117T205124Z&X-Amz-Expires=300&X-Amz-Signature=df582f1e34ef5575a50629610896747580442cbe455dc1a7d08528c3ce89f601&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4519663&response-content-disposition=attachment%3B%20filename%3DEasyRSA-unix-v3.0.6.tgz&response-content-type=application%2Foctet-stream [following]
--2021-01-17 21:51:23-- https://github-production-release-asset-2e65be.s3.amazonaws.com/4519663/8d46db80-266e-11e9-85e3-7de4dbee40d9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210117T205124Z&X-Amz-Expires=300&X-Amz-Signature=df582f1e34ef5575a50629610896747580442cbe455dc1a7d08528c3ce89f601&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4519663&response-content-disposition=attachment%3B%20filename%3DEasyRSA-unix-v3.0.6.tgz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.139.91
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.139.91|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40840 (40K) [application/octet-stream]
Saving to: ‘/opt/EasyRSA-unix-v3.0.6.tgz’

EasyRSA-unix-v3.0.6 0%[ ] 0 --.-KB/s
EasyRSA-unix-v3.0.6 100%[===================>] 39.88K --.-KB/s in 0.1s

2021-01-17 21:51:23 (403 KB/s) - ‘/opt/EasyRSA-unix-v3.0.6.tgz’ saved [40840/40840]

Processing triggers for openmediavault (5.5.22-1) ...
Updating locale files ...

>>> *************** Error ***************
Failed to read from socket: Connection reset by peer
\ <<< *************************************
Updating file permissions ...
Purging internal cache ...
Restarting engine daemon ...
Terminé...

@nath67
Copy link
Author

nath67 commented Jan 17, 2021

If I install it in SSH with apt install openmediavault-openvpn, there is no error but if I try to create a certificate I get this error :

Erreur #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; /usr/sbin/omv-openvpn add '1a90ac33-426b-46f0-a50f-778541d3398b' 2>&1' with exit code '2':
Easy-RSA error:

EASYRSA_PKI does not exist (perhaps you need to run init-pki)?
Expected to find the EASYRSA_PKI at: /etc/openvpn/pki
Run easyrsa without commands for usage and command help.
/opt/EasyRSA-v3.0.6/easyrsa: 319: set: Illegal option -o echo in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/openvpn.inc(209): OMV\System\Process->execute()
#1 [internal function]: OMV\Engined\Rpc\OpenVpn->set(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('set', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('OpenVpn', 'set', Array, Array, 1)
#5 {main}

@ryecoaaron
Copy link
Member

There is no error in your first post that you need to worry about. The fail to read from socket error (really a warning) happens when omv-engine is restarted and is unavoidable.

Someone who actually uses the plugin will have to help with the second problem. Posting on the forum will give it more visibility.

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

2 participants