[Bug]: Per-account connections settings don't apply/work after reboot
⚠️ Before submitting, please verify the following: ⚠️
- [x] This is a bug, not a question or a configuration issue.
- [x] This issue is not already reported on Github (I've searched it).
- [x] Nextcloud Server and Desktop Client are up to date. See Server Maintenance and Release Schedule and Desktop Releases for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct
Bug description
Configuring an account proxy configuration does not work after reboot until the user manually changes the proxy selection.
The connection settings are still shown in the UI and the nextcloud.cfg file still contains the proxy configuration, but the connection does not appear to be using them. So, for some reason, after reboot the Nextcloud Desktop agent is not using its global or the account connection settings.
Steps to reproduce
- Configure account to "Use global settings" (that has a proxy configuration)
- Reboot system
- Connection is broken
- Open account connection settings
- Confirm that it is configured to "Use global settings"
- Confirm that
nextcloud.cfgcontains the proxy configuration - Switch account to "No proxy" -> Connection restored
- Switch account to "Use global settings" -> Connection restored, still
Expected behavior
Account connection settings should work after reboot without manually reapplying.
Which files are affected by this bug
All files
Operating system
Linux
Which version of the operating system you are running.
Ubuntu 22.04
Package
Distro package manager
Nextcloud Server version
28.0.7.4
Nextcloud Desktop Client version
3.14.2
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 3.3.6 to 3.4.0)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Nextcloud Server logs
N/A
Additional info
No response
Related to https://github.com/nextcloud/desktop/pull/6890
To be additionally clear, after reboot I copied and diff'd the nextcloud.cfg file before and after reapplying the connections settings in the GUI.
- Reboot system
- Observe broken connection
- Copy
nextcloud.cfgtonextcloud-before.cfg - Reapply connection proxy settings -> connection restored
- Exit Nextcloud Desktop (to ensure updated
nexctloud.cfgfile) diff nextcloud-before.cfg nexctloud.cfg-> no difference
Bump.
This problem still exists in the latest package.
Package: nextcloud-desktop
Version: 3.15.3-20250107.145041.a595d5bcb-1.0~jammy1
This bug still exists in 3.16.3daily (Ubuntu)
Package: nextcloud-desktop
Version: 3.16.4-20250429.181655.0febbee77-1.0~jammy1
The nextcloud.cfg file appears to have a proper account proxy and global proxy config, but neither are loaded or set after reboot. In this situation, I don't care whether the account profile uses its proxy config or the global proxy configuration, as they are the same. I just need one of them to be loaded and applied.
The only way to get either to work, is to:
- Open the Nextcloud Desktop client GUI
- Navigate to the account proxy network tab
- Toggle from "Use global settings"/"Manually specify proxy" to "No Proxy" (or any other option really)
- Toggle back to "Use global settings"/"Manually specify proxy" -> connectivity established
...snip...
1\networkProxyHostName=127.0.0.1
1\networkProxyNeedsAuth=false
1\networkProxyPort=8080
1\networkProxySetting=0
1\networkProxyType=1
1\networkProxyUser=
...snip...
[Proxy]
host=127.0.0.1
needsAuth=false
port=8080
type=1
user=
The buggy behavior has now changed with the release of 3.17.0. As reported in #8602, proxy functionality is now completely broken. There is no longer a way to configure system proxy configurations for the Nextcloud Desktop application and the original workaround of switching between proxy connection options no longer restores connectivity.
The new broken behavior includes:
- Proxy settings selection (e.g., "No proxy") is not saved/persisted
- Manual proxy type is not saved/persisted
Steps to replicate:
- Add account
- Navigate to "Connection settings"
- Select "Manually specify proxy"
- Enter values (e.g., SOCKS5, 127.0.0.1, and 8080) -> Broken (#8602)
.
- Restart Desktop application
- Navigate to "Connection settings"
- Observe that proxy settings have changed to "Use system proxy"
.
- Switch to "Manually specify proxy"
- Observe that the proxy type has been changed from "SOCKS5 proxy" to "HTTP(S) proxy"
.
Would it be possible to raise the priority of this issue?
The buggy behavior has now changed with the release of 3.17.0. As reported in #8602, proxy functionality is now completely broken. There is no longer a way to configure system proxy configurations for the Nextcloud Desktop application
This prevents users and organizations who rely on a forward proxy for internet access from updating their Nextcloud clients. This has a significant impact on environments with strict network policies, where manual workarounds are not feasible at scale.
I am working on a fix for this.
I am working on a fix for this.
Hi @camilasan, do you have any updates on this bug and #8602? They’re most likely related to each other.
As mentioned in #8602, this appears to be resolved in v35.0.0 via PR #10957.
Thank you, @camilasan :)