-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removed config files do not disappear from the GUI list #729
Comments
I am on it.
|
|
@selvanair this sounds as if this is a "known effect" (config file list not recreated from scratch) - but it still feels weird, and I'm sure I'm not understanding all the deails...? |
Previously if one sets "Persistent Connections" to anything different from "Auto", we will recreate configs list. However, after this commit it is no longer possible. @selvanair is it so, that we don't recreate configs list only not to lose "auto_connect" state? Maybe this could be separately preserved across recreation? |
It has been a while and I do not recall the details. I can't even completely comprehend my own commit message right now! Will take a look. That said, it must be possible to retain the "auto_connect" info and recreate the list but probably I thought it was complicated at the time... After all the user can fix it by restarting the GUI and how often do they delete configs. |
Since the introduction of persistent connections, we no longer recreate the entire config menu but only add newly added connection profiles during each rescan. This leaves any deleted configs actively displayed in the menu until the GUI is restarted. Improve this situation by graying out entries corresponding to profiles not readable from file system. If the file reappears the item gets automatically enabled again. Also, if the corresponding connection is active, the item is not grayed out to allow the user to disconnect or reconnect it. Otherwise the corresponding OpenVPN core process will hang around with no way to control it from the GUI. Here "active" includes those on management-hold in case of persistent connections, as those can be started even if the underlying config file has gone missing. Addresses github issue OpenVPN#729 Signed-off-by: Selva Nair <[email protected]>
Since the introduction of persistent connections, we no longer recreate the entire config menu but only add newly added connection profiles during each rescan. This leaves any deleted configs actively displayed in the menu until the GUI is restarted. Improve this situation by graying out entries corresponding to profiles not readable from file system. If the file reappears, the item gets automatically enabled again. Also, if the corresponding connection is active, the item is not grayed out to allow the user to disconnect or reconnect it. Otherwise the corresponding OpenVPN core process will hang around with no way to control it from the GUI. Here "active" includes those on management-hold in case of persistent connections, as those can be started even if the underlying config file has gone missing. Addresses github issue OpenVPN#729 Signed-off-by: Selva Nair <[email protected]>
Since the introduction of persistent connections, we no longer recreate the entire config menu but only add newly added connection profiles during each rescan. This leaves any deleted configs actively displayed in the menu until the GUI is restarted. Improve this situation by graying out entries corresponding to profiles not readable from file system. If the file reappears, the item gets automatically enabled again. Also, if the corresponding connection is active, the item is not grayed out to allow the user to disconnect or reconnect it. Otherwise the corresponding OpenVPN core process will hang around with no way to control it from the GUI. Here "active" includes those on management-hold in case of persistent connections, as those can be started even if the underlying config file has gone missing. Addresses github issue OpenVPN#729 Signed-off-by: Selva Nair <[email protected]>
Since the introduction of persistent connections, we no longer recreate the entire config menu but only add newly added connection profiles during each rescan. This leaves any deleted configs actively displayed in the menu until the GUI is restarted. Improve this situation by graying out entries corresponding to profiles not readable from file system. If the file reappears, the item gets automatically enabled again. Also, if the corresponding connection is active, the item is not grayed out to allow the user to disconnect or reconnect it. Otherwise the corresponding OpenVPN core process will hang around with no way to control it from the GUI. Here "active" includes those on management-hold in case of persistent connections, as those can be started even if the underlying config file has gone missing. Addresses github issue OpenVPN#729 Signed-off-by: Selva Nair <[email protected]>
Since the introduction of persistent connections, we no longer recreate the entire config menu but only add newly added connection profiles during each rescan. This leaves any deleted configs actively displayed in the menu until the GUI is restarted. Improve this situation by graying out entries corresponding to profiles not readable from file system. If the file reappears, the item gets automatically enabled again. Also, if the corresponding connection is active, the item is not grayed out to allow the user to disconnect or reconnect it. Otherwise the corresponding OpenVPN core process will hang around with no way to control it from the GUI. Here "active" includes those on management-hold in case of persistent connections, as those can be started even if the underlying config file has gone missing. Addresses github issue OpenVPN#729 Signed-off-by: Selva Nair <[email protected]>
So, @lstipakov made me fight windows OpenVPN to test the DCO/server functionality, and I was copying .ovpn files all around the place and then cleaning up stuff again... and I found something which I think is a bug.
This happens with the GUI bundled in our official 2.6.13-I001 installer (I002 is not on swupdate yet), so no private builds involved yet. No upgrade installation either, removed the old install and installed fresh, with default options.
There are a number of .ovpn files already in c:\program files\openvpn\config, and openvpn-gui.exe is running.
Add a new .ovpn file, right-click GUI, new file is visible.
Remove an .ovpn file (either the new one or one of the others), right-click GUI, freshly-removed config is still visible - trying to start it will of course cause an error (
IService > OpenVPN exited with error: exit code = 1
).I do not understand enough windows coding to figure out how the GUI notices that "new files have appeared" and why it does not notice "files have been removed".
The text was updated successfully, but these errors were encountered: