Network Access Error
Hi,
im using the NextCloud CMD for syncing and i get the error of An error occurred while opening a folder Network access is disabled i solve this issue by terminating the whole project and start it again, surprisingly that on the release build this problem appears more often that the debug build,
im using QT 5.10.1 and im running the code on VS2017, here is the CMD outputs:
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
how to solve this problem? and what part of the code is responsible of this issue?
Thanks
UPDATE: the class the generates the error is networkjobs.cpp
Hi, any updates about this issue?
I have the same problem with the 2.5 Windows Desktop release version. Have not found out why it happens.
Exactly the same problem here on Windows 10, with NC client 2.5.0v2.5.0 (build 20181112). I have to quit/restart NC client to get rid of the error message.
The problem does not occur for me on Linux (Fedora 29, with NC client 2.5).
I've found out by now that it seems to happen with 100% reproducibility after waking up from S3 standby. It may need to be asleep for a while to trigger the problem.
Here are some relevant info and maybe a duplicated bug report:
https://github.com/nextcloud/desktop/issues/865
https://help.nextcloud.com/t/network-disabled-error/33709
I've found out that when the error occurs, if I go in the parameters and I change the proxy from system to no proxy (and vice-versa), the error disappears, so I don't have to quit/restart the client. Not a solution of course, but maybe just a clue on what could be the problem.
I can confirm the proxy "trick" mentioned by @mlaverdiere
Additional details:
- This also happens when waking up from S4 standby (Hibernate)
- I don't know if this matters, but in my case the client installation folder and the data folder are on different disks (both local)
I don't know what happened but in the last few days the error didn't occur despite many suspend/standby resuming... I can't pinpoint what has changed on my system and I didn't change my NC configuration. I'll report back if I find something useful.
OK, the error is back unfortunately. Seems like an intermittent problem...
In my case it happens always after hibernation.
Happens for me too on Windows 10 x64
Can confirm this is happening with Nextcloud Desktop version 2.5.1final (build 20181204) using Windows 10 x64 1809
This happens after I upgraded the client from version 2.31 to 2.51. Normal boot everything is fine. After hibernation the client complains that network access is unavailable. Tried using system proxy but that makes no difference. Unfortunately I have not saved the 2.31 version which prevents me from downgrading. Thanks for all your effort on working on NextCloud services, much appreciated!
This happens after I upgraded the client from version 2.31 to 2.51. Normal boot everything is fine. After hibernation the client complains that network access is unavailable. Tried using system proxy but that makes no difference. Unfortunately I have not saved the 2.31 version which prevents me from downgrading. Thanks for all your effort on working on NextCloud services, much appreciated!
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.
I have the same problem. The proxy workaround works, but if I try to open the "Options" menu right after resuming from hibernation the Nextcloud app will crash without an error message. Version 2.5.1final (build 20181204) on Windows 10.
Same Problem over here! Win10x64 @NC Version 2.5.1final (build 20181204)
@mlaverdiere workaround helped for me too. No need to restart the client. But it is still freaking me out!
Also happening here on Windows 10
Checked this issue here: https://github.com/nextcloud/desktop/issues/865 just now and from a link there I downloaded 2.5.2 and that seems to have solved the problem so far.
Here's a link https://download.nextcloud.com/desktop/releases/Windows/Nextcloud-2.5.2-setup.exe
Fixed it with version 2.5.2!
Version 2.5.2git build 20190319.
I still have the issue.
[OCC::AccessManager::createRequest 6 "PROPFIND" "http://xxxx/nextcloud/remote.php/dav/files/xxxx/" has X-Request-ID "d9cbf639-5e11-4cbe-88c8-0d7e937ae5e0"
[OCC::AbstractNetworkJob::start OCC::PropfindJob created for "http://xxxx" + "/" "OCC::QuotaInfo"
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::AbstractNetworkJob::slotFinished QNetworkReply::NetworkError(UnknownNetworkError) "Network access is disabled." QVariant(Invalid)
[OCC::WebFlowCredentials::stillValid QNetworkReply::NetworkError(UnknownNetworkError)
[OCC::WebFlowCredentials::stillValid "Network access is disabled."
[OCC::PropfindJob::finished PROPFIND of QUrl("http://xxxx/nextcloud/remote.php/dav/files/xxxx/") FINISHED WITH STATUS "UnknownNetworkError Network access is disabled."
[OCC::PropfindJob::finished *not* successful, http result code is 0 ""