OpenVPN: "There already exist a config file named..."

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....

OpenVPN: "There already exist a config file named..."

Postby peter_b » Thu Mar 02, 2017 9:38 pm

[PROBLEM]
Running OpenVPN as client on Windows 7, I ran into the following error message:
There already exist a config file named '%s'. You cannot have multiple config files with the same name, even if they reside in diffrent folders.


The problem occurred, because the same .ovpn config file was once imported - and then copied to OpenVPN's config folder ("C:\Program Files\OpenVPN\config").

[SOLUTION]
On Windows 7, OpenVPN stores the configuration in 2 places:
  • Global: C:\Program Files\OpenVPN\config
  • Per-user: C:\Users\[YOUR_USERNAME]\OpenVPN\config

If you import configs using the "Import file..." option, they are copied to the "Users" configuration.
Simply delete the configuration file(s) ending in ".ovpn" either of these folders, depending if you want to keep the global or per-user configuration.
  • 0

User avatar
peter_b
Chatterbox
 
Posts: 308
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Return to Knowledge Base

Who is online

Users browsing this forum: No registered users and 6 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Google [Bot] and 35 guests

cron
Reputation System ©'