Synology Docker openvpn-as cannot login to admin area

Hi there,

I am trying to use linuxserver/openvpn-as container in Synology Docker.
I managed to create the container but I am receiving the following error when trying to login at https://ip:943/admin

It seems to try openning a file inside /usr/local/openvpn_as/lib/… but this file is actually available inside /config/lib/…

What should I do?

Could you provide us with the information you used to deploy the container please?

FYI - No one within the team currently owns a synology device so we are unable to test on this platform so support will be best effort.

Hi @j0nnymoe, thanks for replying. I used the following command to deploy the container:
sudo docker create --name=openvpn-as-savvas
–restart=always
-v /Shared/openvpn/config:/config
-e INTERFACE=eth0
-e PGID=1001 -e PUID=101
-e TZ=Europe/Athens
–net=host --privileged
linuxserver/openvpn-as

Some more info. As you can see below, the /usr/local/openvpn_as/… path is accessible. There is already a script running from there.

date stream content
2019-11-13 14:06:35 stdout [services.d] done.
2019-11-13 14:06:35 stdout [services.d] starting services
2019-11-13 14:06:35 stdout [cont-init.d] done.
2019-11-13 14:06:35 stdout [cont-init.d] 99-custom-scripts: exited 0.
2019-11-13 14:06:35 stdout [custom-init] no custom files found exiting...
2019-11-13 14:06:35 stdout [cont-init.d] 99-custom-scripts: executing... 
2019-11-13 14:06:35 stdout [cont-init.d] 50-interface: exited 0.
2019-11-13 14:06:35 stdout MOD Default {} {}
2019-11-13 14:06:33 stdout MOD Default {} {}
2019-11-13 14:06:30 stdout MOD Default {} {}
2019-11-13 14:06:28 stdout MOD Default {} {}
2019-11-13 14:06:26 stdout [cont-init.d] 50-interface: executing... 
2019-11-13 14:06:26 stdout [cont-init.d] 40-openvpn-init: exited 0.
2019-11-13 14:06:26 stdout [cont-init.d] 40-openvpn-init: executing... 
2019-11-13 14:06:26 stdout [cont-init.d] 30-config: exited 0.
2019-11-13 14:06:26 stdout restoring as.conf
2019-11-13 14:06:26 stdout restoring userprop.db
2019-11-13 14:06:25 stdout restoring notification.db
2019-11-13 14:06:25 stdout restoring log.db
2019-11-13 14:06:25 stdout restoring config_local.db
2019-11-13 14:06:25 stdout restoring config.db
2019-11-13 14:06:24 stdout restoring cluster.db
2019-11-13 14:06:24 stdout restoring certs.db
2019-11-13 14:06:24 stdout Stopping openvpn-as now; will start again later after configuring
2019-11-13 14:06:21 stdout Beginning with OpenVPN AS 2.6.0 compression is disabled by default and on upgrades as security patch.
2019-11-13 14:06:19 stdout
2019-11-13 14:06:19 stdout +++++++++++++++++++++++++++++++++++++++++++++++
2019-11-13 14:06:19 stdout Client UI: https://192.168.10.100:943/
2019-11-13 14:06:19 stdout Admin  UI: https://192.168.10.100:943/admin
2019-11-13 14:06:19 stdout Access Server Web UIs are available here:
2019-11-13 14:06:19 stdout +++++++++++++++++++++++++++++++++++++++++++++++
2019-11-13 14:06:19 stdout
2019-11-13 14:06:19 stdout To reconfigure manually, use the /usr/local/openvpn_as/bin/ovpn-init tool.
2019-11-13 14:06:19 stdout
2019-11-13 14:06:19 stdout configuration here: https://192.168.10.100:943/admin
2019-11-13 14:06:19 stdout administrative password, then login as "openvpn" to continue
2019-11-13 14:06:19 stdout Please enter "passwd openvpn" to set the initial
2019-11-13 14:06:19 stdout
2019-11-13 14:06:19 stdout Configuration log file has been written to /usr/local/openvpn_as/init.log
2019-11-13 14:06:19 stdout The Access Server has been successfully installed in /usr/local/openvpn_as
2019-11-13 14:06:19 stdout
2019-11-13 14:05:34 stdout Setting up openvpn-as (2.7.5-932a08a3-Ubuntu18) ...
2019-11-13 14:05:31 stdout Unpacking openvpn-as (2.7.5-932a08a3-Ubuntu18) ...
2019-11-13 14:05:31 stdout Preparing to unpack /openvpn/openvpn.deb ...
2019-11-13 14:05:31 stdout (Reading database ... 11531 files and directories currently installed.)
2019-11-13 14:05:31 stdout Selecting previously unselected package openvpn-as.
2019-11-13 14:05:29 stdout Setting up openvpn-as-bundled-clients (2) ...
2019-11-13 14:05:25 stdout Unpacking openvpn-as-bundled-clients (2) ...
2019-11-13 14:05:25 stdout Preparing to unpack /openvpn/openvpn-clients.deb ...
2019-11-13 14:05:25 stdout (Reading database ... 11518 files and directories currently installed.)
2019-11-13 14:05:25 stdout Selecting previously unselected package openvpn-as-bundled-clients.
2019-11-13 14:05:24 stdout backing up as.conf
2019-11-13 14:05:24 stdout backing up userprop.db
2019-11-13 14:05:24 stdout backing up notification.db
2019-11-13 14:05:24 stdout backing up log.db
2019-11-13 14:05:24 stdout backing up config_local.db
2019-11-13 14:05:24 stdout backing up config.db
2019-11-13 14:05:24 stdout backing up cluster.db
2019-11-13 14:05:24 stdout backing up certs.db
2019-11-13 14:05:24 stdout existing data found, reinstalling openvpn-as
2019-11-13 14:05:24 stdout [cont-init.d] 30-config: executing... 
2019-11-13 14:05:24 stdout [cont-init.d] 20-time: exited 0.
2019-11-13 14:05:23 stderr
2019-11-13 14:05:23 stderr Universal Time is now:  Wed Nov 13 14:05:23 UTC 2019.
2019-11-13 14:05:23 stderr Local time is now:      Wed Nov 13 16:05:23 EET 2019.
2019-11-13 14:05:23 stderr Current default time zone: 'Europe/Athens'
2019-11-13 14:05:23 stderr
2019-11-13 14:05:22 stdout [cont-init.d] 20-time: executing... 
2019-11-13 14:05:22 stdout [cont-init.d] 10-adduser: exited 0.
2019-11-13 14:05:22 stdout
2019-11-13 14:05:22 stdout -------------------------------------
2019-11-13 14:05:22 stdout User gid:    911
2019-11-13 14:05:22 stdout User uid:    911
2019-11-13 14:05:22 stdout
2019-11-13 14:05:22 stdout -------------------------------------
2019-11-13 14:05:22 stdout GID/UID
2019-11-13 14:05:22 stdout -------------------------------------
2019-11-13 14:05:22 stdout https://www.linuxserver.io/donate/
2019-11-13 14:05:22 stdout We gratefully accept donations at:
2019-11-13 14:05:22 stdout Brought to you by linuxserver.io
2019-11-13 14:05:22 stdout
2019-11-13 14:05:22 stdout
2019-11-13 14:05:22 stdout          |_| |___/ |_|  \__/
2019-11-13 14:05:22 stdout          | | \__ \ | | | () |
2019-11-13 14:05:22 stdout          | | / __| | |  /  \ 
2019-11-13 14:05:22 stdout          | |  ___   _    __
2019-11-13 14:05:22 stdout           _         ()
2019-11-13 14:05:22 stdout -------------------------------------
2019-11-13 14:05:22 stdout
2019-11-13 14:05:22 stderr usermod: no changes
2019-11-13 14:05:21 stdout [cont-init.d] 10-adduser: executing... 
2019-11-13 14:05:21 stdout [cont-init.d] executing container initialization scripts...
2019-11-13 14:05:21 stdout [fix-attrs.d] done.
2019-11-13 14:05:21 stdout [fix-attrs.d] applying ownership & permissions fixes...
2019-11-13 14:05:21 stdout [s6-init] ensuring user provided files have correct perms...exited 0.
2019-11-13 14:05:21 stdout [s6-init] making user provided files available at /var/run/s6/etc...exited 0.

I found it finally…
I was using wrongly the PGID and PUID variables…

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.