oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

ownCloud Desktop Client - sync not successful after computer sleep

Open wadedugas opened this issue 6 years ago • 0 comments

The ownCloud Desktop Client syncs fine when it is first started. After the computer sleeps and you wait until the oauth token times out, the client shows disconnected from the server and will no longer sync.

Steps to reproduce

  1. Make sure the oauth app is enabled (https://marketplace.owncloud.com/apps/oauth2 )
  2. Setup the ownCloud Desktop Client ( https://download.owncloud.com/desktop/stable/ownCloud-2.5.4.11456.pkg )
  3. Configure the ownCloud Desktop Client to sync with your server

Expected behaviour

The ownCloud Desktop Client syncs with the ownCloud server and stay connected after token timeouts and computer sleep

Actual behaviour

The ownCloud Desktop Client shows disconnected from the server and will no longer sync.It only works again after restarting the ownCloud Desktop Client.

Server configuration

  • Operating system: Linux #1 SMP Wed May 15 10:40:34 CEST 2019 x86_64)

  • **Web server: OVH Hosting - Nginx

  • **Database: MySQL

  • **PHP version: 7.2

  • **ownCloud version: 10.2.0

  • **Updated from an older ownCloud or fresh install: updated from 10.0.10

  • **Where did you install ownCloud from: https://owncloud.org/download/

  • **Signing status (ownCloud 9.0 and above): No errors have been found.

  • The content of config/config.php:

config_report_20190611.json.txt

  • List of activated apps: Please note oauth2 was enabled and produced the problem. It was disabled to correct the issue as we need to use the ownCloud Server ;-)

Enabled:

  • activity: 2.4.2

  • brute_force_protection: 1.0.1

  • calendar: 1.6.2

  • comments: 0.3.0

  • configreport: 0.2.0

  • dav: 0.4.0

  • federatedfilesharing: 0.4.0

  • federation: 0.1.0

  • files: 1.5.2

  • files_external: 0.7.1

  • files_sharing: 0.11.0

  • files_trashbin: 0.9.1

  • files_versions: 1.3.0

  • files_videoplayer: 0.10.1

  • firstrunwizard: 1.2.0

  • guests: 0.8.1

  • market: 0.4.0

  • notifications: 0.5.0

  • provisioning_api: 0.5.0

  • systemtags: 0.3.0

  • updatenotification: 0.2.1 Disabled:

  • drawio

  • encryption

  • external

  • oauth2

  • user_external

  • Are you using encryption: no

  • Are you using an external user-backend, if yes which one: no

Client configuration

  • Client used to connect & version: Desktop

  • Default Browser: Chrome

  • OS: OS X Mojave, macOS 10.14.5 (18F132)

  • Sync Client logs: 06-11 11:36:56:356 [ warning sync.networkjob ]: QNetworkReply::RemoteHostClosedError "Connection closed" QVariant(Invalid) 06-11 11:36:56:356 [ info sync.networkjob.propfind ]: PROPFIND of QUrl("https://REMOVED SENSITIVE VALUE/remote.php/dav/files/REMOVED SENSITIVE VALUE/") FINISHED WITH STATUS "RemoteHostClosedError Connection closed" 06-11 11:36:56:356 [ warning sync.networkjob.propfind ]: not successful, http result code is 0 "" 06-11 11:36:56:357 [ info gui.folder.manager ]: Account "REMOVED SENSITIVE VALUE" disconnected or paused, terminating or descheduling sync folders

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

{"reqId":"02026bd2-6581-4f84-9520-684356dd9829","level":0,"time":"2019-06-11T09:36:21+00:00","remoteAddr":"REMOVED SENSITIVE VALUE","user":"REMOVED SENSITIVE VALUE","app":"OC\Authentication\Token\DefaultTokenProvider::updateToken","method":"PROPFIND","url":"/remote.php/dav/files/REMOVED SENSITIVE VALUE/","message":"updating token 2728, last check is now 1560237067"} {"reqId":"02026bd2-6581-4f84-9520-684356dd9829","level":0,"time":"2019-06-11T09:36:22+00:00","remoteAddr":"REMOVED SENSITIVE VALUE","user":"REMOVED SENSITIVE VALUE","app":"OCA\OAuth2\AuthModule","method":"PROPFIND","url":"/remote.php/dav/files/REMOVED SENSITIVE VALUE/","message":"token expired REMOVED SENSITIVE VALUE"} {"reqId":"02026bd2-6581-4f84-9520-684356dd9829","level":0,"time":"2019-06-11T09:36:22+00:00","remoteAddr":"REMOVED SENSITIVE VALUE","user":"REMOVED SENSITIVE VALUE","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/REMOVED SENSITIVE VALUE/","message":"Exception: HTTP/1.1 401 No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, Bearer token was incorrect, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured: {"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, Bearer token was incorrect, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured","Code":0,"Trace":"#0 [internal function]: Sabre\\DAV\\Auth\\Plugin->beforeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#1 \/home\/xxx\/owncloud\/lib\/composer\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#2 \/home\/xxx\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(466): Sabre\\Event\\EventEmitter->emit('beforeMethod', Array)\n#3 \/home\/xxx\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \/home\/xxx\/owncloud\/apps\/dav\/lib\/Server.php(294): Sabre\\DAV\\Server->exec()\n#5 \/home\/xxx\/owncloud\/apps\/dav\/appinfo\/v2\/remote.php(31): OCA\\DAV\\Server->exec()\n#6 \/home\/munichskun\/owncloud\/remote.php(165): require_once('\/home\/xxx...')\n#7 {main}","File":"\/home\/xxx\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php","Line":168}"}

wadedugas avatar Jun 11 '19 13:06 wadedugas