[GH-ISSUE #165] username2 and password2 not found #150

Closed
opened 2026-03-02 07:28:06 +03:00 by kerem · 1 comment
Owner

Originally created by @WeiWill0605 on GitHub (Oct 8, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/165

Hi, I am trying to deploy a vpn server on ec2. It works when I add one VPN_ADDL_USERS, but fails when I try to add the second VPN_ADDL_USERS. It complains in this way:

Retrieving VPN credentials...
/opt/src/run.sh: 11: /opt/src/vpn.env: additional_username_2: not found
/opt/src/run.sh: 12: /opt/src/vpn.env: additional_password_2: not found

Originally created by @WeiWill0605 on GitHub (Oct 8, 2019). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/165 Hi, I am trying to deploy a vpn server on ec2. It works when I add one VPN_ADDL_USERS, but fails when I try to add the second VPN_ADDL_USERS. It complains in this way: Retrieving VPN credentials... /opt/src/run.sh: 11: /opt/src/vpn.env: additional_username_2: not found /opt/src/run.sh: 12: /opt/src/vpn.env: additional_password_2: not found
kerem closed this issue 2026-03-02 07:28:07 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Nov 11, 2019):

@WeiWill0605 Hello! It looks like you tried to bind mount the env file [1]. To use this method, you must first edit your env file and use single quotes '' to enclose the values of all variables. See [1] for more information.

[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#bind-mount-the-env-file

<!-- gh-comment-id:552304912 --> @hwdsl2 commented on GitHub (Nov 11, 2019): @WeiWill0605 Hello! It looks like you tried to bind mount the `env` file [1]. To use this method, you must first edit your `env` file and use single quotes `''` to enclose the values of all variables. See [1] for more information. [1] https://github.com/hwdsl2/docker-ipsec-vpn-server#bind-mount-the-env-file
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#150
No description provided.