Openvpn connection issues

Trying to get the client to connect.

[Jun 30, 2026, 10:27:37 GMT+8] daemon.err: openvpn(TaipeiUDP)[9149]: 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.
[Jun 30, 2026, 10:27:37 GMT+8] daemon.notice: openvpn(TaipeiUDP)[9149]: Exiting due to fatal error
[Jun 30, 2026, 10:27:42 GMT+8] daemon.warn: openvpn(TaipeiUDP)[9174]: DEPRECATED OPTION: --fast-io option ignored.
[Jun 30, 2026, 10:27:42 GMT+8] daemon.notice: openvpn(TaipeiUDP)[9174]: OpenVPN 2.7.4 arm-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
[Jun 30, 2026, 10:27:42 GMT+8] daemon.notice: openvpn(TaipeiUDP)[9174]: library versions: OpenSSL 3.5.7 9 Jun 2026, LZO 2.10
[Jun 30, 2026, 10:27:42 GMT+8] daemon.err: openvpn(TaipeiUDP)[9174]: 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.
[Jun 30, 2026, 10:27:42 GMT+8] daemon.notice: openvpn(TaipeiUDP)[9174]: Exiting due to fatal error

See this article:

Specifically, look at the part about authentication with a user/password (section 2b).

After changing the auth password file. I get this.

vpn(TaipeiUDP)[25919]: DEPRECATED OPTION: --fast-io option ignored.
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: OpenVPN 2.7.4 arm-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: library versions: OpenSSL 3.5.7 9 Jun 2026, LZO 2.10
[Jun 30, 2026, 11:25:03 GMT+8] daemon.warn: openvpn(TaipeiUDP)[25919]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Socket Buffers: R=[180224->180224] S=[180224->180224]
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link local: (not bound)
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link remote: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:26:04 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
[Jun 30, 2026, 11:26:04 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS handshake failed
[Jun 30, 2026, 11:26:04 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: SIGUSR1[soft,tls-error] received, process restarting
[Jun 30, 2026, 11:26:04 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Restart pause, 2 second(s)
[Jun 30, 2026, 11:26:06 GMT+8] daemon.warn: openvpn(TaipeiUDP)[25919]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Socket Buffers: R=[180224->180224] S=[180224->180224]
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link local: (not bound)
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link remote: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:27:06 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
[Jun 30, 2026, 11:27:06 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS handshake failed
[Jun 30, 2026, 11:27:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: SIGUSR1[soft,tls-error] received, process restarting
[Jun 30, 2026, 11:27:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Restart pause, 2 second(s)
[Jun 30, 2026, 11:27:08 GMT+8] daemon.warn: openvpn(TaipeiUDP)[25919]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Socket Buffers: R=[180224->180224] S=[180224->180224]
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link local: (not bound)
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link remote: [AF_INET]140.235.39.81:1194

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

After setting the auth line correctly I get this.

vpn(TaipeiUDP)[25919]: DEPRECATED OPTION: --fast-io option ignored.
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: OpenVPN 2.7.4 arm-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: library versions: OpenSSL 3.5.7 9 Jun 2026, LZO 2.10
[Jun 30, 2026, 11:25:03 GMT+8] daemon.warn: openvpn(TaipeiUDP)[25919]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Socket Buffers: R=[180224->180224] S=[180224->180224]
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link local: (not bound)
[Jun 30, 2026, 11:25:03 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link remote: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:26:04 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
[Jun 30, 2026, 11:26:04 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS handshake failed
[Jun 30, 2026, 11:26:04 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: SIGUSR1[soft,tls-error] received, process restarting
[Jun 30, 2026, 11:26:04 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Restart pause, 2 second(s)
[Jun 30, 2026, 11:26:06 GMT+8] daemon.warn: openvpn(TaipeiUDP)[25919]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Socket Buffers: R=[180224->180224] S=[180224->180224]
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link local: (not bound)
[Jun 30, 2026, 11:26:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link remote: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:27:06 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
[Jun 30, 2026, 11:27:06 GMT+8] daemon.err: openvpn(TaipeiUDP)[25919]: TLS Error: TLS handshake failed
[Jun 30, 2026, 11:27:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: SIGUSR1[soft,tls-error] received, process restarting
[Jun 30, 2026, 11:27:06 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Restart pause, 2 second(s)
[Jun 30, 2026, 11:27:08 GMT+8] daemon.warn: openvpn(TaipeiUDP)[25919]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: TCP/UDP: Preserving recently used remote address: [AF_INET]140.235.39.81:1194
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: Socket Buffers: R=[180224->180224] S=[180224->180224]
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link local: (not bound)
[Jun 30, 2026, 11:27:08 GMT+8] daemon.notice: openvpn(TaipeiUDP)[25919]: UDPv4 link remote: [AF_INET]140.235.39.81:1194

Your logs are really hard to read. Please see my previous post. (I’ve already corrected this for you twice).

I apologize, I've seen no solution yet. Your forum I find difficult to navigate.

I'll fix it for you again.... but it's really not that hard. You click the </> button in the editor and paste your content between the two sets of three tick-marks (```)

These show that you're dealing with a key issue:

This could be related to the system time or to other things such as incorrect directives and/or files.

You should ask your VPN provider for help if it is not an issue of system time.

For the time check, look at the router’s current date before starting OpenVPN. If it is wrong, TLS can fail even when the username/password part is fixed. Also be careful not to paste your auth file, private keys or full VPN profile here; redact those and only share the non-secret directives plus the relevant log lines in a code block.