Network Disabled Error - Qt QNetworkAccessManager
Expected behaviour
No "Network access is disabled." error message This issue was reported first on the community forum: https://help.nextcloud.com/t/network-disabled-error/33709
the error is coming from networkjobs.cpp:
07-04 15:27:30:007 [ info sync.engine ]: Server ""
07-04 15:27:30:009 [ info sync.csync.csync ]: ## Starting local discovery ##
07-04 15:27:30:011 [ info sync.csync.csync ]: Update detection for local replica took 0.001 seconds walking 0 files
07-04 15:27:30:012 [ info sync.csync.csync ]: ## Starting remote discovery ##
07-04 15:27:30:014 [ info sync.accessmanager ]: 6 "PROPFIND" "http://**********" has X-Request-ID "************"
07-04 15:27:30:017 [ info sync.networkjob ]: OCC::LsColJob created for "http:**********" + "" "OCC::DiscoverySingleDirectoryJob"
07-04 15:27:30:020 [ warning sync.networkjob ]: QNetworkReply::NetworkError(UnknownNetworkError) "Network access is disabled." QVariant(Invalid)
07-04 15:27:30:022 [ info sync.networkjob.lscol ]: LSCOL of QUrl("http:**********************/") FINISHED WITH STATUS QNetworkReply::NetworkError(UnknownNetworkError) "Network access is disabled."
07-04 15:27:30:024 [ warning sync.discovery ]: LSCOL job error "Network access is disabled." 0 QNetworkReply::NetworkError(UnknownNetworkError)
07-04 15:27:30:026 [ warning sync.csync.updater ]: opendir failed for - errno 5
07-04 15:27:30:027 [ warning sync.engine ]: ERROR during csync_update : "An error occurred while opening a folder Network access is disabled."
07-04 15:27:30:031 [ info sync.database ]: Closing DB "*********/._sync_369bd5743963.db"
07-04 15:27:30:037 [ info sync.engine ]: CSync run took 32 ms
Actual behaviour
Nextcloud desktop clients stops sync with an "Network access is disabled." error message after a network change.
Steps to reproduce
- Install Nextcloud Desktop Version 2.5.0v2.5.0 (build 20181112)
- Change network (wifi <> wired)
- The error will appear
Client configuration
Client version: Nextcloud Desktop Version 2.5.0v2.5.0 (build 20181112) Operating system: Windows 10 - 64 bit OS language: en-US
This issue is also mentioned for owncloud here: https://github.com/owncloud/client/issues/5977 And in bug reports for Qt: https://bugreports.qt.io/browse/QTBUG-55180 According to that conversation a workaround is described here: https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/ Can somebody from the nextcloud devs look into this?
For me this error appears after every standby since Windows client version 2.5.0. Earlier versions of the client did not show this behavior.
A fix is to quit the client and to start it again. Every thing is fine until the next windows standby.
same here, it's impossible to sync files, i have always this error, help ! no problem until 2.5.0 on 5 differents servers
I am also seeing this issue after standby on v2.5.0 build 20181112. Updated the client yesterday and today it's refusing to sync. Pause & resume and force sync did not help, although restarting the client did.
I also experience this issue on Linux (Ubuntu 18.04) since upgrading to 2.5.0-20181111.015125~bionic, using the PPA packages.
Also noted that with the AppImage of the same version the problem does not occur.
Owncloud is providing an archive location with older builds for the desktop client, does something similar exist with Nextcloud as well? I currently have to restart the Nextcloud Desktop client everytime I wake my laptop from Standby.
https://owncloud.org/download/older-versions/
edit: 2.5.0 client on Windows 10. Just upgraded to 2.5.1 will report back if the issue does not occur there.
Got the same error on 2.5.1final (build 20181204) on Windows 10. This was after regular device hibernate and wake-up the next morning. Didn't recover until restarting the client. Enabled debug and will provide logs next occurrence.
[OCC::FolderMan::scheduleFolder Sync for folder "XXXX" already scheduled, do not enqueue! [OCC::WebFlowCredentials::slotFinished request finished [OCC::WebFlowCredentials::stillValid Still valid? [OCC::WebFlowCredentials::stillValid QNetworkReply::NetworkError(NoError) [OCC::WebFlowCredentials::stillValid "Unknown error" [OCC::JsonApiJob::finished JsonApiJob of QUrl("https://my-nextcloud-host:10443/owncloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json") FINISHED WITH STATUS "OK" [OCC::JsonApiJob::finished Nothing changed so nothing to retrieve - status code: 304 [OCC::ServerNotificationHandler::slotNotificationsReceived Status code 304 Not Modified - No new notifications. [OCC::AccessManager::createRequest 6 "PROPFIND" "https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/bart-sf3/" has X-Request-ID "YYY" [OCC::AbstractNetworkJob::start OCC::PropfindJob created for "https://my-nextcloud-host/owncloud" + "/" "OCC::QuotaInfo" [OCC::AbstractNetworkJob::slotTimeout Network job timeout QUrl("ocs/v2.php/core/navigation/apps") [OCC::AccessManager::createRequest 2 "" "https://my-nextcloud-host:10443/owncloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json" has X-Request-ID "YYYY" [OCC::AbstractNetworkJob::start OCC::JsonApiJob created for "https://my-nextcloud-host/owncloud" + "ocs/v2.php/apps/notifications/api/v2/notifications" "OCC::ServerNotificationHandler" [csync_update ## Starting local discovery ## [OCC::FolderMan::slotScheduleFolderByTime Scheduling folder "1" because it has been 46792599 ms since the last sync [OCC::WebFlowCredentials::slotFinished request finished [OCC::AbstractNetworkJob::slotFinished QNetworkReply::NetworkError(HostNotFoundError) "Host my-nextcloud-host not found" QVariant(Invalid) [OCC::WebFlowCredentials::stillValid Still valid? [OCC::WebFlowCredentials::stillValid QNetworkReply::NetworkError(HostNotFoundError) [OCC::WebFlowCredentials::stillValid "Host my-nextcloud-host not found" [OCC::PropfindJob::finished PROPFIND of QUrl("https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/bart-sf3/") FINISHED WITH STATUS "HostNotFoundError Host my-nextcloud-host not found" [OCC::PropfindJob::finished not successful, http result code is 0 "" [csync_update Update detection for local replica took 7.154 seconds walking 187 files [csync_update ## Starting remote discovery ## [OCC::AccessManager::createRequest 6 "PROPFIND" "https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/SOME/DIRECTORY" has X-Request-ID "ZZZZ" [OCC::AbstractNetworkJob::start OCC::LsColJob created for "https://my-nextcloud-host/owncloud" + "/SOME/DIRECTORY" "OCC::DiscoverySingleDirectoryJob" [OCC::WebFlowCredentials::slotFinished request finished [OCC::AbstractNetworkJob::slotFinished QNetworkReply::NetworkError(UnknownNetworkError) "Network access is disabled." QVariant(Invalid) [OCC::WebFlowCredentials::stillValid Still valid? [OCC::WebFlowCredentials::stillValid QNetworkReply::NetworkError(UnknownNetworkError) [OCC::WebFlowCredentials::stillValid "Network access is disabled." [OCC::LsColJob::finished LSCOL of QUrl("https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/SOME/DIRECTORY") FINISHED WITH STATUS "UnknownNetworkError Network access is disabled." [OCC::DiscoverySingleDirectoryJob::lsJobFinishedWithErrorSlot LSCOL job error "Network access is disabled." 0 QNetworkReply::NetworkError(UnknownNetworkError) [csync_ftw opendir failed for - errno 5 [OCC::SyncEngine::handleSyncError ERROR during csync_update : "Er trad een fout op bij het openen van een map Network access is disabled." [OCC::ActivityWidget::addError Item "SOME/LOCAL/DIRECTORY" retrieved resulted in "Er trad een fout op bij het openen van een map Network access is disabled." [OCC::ActivityListModel::addErrorToActivityList Error successfully added to the notification list: "Er trad een fout op bij het openen van een map Network access is disabled."
Dutch to english: "Er trad een fout op bij het openen van een map" -> "An error occured while opening a folder"
Limited to the "relevant" messages due to public github and I dind't have the time to review/redact everything. I have the log saved if someone requires it fully. If I understand correctly what I basically see happening and tried to capture in the logs is the following (too bad there aren't any timestamps, this would have made the actual debugging easier)
- There is/was a successful sync;
- A DNS error occurs (probably my wifi hasen't connected yet when returning from hibernate)
- Then the "Network access is disabled" pops up
- Then there is some error about a local directory ( [csync_ftw opendir failed for - errno 5 )
Hit me up if anyone thinks he can distinguish more information from the full logs.
I experienced the same problem after stand-by.
I have build 2.5.1 desktop client, and it says the same error "Network Access is Disabled."
Restarting the desktop client it makes it fixed. it's syncing normally now..... however. Am seriously considering Seafile due to lack of reliabilty of sync in NC lately.
I got the same problem after wake-up on windows 10 - V. 2.5 (Build 20181204)
Change the "Proxy Settings" from "Use system proxy" to "No Proxy" seems to help for me.
same here
+1
Same problem here. Every time I restore my desktop from standby, I need to manually restart Nextcloud client. Windows 10 1803 x64, Nextcloud client 2.5.1.
+1, observed on 3 different Win10 machines with the NC client. Upon return from standby, "network access is disabled" and client restart is required.
I got the same problem after wake-up on windows 10 - V. 2.5 (Build 20181204)
Change the "Proxy Settings" from "Use system proxy" to "No Proxy" seems to help for me.
This workaround helped for me as well.
I got the same problem after wake-up on windows 10 - V. 2.5 (Build 20181204) Change the "Proxy Settings" from "Use system proxy" to "No Proxy" seems to help for me.
This workaround helped for me as well.
The workaround helps in that you can avoid restarting the application, but that's all. "Proxy settings" has always been set to "No Proxy" on my windows 10 client and I still get the error every time the network changes. Then the workaround is
- Open Network
- Change from "No Proxy" to "Use system proxy" and then again to "No proxy" in "Proxy settings"
- Select account (close Network view)
- Syncronization works again...
Points 2 is probably resetting the internal state pretty much like restarting the application... so...
Still using 2.3.3 which works like charm.
I got the same problem after wake-up on windows 10 - V. 2.5 (Build 20181204)
Change the "Proxy Settings" from "Use system proxy" to "No Proxy" seems to help for me.
This workaround works perfectly for me - V. 2.5.1final (build 20181204)
Owncloud is providing an archive location with older builds for the desktop client, does something similar exist with Nextcloud as well? I currently have to restart the Nextcloud Desktop client everytime I wake my laptop from Standby.
I have exactly the same problem. You can download older versions here : https://download.nextcloud.com/desktop/releases/Windows/
I've installed 2.3.3 (build 1) version, and it works.
Experiencing the same issue in 2.5.1final (build 20181204). gudbergsen's workaround https://github.com/nextcloud/desktop/issues/865#issuecomment-449818541 works to temporarily fix the problem. However, the "Network Access Disabled" error has happened more than once. It would obviously be better to source the problem so we do not have to keep switching back and forth from "Use system proxy" to "No Proxy"
Seems like killing the nextcloud.exe aslo works in windows 10:
- taskmgr
- get-process nextcloud|stop-process -force
- taskkill /im nextcloud.exe /f
It seems to restart it's process and syncing agian.
Seems like killing the nextcloud.exe aslo works in windows 10:
- taskmgr
- get-process nextcloud|stop-process -force
- taskkill /im nextcloud.exe /f
It seems to restart it's process and syncing agian.
Well, that's actually waaaay overkill (pun intended). Just Shut it down and restart it, no need to shoot and kill. HOWEVER, your solutions makes sense if you put a kill and restart as a scheduled job. Also, you should not need /F.
I'm stil using 2.3.3, by the way, with no problem at all.