Opened 16 months ago

Last modified 6 months ago

#1175 new Bug / Defect

Error - "There already exist a config file ... " OpenVPN GUI

Reported by: julob Owned by:
Priority: major Milestone:
Component: Generic / unclassified Version: OpenVPN 2.4.6 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: config, exist, file


everytime I start OpenVPN GUI I get error "There already exists a config file named xxxx.ovpn. You cannot have multiple config files with the..."
This error shows up repeatedly for each config file, so I must click OK 6 times to start program.
My config files are in config folder in location where OpenVPN is installed (not in user profile). There are no files with the same name in other sub-directories.

The only .ovpn files on my computer

Change History (4)

comment:1 Changed 16 months ago by selvanair

The GUI looks for configuration files in two locations: (i) the folder defined in the registry value
"HKLM\Software\OpenVPN\config_dir" and (ii) the folder shown against "Configuration Files Folder:" in the advanced tab of the settings menu of the GUI.

Could you please check again the contents of these two locations?

comment:2 Changed 8 months ago by Gert Döring

Could it be that both locations point to the same directory due to accidential misconfiguration? Would the GUI be smart enough to notice, or just read in both directories (= two times the same directory) and complain about every single file?

comment:3 Changed 8 months ago by selvanair

We do a simple string comparison on the two directory paths to avoid scanning identical locations, but could be probably tricked by names including ..\ or definitely by usages like \\?\C:\ vs C:\.

As @julob has not responded, I suppose this was some quirky incident and has been resolved.

One improvement I can think of is to collect all duplicate config warnings into one and show as one message instead of popping up a message window for each incidence.

Last edited 8 months ago by selvanair (previous) (diff)

comment:4 in reply to:  3 Changed 6 months ago by tincantech

Replying to selvanair:

As @julob has not responded, I suppose this was some quirky incident and has been resolved.


Last edited 6 months ago by tincantech (previous) (diff)
Note: See TracTickets for help on using tickets.