Opened 14 months ago

Last modified 5 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
Cc:

Description

Hello,
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 https://ibb.co/MGRrc6M

Change History (4)

comment:1 Changed 14 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 7 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 7 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 7 months ago by selvanair (previous) (diff)

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

Replying to selvanair:

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

FYI: https://community.openvpn.net/openvpn/ticket/1238#comment:8

Version 0, edited 5 months ago by tincantech (next)
Note: See TracTickets for help on using tickets.