[Solved] OpenVPN getting no stdin fatal error

Hi I
I am trying to configure on OpenWRT 22.03.2 OpenVPN with PrivateInternetAccess(PIA)
I've downloaded their ovpn files (for TCP) and uploaded to create a profile and added my user/pass to the coresponding .auth file.
But openVPN is running daemonized and complains is it missing stdin and stderr.
PIA have on instructions for OpenWRT, only for DD-WRT.

Sun Nov  6 00:47:11 2022 daemon.notice openvpn(Sweden_TCP501_AES256)[24289]: OpenVPN 2.5.7 arm-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Sun Nov  6 00:47:11 2022 daemon.notice openvpn(Sweden_TCP501_AES256)[24289]: library versions: OpenSSL 1.1.1q  5 Jul 2022, LZO 2.10
Sun Nov  6 00:47:11 2022 daemon.err openvpn(Sweden_TCP501_AES256)[24289]: neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'.  If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
Sun Nov  6 00:47:11 2022 daemon.notice openvpn(Sweden_TCP501_AES256)[24289]: Exiting due to fatal error```

Wow ! thank you very much that was it. The tunnel works. I still have to figure out a few things such us why OpenVPN is complaining about an IPv6 route, I tried to remove all IPv6 and also unchecked tun0 IPv6 box but still getting the message

Sun Nov  6 01:12:53 2022 daemon.notice openvpn(Sweden_TCP501_AES256)[26476]: add_route_ipv6(2000::/3 -> :: metric -1) dev tun0
Sun Nov  6 01:12:53 2022 daemon.warn openvpn(Sweden_TCP501_AES256)[26476]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Nov  6 01:12:53 2022 daemon.notice openvpn(Sweden_TCP501_AES256)[26476]: Initialization Sequence Completed```

It is just a notice, shouldn’t present an issue. If you want to dig deeper, look at the config file.

Meanwhile,

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

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