desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Network Access Error

Open ibr123 opened this issue 8 years ago • 68 comments

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

ibr123 avatar Jul 05 '18 06:07 ibr123

Hi, any updates about this issue?

ibr123 avatar Aug 26 '18 14:08 ibr123

I have the same problem with the 2.5 Windows Desktop release version. Have not found out why it happens.

hachre avatar Nov 16 '18 06:11 hachre

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).

mlaverdiere avatar Nov 22 '18 15:11 mlaverdiere

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.

hachre avatar Nov 22 '18 16:11 hachre

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

mlaverdiere avatar Nov 22 '18 20:11 mlaverdiere

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.

mlaverdiere avatar Nov 22 '18 20:11 mlaverdiere

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)

mikoMK avatar Nov 30 '18 14:11 mikoMK

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.

mlaverdiere avatar Dec 01 '18 15:12 mlaverdiere

OK, the error is back unfortunately. Seems like an intermittent problem...

mlaverdiere avatar Dec 08 '18 14:12 mlaverdiere

In my case it happens always after hibernation.

mikoMK avatar Dec 08 '18 14:12 mikoMK

Happens for me too on Windows 10 x64

tbergeron avatar Dec 11 '18 21:12 tbergeron

Can confirm this is happening with Nextcloud Desktop version 2.5.1final (build 20181204) using Windows 10 x64 1809

damirock avatar Jan 17 '19 12:01 damirock

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!

Cees2439867 avatar Feb 02 '19 09:02 Cees2439867

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.

Etruchet avatar Feb 02 '19 17:02 Etruchet

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.

zingmars avatar Feb 08 '19 19:02 zingmars

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!

MikeZuluUSA avatar Feb 16 '19 20:02 MikeZuluUSA

Also happening here on Windows 10

jcklpe avatar Apr 24 '19 04:04 jcklpe

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

jcklpe avatar May 06 '19 04:05 jcklpe

Fixed it with version 2.5.2!

MikeZuluUSA avatar May 06 '19 10:05 MikeZuluUSA

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 ""

ghost avatar Jun 03 '19 11:06 ghost