Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fresh desktop client unable to sync with Service Unavailable, trying to get deleted files #27302

Closed
ptica opened this issue Mar 3, 2017 · 2 comments

Comments

@ptica
Copy link

ptica commented Mar 3, 2017

Steps to reproduce

  1. files with same name located in multiple directories
  2. one of them is deleted
  3. new desktop client sync tries to get it, fails with Service Unavailable
  4. the web client shows the deleted file as existent as well

Expected behaviour

deleted files are properly deleted

Actual behaviour

deleted files prevent new desktop client sync

Server configuration

Operating system:ubuntu

**Web server:**nginx

**Database:**mysql

**PHP version:**7.0

ownCloud version: 9.1.4

Updated from an older ownCloud or fresh install: fresh

**Where did you install ownCloud from:**not sure

Signing status (ownCloud 9.0 and above):

No errors have been found.

List of activated apps:

Enabled:
  - activity: 2.3.2
  - comments: 0.3.0
  - configreport: 0.1.1
  - dav: 0.2.7
  - documents: 0.13.1
  - federatedfilesharing: 0.3.0
  - federation: 0.1.0
  - files: 1.5.1
  - files_pdfviewer: 0.8.1
  - files_sharing: 0.10.0
  - files_texteditor: 2.1
  - files_trashbin: 0.9.0
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 15.0.0
  - notifications: 0.3.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - templateeditor: 0.1
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - files_antivirus
  - files_external
  - user_external
  - user_ldap

**Are you using external storage, if yes which one:** smb

**Are you using encryption:** no

**Are you using an external user-backend, if yes which one:** none



### Logs
#### Web server error log

#### ownCloud log (data/owncloud.log)

{"reqId":"eoUQ9fYiGgttUaB65RRt","remoteAddr":"92.62.225.103","app":"PHP","message":"fopen(/var/owncloud/data/xxx@xxx.cz/files/xxx/xxx/xxx/xxx/hotel_international_Brno_platkarta.pdf): failed to open stream: No such file or directory at /var/www/owncloud/lib/private/Files/Storage/Local.php#278","level":3,"time":"2017-03-03T21:00:26+00:00","method":"GET","url":"/remote.php/webdav/xxx/xxx/xxx/xxx/hotel_international_Brno_platkarta.pdf","user":"xxx@xxx.cz"}
{"reqId":"eoUQ9fYiGgttUaB65RRt","remoteAddr":"92.62.225.103","app":"webdav","message":"Exception: {"Message":"HTTP\/1.1 503 Could not open file","Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Code":0,"Trace":"#0 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(83): OCA\\DAV\\Connector\\Sabre\\File->get()\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/owncloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(459): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(248): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#5 \/var\/www\/owncloud\/apps\/dav\/appinfo\/v1\/webdav.php(57): Sabre\\DAV\\Server->exec()\n#6 \/var\/www\/owncloud\/remote.php(164): require_once('\/var\/www\/ownclo...')\n#7 {main}","File":"\/var\/www\/owncloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":306,"User":"jana@j3t.cz"}","level":4,"time":"2017-03-03T21:00:26+00:00","method":"GET","url":"/remote.php/webdav/xxx/xxx/xxx/xxx/hotel_international_Brno_platkarta.pdf","user":"xxx@xxx.cz"}

oc_activity table lists:

4492	1488284313	30	file_deleted	xxx@xxx.cz	xxx@xxx.cz	files	deleted_self	[{"5392":"\/xxx\/xxx\/xxx\/xxx\/Hotel_International_Brno_platka..

I resolved the situation with

sudo -u www-data php occ files:scan user_id

however I am not sure, whether I have configured something wrongly
or the file deletion is buggy

thank you very much in advance
jan

@PVince81
Copy link
Contributor

PVince81 commented Mar 6, 2017

You were probably unlucky and ran into a timeout situation in which the filecache got inconsistent.
You did the right thing running occ files:scan to resolve it.

Closing as duplicate of #24509

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants