Opened 5 years ago

Closed 4 years ago

#1175 closed Bug / Defect (worksforme)

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 (5)

comment:1 Changed 5 years ago by Selva Nair

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 4 years 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 4 years ago by Selva Nair

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 4 years ago by Selva Nair (previous) (diff)

comment:4 in reply to:  3 Changed 4 years ago by tct

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
https://community.openvpn.net/openvpn/ticket/1229#comment:1

Last edited 4 years ago by tct (previous) (diff)

comment:5 Changed 4 years ago by Gert Döring

Resolution: worksforme
Status: newclosed

No activity here for 8 months - closing.

Note: See TracTickets for help on using tickets.