openvpn-admin-plus: Run on existing configuration - unterminated `s' command

Hello i’m trying to get this interface running on an old, and working OpenVPN server.

the first issue i managed was that index.txt was not in the easy-rsa/pki folder so i moved it to align where it was searching it

actually is restarting in this loop… what can be wrong?

openvpn-admin-plus  | TERM environment variable not set.
openvpn-admin-plus  | OpenVPN directory set to: /etc/openvpn
openvpn-admin-plus  | Working directory set to: /opt
openvpn-admin-plus  | PiVPN server set to: US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US US
openvpn-admin-plus  | Working directory set to: /opt/openvpn-gui-tap
openvpn-admin-plus  | sed: -e expression #1, char 76: unterminated `s' command

PS. i suggest to put a fully working compose with another service that runs the VPN, in this way the first run also for test the interface can be very fast without relying on the underlying host

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 23 (12 by maintainers)

Most upvoted comments

@FrancYescO

Here’s an example of what a standard, modern, OpenVPN server installation looks like as far as directories and files under /etc/openvpn:

pi@raspberrypi10:/etc/openvpn $ sudo tree
.
├── ccd
│   └── test2
├── client
├── crl.pem
├── easy-rsa
│   ├── ChangeLog
│   ├── COPYING.md
│   ├── doc
│   │   ├── EasyRSA-Advanced.md
│   │   ├── EasyRSA-Readme.md
│   │   ├── EasyRSA-Upgrade-Notes.md
│   │   ├── Hacking.md
│   │   └── Intro-To-PKI.md
│   ├── easyrsa
│   ├── gpl-2.0.txt
│   ├── mktemp.txt
│   ├── openssl-easyrsa.cnf
│   ├── pki
│   │   ├── ca.crt
│   │   ├── certs_by_serial
│   │   │   ├── 2330D924BB44A6728B91F9CCB382B29E.pem
│   │   │   ├── 383BF66BA6AAA14F5DC1F5E30AD642EF.pem
│   │   │   └── 5D9C0E2B0B523E47ABBB51B664F2E449.pem
│   │   ├── crl.pem
│   │   ├── Default.txt
│   │   ├── index.txt
│   │   ├── index.txt.attr
│   │   ├── index.txt.attr.old
│   │   ├── index.txt.old
│   │   ├── issued
│   │   │   ├── raspberrypi10_ca8554c5-6025-442f-9d06-25a5cab85a3c.crt
│   │   │   ├── test2.crt
│   │   │   └── test.crt
│   │   ├── openssl-easyrsa.cnf
│   │   ├── private
│   │   │   ├── ca.key
│   │   │   ├── raspberrypi10_ca8554c5-6025-442f-9d06-25a5cab85a3c.key
│   │   │   ├── test2.key
│   │   │   └── test.key
│   │   ├── reqs
│   │   │   ├── raspberrypi10_ca8554c5-6025-442f-9d06-25a5cab85a3c.req
│   │   │   ├── test2.req
│   │   │   └── test.req
│   │   ├── revoked
│   │   │   ├── certs_by_serial
│   │   │   ├── private_by_serial
│   │   │   └── reqs_by_serial
│   │   ├── safessl-easyrsa.cnf
│   │   ├── serial
│   │   ├── serial.old
│   │   ├── ta.key
│   │   ├── test2.ovpn
│   │   ├── vars.example
│   │   └── vars.pivpn
│   ├── README.md
│   ├── README.quickstart.md
│   ├── vars
│   ├── vars.example
│   └── x509-types
│       ├── ca
│       ├── client
│       ├── code-signing
│       ├── COMMON
│       ├── email
│       ├── kdc
│       ├── server
│       └── serverClient
├── server
├── server.conf
└── update-resolv-conf

15 directories, 55 files

This is from my test system, so there are some test certificates and keys, and a vars.pivpn file you can ignore. EasyRSA is a script that’s installed when OpenVPN is installed by PiVPN and other scripts that are designed configure a complete OpenVPN setup.

Since you had index.txt (which is created by easyrsa) you must have the rest of the easyrsa package somewhere on your system. Your directory structure, certificates, keys and data files (which are all text-based) need to match the above for this project to be useful to you.