gluetun: Bug: auth.conf has extra newline
Is this urgent?: No
Host OS (approximate answer is fine too): k3s
CPU arch or device name: raspberryPi 4
What VPN provider are you using: PIA
What are you using to run your container?: kc apply -f deployment.yaml
What is the version of the program (See the line at the top of your logs)
Running version v3.18.0 built on 2021-05-31T19:27:35Z (commit b829490)
What’s the problem 🤔
/etc/openvpn/auth.conf has a new line in-between the username and the password.
Share your logs… (careful to remove in example tokens)
=========================================
================ Gluetun ================
=========================================
==== A mix of OpenVPN, DNS over TLS, ====
======= Shadowsocks and HTTP proxy ======
========= all glued up with Go ==========
=========================================
=========== For tunneling to ============
======== your favorite VPN server =======
=========================================
=== Made with ❤️ by github.com/qdm12 ====
=========================================
Running version v3.18.0 built on 2021-05-31T19:27:35Z (commit b829490)
🔧 Need help? https://github.com/qdm12/gluetun/issues/new
💻 Email? quentin.mcgaw@gmail.com
☕ Slack? Join from the Slack button on Github
💸 Help me? https://github.com/sponsors/qdm12
2021/07/02 23:02:58 INFO Alpine version: 3.13.5
2021/07/02 23:02:58 INFO OpenVPN 2.4 version: 2.4.11
2021/07/02 23:02:58 INFO OpenVPN 2.5 version: 2.5.2
2021/07/02 23:02:58 INFO Unbound version: 1.13.0
2021/07/02 23:02:58 INFO IPtables version: v1.8.6
2021/07/02 23:02:58 WARN configuration: You are using the old environment variable TINYPROXY_USER, please consider changing it to HTTPPROXY_USER
2021/07/02 23:02:58 WARN configuration: You are using the old environment variable TINYPROXY_PASSWORD, please consider changing it to HTTPPROXY_PASSWORD
2021/07/02 23:02:58 INFO Settings summary below:
|--OpenVPN:
|--Version: 2.5
|--Verbosity level: 1
|--Run as root: enabled
|--Provider:
|--Private Internet Access settings:
|--Network protocol: udp
|--Regions: netherlands
|--Encryption preset: strong
|--DNS:
|--Plaintext address: 1.1.1.1
|--DNS over TLS:
|--Unbound:
|--DNS over TLS providers:
|--Cloudflare
|--Listening port: 53
|--Access control:
|--Allowed:
|--0.0.0.0/0
|--::/0
|--Caching: enabled
|--IPv4 resolution: enabled
|--IPv6 resolution: enabled
|--Verbosity level: 1/5
|--Verbosity details level: 0/4
|--Validation log level: 0/2
|--Username:
|--Blacklist:
|--Blocked categories: malicious, surveillance, ads
|--Additional IP networks blocked: 13
|--Update: every 24h0m0s
|--Firewall:
|--System:
|--Process user ID: 1000
|--Process group ID: 1000
|--Timezone: NOT SET ⚠️ - it can cause time related issues
|--HTTP control server:
|--Listening port: 8000
|--Logging: enabled
|--Public IP getter:
|--Fetch period: 12h0m0s
|--IP file: /tmp/gluetun/ip
|--Github version information: enabled
2021/07/02 23:02:58 INFO storage: creating /gluetun/servers.json with 9140 hardcoded servers
2021/07/02 23:02:58 INFO routing: default route found: interface eth0, gateway 10.42.0.1
2021/07/02 23:02:58 INFO routing: local ethernet link found: eth0
2021/07/02 23:02:58 INFO routing: local ipnet found: 10.42.0.0/24
2021/07/02 23:02:58 INFO routing: default route found: interface eth0, gateway 10.42.0.1
2021/07/02 23:02:58 INFO routing: adding route for 0.0.0.0/0
2021/07/02 23:02:58 INFO firewall: firewall disabled, only updating allowed subnets internal list
2021/07/02 23:02:58 INFO routing: default route found: interface eth0, gateway 10.42.0.1
2021/07/02 23:02:58 INFO openvpn configurator: checking for device /dev/net/tun
2021/07/02 23:02:58 WARN TUN device is not available: open /dev/net/tun: no such file or directory
2021/07/02 23:02:58 INFO openvpn configurator: creating /dev/net/tun
2021/07/02 23:02:58 INFO firewall: enabling...
2021/07/02 23:03:00 INFO firewall: enabled successfully
2021/07/02 23:03:00 INFO dns over tls: using plaintext DNS at address 1.1.1.1
2021/07/02 23:03:00 INFO http server: listening on :8000
2021/07/02 23:03:00 INFO healthcheck: listening on 127.0.0.1:9999
2021/07/02 23:03:00 INFO firewall: setting VPN connection through firewall...
2021/07/02 23:03:00 INFO openvpn configurator: starting OpenVPN 2.5
2021/07/02 23:03:00 INFO openvpn: OpenVPN 2.5.2 armv7-alpine-linux-musleabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on May 4 2021
2021/07/02 23:03:00 INFO openvpn: library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
2021/07/02 23:03:00 INFO openvpn: neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Password:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
2021/07/02 23:03:00 INFO openvpn: Exiting due to fatal error
2021/07/02 23:03:00 ERROR openvpn: exit status 1
2021/07/02 23:03:00 INFO openvpn: retrying in 15s
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (7 by maintainers)
Done in 679be6e1bd2b33d86b194cbe8bf960533dd4e1aa
Ha no worry! Silly mistake but still quite well hidden!
Let’s keep the issue opened. I’ll change the code to trim trailing new lines for the username. It’s usually considered bad practice but in our case the username has really zero chance to have a trailing new line (unlike perhaps the password).