Windows 11 - ERROR: Failed retrieving username or password

Weekly dev snapshots are available for testing.
We talk about them here. Testing features in the dev snapshot helps the features make it to stable.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please report your experience with testing branch. Include what you were using and how
If there is a problem, the more info the better!
Post Reply
irvaragon
OpenVpn Newbie
Posts: 1
Joined: Sun Jul 11, 2021 3:27 am

Windows 11 - ERROR: Failed retrieving username or password

Post by irvaragon » Sun Jul 11, 2021 4:47 pm

This is what I am getting, no username/pwd prompt window to enter credentials:
Windows 11 arm64 using arm64 installation from community.

2021-07-11 09:40:27 OpenVPN 2.5.3 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jun 17 2021
2021-07-11 09:40:27 Windows version 10.0 (Windows 10 or greater) 64bit
2021-07-11 09:40:27 library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
2021-07-11 09:40:27 ERROR: Failed retrieving username or password
2021-07-11 09:40:27 Exiting due to fatal error

Any help would be appreciated.
Last edited by TinCanTech on Tue Aug 24, 2021 11:33 pm, edited 1 time in total.
Reason: Mod: Improved Subject for accuracy to web-spiders

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Windows 11 - connecting to management interface failed

Post by TinCanTech » Sun Jul 11, 2021 6:57 pm

Add this to your config file:

Code: Select all

auth-user-pass

hmartinez82
OpenVpn Newbie
Posts: 1
Joined: Fri Aug 13, 2021 5:06 am

Re: Windows 11 - connecting to management interface failed

Post by hmartinez82 » Fri Aug 13, 2021 5:07 am

My config file already has that. Same error still occur on Windows 11 ARM64 :(

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Windows 11 - connecting to management interface failed

Post by TinCanTech » Fri Aug 13, 2021 12:28 pm


javier.cardaba@basetis.com
OpenVpn Newbie
Posts: 1
Joined: Mon Aug 23, 2021 10:14 am

Re: Windows 11 - connecting to management interface failed

Post by javier.cardaba@basetis.com » Mon Aug 23, 2021 10:14 am

Same issue here!!!

toroidalblob
OpenVpn Newbie
Posts: 1
Joined: Tue Aug 24, 2021 9:17 pm

Re: Windows 11 - connecting to management interface failed

Post by toroidalblob » Tue Aug 24, 2021 10:55 pm

I'm hitting this too, and TinCanTech's link actually helped me quite a bit.

OpenVPN client: Community Edition, specifically OpenVPN-2.5.3-I601-arm64.msi
Client OS: Microsoft Windows [Version 10.0.22000.160] (current Insider Preview Dev; yes, ARM64)
OpenVPN server: free tier of vpnbook.com, US1 region

I have confirmed this same config and OpenVPN version works on x64 and ARM64 Windows 10.

I don't have access to the server config, but I don't think that actually matters here since the log file shows a problem very early on.

Here's the client configuration I'm using:

Client config
client
dev tun3
proto tcp
remote x.x.x.x 80
remote y.y.y.y 80
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass
comp-lzo
verb 3
cipher AES-128-CBC
fast-io
pull
route-delay 2
redirect-gateway
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
</key>


When I use this to connect, I get a modal dialog with the text in the name of this thread and this in the log it links to, just like the OP:

Client Log
2021-08-24 15:15:39 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
2021-08-24 15:15:39 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-128-CBC' to --data-ciphers or change --cipher 'AES-128-CBC' to --data-ciphers-fallback 'AES-128-CBC' to silence this warning.
2021-08-24 15:15:39 Flag 'def1' added to --redirect-gateway (iservice is in use)
2021-08-24 15:15:39 OpenVPN 2.5.3 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jun 17 2021
2021-08-24 15:15:39 Windows version 10.0 (Windows 10 or greater) 64bit
2021-08-24 15:15:39 library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
2021-08-24 15:15:39 ERROR: Failed retrieving username or password
2021-08-24 15:15:39 Exiting due to fatal error


Searching for "Failed retrieving username or password" and "arm64 openvpn", I found this issue which is what I am hitting:

https://community.openvpn.net/openvpn/ticket/1418

There's a fix coming soon:

https://patchwork.openvpn.net/patch/1871/

If your system isn't ARM64 and you're not on a Windows Insider Program version of Windows, then this likely doesn't apply to you. :/

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Windows 11 - connecting to management interface failed

Post by TinCanTech » Tue Aug 24, 2021 11:16 pm

toroidalblob wrote:
Tue Aug 24, 2021 10:55 pm
TinCanTech's link actually helped
Thank you !

Also, your post looks to be accurate to me. Thank you, a second time. 8-)

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Windows 11 - connecting to management interface failed

Post by TinCanTech » Tue Aug 24, 2021 11:22 pm

I have moved this up to Testing Branch because this is testing in action.
And updated the subject, for what it is worth.

H2H

Post Reply