{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/desktop/issues/865","repository_url":"https://api.github.com/repos/nextcloud/desktop","labels_url":"https://api.github.com/repos/nextcloud/desktop/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/desktop/issues/865/comments","events_url":"https://api.github.com/repos/nextcloud/desktop/issues/865/events","html_url":"https://github.com/nextcloud/desktop/issues/865","id":382557684,"node_id":"MDU6SXNzdWUzODI1NTc2ODQ=","number":865,"title":"Network Disabled Error - Qt QNetworkAccessManager","user":{"login":"joephein","id":12627719,"node_id":"MDQ6VXNlcjEyNjI3NzE5","avatar_url":"https://avatars0.githubusercontent.com/u/12627719?v=4","gravatar_id":"","url":"https://api.github.com/users/joephein","html_url":"https://github.com/joephein","followers_url":"https://api.github.com/users/joephein/followers","following_url":"https://api.github.com/users/joephein/following{/other_user}","gists_url":"https://api.github.com/users/joephein/gists{/gist_id}","starred_url":"https://api.github.com/users/joephein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joephein/subscriptions","organizations_url":"https://api.github.com/users/joephein/orgs","repos_url":"https://api.github.com/users/joephein/repos","events_url":"https://api.github.com/users/joephein/events{/privacy}","received_events_url":"https://api.github.com/users/joephein/received_events","type":"User","site_admin":false},"labels":[{"id":815325335,"node_id":"MDU6TGFiZWw4MTUzMjUzMzU=","url":"https://api.github.com/repos/nextcloud/desktop/labels/0.%20Needs%20triage","name":"0. Needs triage","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-20T08:50:28Z","updated_at":"2018-12-21T11:20:53Z","closed_at":null,"author_association":"NONE","body":"### Expected behaviour\r\nNo \"Network access is disabled.\" error message\r\nThis issue was reported first on the community forum: https://help.nextcloud.com/t/network-disabled-error/33709\r\n\r\nthe error is coming from networkjobs.cpp:\r\n```\r\n    07-04 15:27:30:007 [ info sync.engine ]:        Server \"\"\r\n    07-04 15:27:30:009 [ info sync.csync.csync ]:   ## Starting local discovery ##\r\n    07-04 15:27:30:011 [ info sync.csync.csync ]:   Update detection for local replica took 0.001 seconds walking 0 files\r\n    07-04 15:27:30:012 [ info sync.csync.csync ]:   ## Starting remote discovery ##\r\n    07-04 15:27:30:014 [ info sync.accessmanager ]: 6 \"PROPFIND\" \"http://**********\" has X-Request-ID \"************\"\r\n    07-04 15:27:30:017 [ info sync.networkjob ]:    OCC::LsColJob created for \"http:**********\" + \"\" \"OCC::DiscoverySingleDirectoryJob\"\r\n    07-04 15:27:30:020 [ warning sync.networkjob ]: QNetworkReply::NetworkError(UnknownNetworkError) \"Network access is disabled.\" QVariant(Invalid)\r\n    07-04 15:27:30:022 [ info sync.networkjob.lscol ]:      LSCOL of QUrl(\"http:**********************/\") FINISHED WITH STATUS QNetworkReply::NetworkError(UnknownNetworkError) \"Network access is disabled.\"\r\n    07-04 15:27:30:024 [ warning sync.discovery ]:  LSCOL job error \"Network access is disabled.\" 0 QNetworkReply::NetworkError(UnknownNetworkError)\r\n    07-04 15:27:30:026 [ warning sync.csync.updater ]:      opendir failed for  - errno 5\r\n    07-04 15:27:30:027 [ warning sync.engine ]:     ERROR during  csync_update :  \"An error occurred while opening a folder Network access is disabled.\"\r\n    07-04 15:27:30:031 [ info sync.database ]:      Closing DB \"*********/._sync_369bd5743963.db\"\r\n    07-04 15:27:30:037 [ info sync.engine ]:        CSync run took  32 ms\r\n```\r\n\r\n### Actual behaviour\r\nNextcloud desktop clients stops sync with an \"Network access is disabled.\" error message after a network change.\r\n\r\n### Steps to reproduce\r\n1. Install Nextcloud Desktop Version 2.5.0v2.5.0 (build 20181112)\r\n2. Change network (wifi <> wired)\r\n3. The error will appear\r\n\r\n### Client configuration\r\nClient version: Nextcloud Desktop Version 2.5.0v2.5.0 (build 20181112)\r\nOperating system: Windows 10 - 64 bit\r\nOS language: en-US\r\n\r\nThis issue is also mentioned for owncloud here: https://github.com/owncloud/client/issues/5977\r\nAnd in bug reports for Qt: https://bugreports.qt.io/browse/QTBUG-55180\r\nAccording to that conversation a workaround is described here: https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/\r\nCan somebody from the nextcloud devs look into this?\r\n\r\n![nextcloud_error](https://user-images.githubusercontent.com/12627719/48761645-761c6280-eca9-11e8-8dbf-64d58bb3a47c.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/desktop/issues/comments/449362915","html_url":"https://github.com/nextcloud/desktop/issues/865#issuecomment-449362915","issue_url":"https://api.github.com/repos/nextcloud/desktop/issues/865","id":449362915,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTM2MjkxNQ==","user":{"login":"BdeHeij","id":5400140,"node_id":"MDQ6VXNlcjU0MDAxNDA=","avatar_url":"https://avatars1.githubusercontent.com/u/5400140?v=4","gravatar_id":"","url":"https://api.github.com/users/BdeHeij","html_url":"https://github.com/BdeHeij","followers_url":"https://api.github.com/users/BdeHeij/followers","following_url":"https://api.github.com/users/BdeHeij/following{/other_user}","gists_url":"https://api.github.com/users/BdeHeij/gists{/gist_id}","starred_url":"https://api.github.com/users/BdeHeij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BdeHeij/subscriptions","organizations_url":"https://api.github.com/users/BdeHeij/orgs","repos_url":"https://api.github.com/users/BdeHeij/repos","events_url":"https://api.github.com/users/BdeHeij/events{/privacy}","received_events_url":"https://api.github.com/users/BdeHeij/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T11:20:53Z","updated_at":"2018-12-21T11:20:53Z","author_association":"NONE","body":"> [OCC::FolderMan::scheduleFolder \tSync for folder  \"XXXX\"  already scheduled, do not enqueue!\r\n> [OCC::WebFlowCredentials::slotFinished \trequest finished\r\n> [OCC::WebFlowCredentials::stillValid \tStill valid?\r\n> [OCC::WebFlowCredentials::stillValid \tQNetworkReply::NetworkError(NoError)\r\n> [OCC::WebFlowCredentials::stillValid \t\"Unknown error\"\r\n> [OCC::JsonApiJob::finished \tJsonApiJob of QUrl(\"https://my-nextcloud-host:10443/owncloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json\") FINISHED WITH STATUS \"OK\"\r\n> [OCC::JsonApiJob::finished \tNothing changed so nothing to retrieve - status code:  304\r\n> [OCC::ServerNotificationHandler::slotNotificationsReceived \tStatus code  304  Not Modified - No new notifications.\r\n> [OCC::AccessManager::createRequest \t6 \"PROPFIND\" \"https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/bart-sf3/\" has X-Request-ID \"YYY\"\r\n> [OCC::AbstractNetworkJob::start \tOCC::PropfindJob created for \"https://my-nextcloud-host/owncloud\" + \"/\" \"OCC::QuotaInfo\"\r\n> [OCC::AbstractNetworkJob::slotTimeout \tNetwork job timeout QUrl(\"ocs/v2.php/core/navigation/apps\")\r\n> [OCC::AccessManager::createRequest \t2 \"\" \"https://my-nextcloud-host:10443/owncloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json\" has X-Request-ID \"YYYY\"\r\n> [OCC::AbstractNetworkJob::start \tOCC::JsonApiJob created for \"https://my-nextcloud-host/owncloud\" + \"ocs/v2.php/apps/notifications/api/v2/notifications\" \"OCC::ServerNotificationHandler\"\r\n> [csync_update \t## Starting local discovery ##\r\n> [OCC::FolderMan::slotScheduleFolderByTime \tScheduling folder \"1\" because it has been 46792599 ms  since the last sync\r\n> [OCC::WebFlowCredentials::slotFinished \trequest finished\r\n> [OCC::AbstractNetworkJob::slotFinished \tQNetworkReply::NetworkError(HostNotFoundError) \"Host my-nextcloud-host not found\" QVariant(Invalid)\r\n> [OCC::WebFlowCredentials::stillValid \tStill valid?\r\n> [OCC::WebFlowCredentials::stillValid \tQNetworkReply::NetworkError(HostNotFoundError)\r\n> [OCC::WebFlowCredentials::stillValid \t\"Host my-nextcloud-host not found\"\r\n> [OCC::PropfindJob::finished \tPROPFIND of QUrl(\"https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/bart-sf3/\") FINISHED WITH STATUS \"HostNotFoundError Host my-nextcloud-host not found\"\r\n> [OCC::PropfindJob::finished \t*not* successful, http result code is 0 \"\"\r\n> [csync_update \tUpdate detection for local replica took 7.154 seconds walking 187 files\r\n> [csync_update \t## Starting remote discovery ##\r\n> [OCC::AccessManager::createRequest \t6 \"PROPFIND\" \"https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/SOME/DIRECTORY\" has X-Request-ID \"ZZZZ\"\r\n> [OCC::AbstractNetworkJob::start \tOCC::LsColJob created for \"https://my-nextcloud-host/owncloud\" + \"/SOME/DIRECTORY\" \"OCC::DiscoverySingleDirectoryJob\"\r\n> [OCC::WebFlowCredentials::slotFinished \trequest finished\r\n> [OCC::AbstractNetworkJob::slotFinished \tQNetworkReply::NetworkError(UnknownNetworkError) \"Network access is disabled.\" QVariant(Invalid)\r\n> [OCC::WebFlowCredentials::stillValid \tStill valid?\r\n> [OCC::WebFlowCredentials::stillValid \tQNetworkReply::NetworkError(UnknownNetworkError)\r\n> [OCC::WebFlowCredentials::stillValid \t\"Network access is disabled.\"\r\n> [OCC::LsColJob::finished \tLSCOL of QUrl(\"https://my-nextcloud-host:10443/owncloud/remote.php/dav/files/SOME/DIRECTORY\") FINISHED WITH STATUS \"UnknownNetworkError Network access is disabled.\"\r\n> [OCC::DiscoverySingleDirectoryJob::lsJobFinishedWithErrorSlot \tLSCOL job error \"Network access is disabled.\" 0 QNetworkReply::NetworkError(UnknownNetworkError)\r\n> [csync_ftw \topendir failed for  - errno 5\r\n> [OCC::SyncEngine::handleSyncError \tERROR during  csync_update :  \"Er trad een fout op bij het openen van een map Network access is disabled.\"\r\n> [OCC::ActivityWidget::addError \tItem  \"SOME/LOCAL/DIRECTORY\"  retrieved resulted in  \"Er trad een fout op bij het openen van een map Network access is disabled.\"\r\n> [OCC::ActivityListModel::addErrorToActivityList \tError successfully added to the notification list:  \"Er trad een fout op bij het openen van een map Network access is disabled.\"\r\n\r\nDutch to english: \"Er trad een fout op bij het openen van een map\" -> \"An error occured while opening a folder\"\r\n\r\nLimited 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)\r\n\r\n1. There is/was a successful sync;\r\n1. A DNS error occurs (probably my wifi hasen't connected yet when returning from hibernate)\r\n1. Then the \"Network access is disabled\" pops up\r\n1. Then there is some error about a local directory ( [csync_ftw \topendir failed for  - errno 5 ) \r\n\r\nHit me up if anyone thinks he can distinguish more information from the full logs. "}}
{"actor":{"display_login":"BdeHeij"}}