You are not logged in.

#1 2017-05-18 10:49:01

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Unable to start openvpn -- config not found

At /etc/openvpn I have this config file:

    -rw-r--r-- 1 root root 426 May 18 10:38 server.conf

When I'm trying to start the server,

sudo systemctl start  openvpn-server@server.service

I'm getting "Error opening configuration file: server.conf"

Offline

#2 2017-05-18 10:57:49

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Unable to start openvpn -- config not found

https://www.archlinux.org/news/openvpn- … teraction/

The wiki has all the information you need.

Last edited by Slithery (2017-05-18 11:00:19)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-05-18 11:09:18

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Re: Unable to start openvpn -- config not found

still won't start

sudo mv server.conf server
sudo systemctl start  openvpn-server@server.service

however, an error now is " openvpn-server@server.service: Main process exited, code=exited, status=1/FAILURE"

in the server.conf I've set absolute paths to "ca", "cert" and other files, although they aren't in the "server" directory.
for now they're in "/etc/openvpn/easy-rsa/pki" for the sake of simplicity. does it matter?

Offline

#4 2017-05-18 11:49:27

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Unable to start openvpn -- config not found

kankoshi wrote:

does it matter?

I couldn't tell you. Have you tried using the recommended location?

Follow the steps in the systemd service troubleshooting section of the wiki and post the outputs.
https://wiki.archlinux.org/index.php/Sy … emd_errors


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-05-18 12:13:13

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Re: Unable to start openvpn -- config not found

>Have you tried using the recommended location?
no, because one article in the documentation recommends "server" and  "client" directories, another "keys". which should I use?

Last edited by kankoshi (2017-05-18 12:17:15)

Offline

#6 2017-05-18 12:16:39

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Re: Unable to start openvpn -- config not found

this tells to use /etc/openvpn/easy-rsa/keys/*

https://wiki.archlinux.org/index.php/Op … list_Guide

*journalctl -xe* didn't tell me anything new
in logs there're nothing.

Last edited by kankoshi (2017-05-18 12:18:49)

Offline

#7 2017-05-18 12:25:35

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Re: Unable to start openvpn -- config not found

I've moved them to the "server" and still it doesn't work.

Offline

#8 2017-05-18 12:30:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Unable to start openvpn -- config not found

Try running openvpn manually to see if it gives you any clues...

openvpn --verb 3 --config /etc/openvpn/server/server.conf

You can up the verbosity to as high as 11 if 3 isn't giving you any useful information.

Last edited by Slithery (2017-05-18 12:32:29)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-05-18 12:36:10

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Re: Unable to start openvpn -- config not found

I'm using it with sudo

sudo openvpn --verb 3 --config /etc/openvpn/server/server.conf


no output at all.

ps aux | grep "openvpn*" -- nothing

Last edited by kankoshi (2017-05-18 12:41:53)

Offline

#10 2017-05-18 12:39:48

kankoshi
Banned
Registered: 2017-04-22
Posts: 25

Re: Unable to start openvpn -- config not found

(del)

Last edited by kankoshi (2017-05-18 16:00:20)

Offline

Board footer

Powered by FluxBB