fopen:Permission denied: error:

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cervante
OpenVpn Newbie
Posts: 1
Joined: Sun Apr 03, 2016 9:39 pm

fopen:Permission denied: error:

Post by cervante » Sun Apr 03, 2016 10:52 pm

Hello guys,

I have installed an openvpn server on my vps with a script from a github project (https://github.com/Notos/seedbox-from-scratch).
When I tried to connect to my vpn, there are two case, it try to connect forever or it connect but all fields are blank in status.

And when I check the /var/log/syslog, I have the following errors :

Code: Select all

Apr  3 16:36:47 elleucha openvpn[18340]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Apr  3 16:36:47 elleucha openvpn[18340]: Note: cannot open ipp.txt for READ/WRITE
Apr  3 16:36:47 elleucha openvpn[18340]: Cannot load private key file server.key: error:0200100D:system library:fopen:Permission denied: error:20074002:BIO routines:FIL
E_CTRL:system lib: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib
Apr  3 16:36:47 elleucha openvpn[18340]: Error: private key password verification failed
Apr  3 16:36:47 elleucha openvpn[18340]: Exiting
or

Code: Select all

Apr  3 01:57:09 elleucha openvpn[6317]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Apr  3 01:57:09 elleucha openvpn[6317]: Note: cannot open /var/run/openvpn.openvpn.status for WRITE
Apr  3 01:57:09 elleucha openvpn[6317]: Note: cannot open ipp.txt for READ/WRITE
Apr  3 01:57:09 elleucha openvpn[6317]: Cannot load certificate file server.crt: error:02001002:system library:fopen:No such file or directory: error:20074002:BIO routi
nes:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Apr  3 01:57:09 elleucha openvpn[6317]: Exiting
Apr  3 02:00:17 elleucha openvpn[6399]: OpenVPN 2.2.
or

Code: Select all

Apr  3 17:31:30 elleucha openvpn[19517]: Cannot open dh1024.pem for DH parameters: error:02001002:system library:fopen:No such file or directory: error:2006D080:BIO routines:BIO_new_file:no such file
If you have an idea about how to solve this I would be very gratefull :D

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: fopen:Permission denied: error:

Post by Traffic » Mon Apr 04, 2016 12:51 am

cervante wrote:If you have an idea about how to solve this I would be very gratefull
sudo ..

Post Reply