Local shared folder corrupt, how to force re-join and sync?

help

#1

I'm an end user in an organization that is using self-hosted ownCloud (v9.1 according the server help page). We login and share using our Active Directory credentials.

I renamed a shared folder and have now lost access to it and it's contents. How do I reset and fetch the original shared folder?

Steps to reproduce

A colleague shared a folder with me. The desktop client synced the folder and contents (7 files, 1.8mb) to my local drive. I could see open the files and their contents were as expected.

I renamed the folder and moved to another place inside the local OC folder structure. Now the shared folder is empty.

My colleague sees the original folder he shared and it's contents on both his local drive and in the web interface.

A 2nd colleague sees the same things as the 1st.

In my desktop client there was an error about the folder-I-renamed being blacklisted. I exited the desktop client and restarted it. Now the error is gone but there are no changes in the file system.

Attempting to get a fresh copy of the shared folder I moved the renamed-shared-folder out of the OC file tree and restarted desktop client. The shared folder did not reappear.

When I go to my OC web interface the folder is no longer listed under "Shared with you", or anywhere else.

When I click on the link in the original "A colleague shared with you" email the web server gives me an Internal Server Error message of "Type: OCP\Files\NotFoundException".


Client configuration
Client version: OC desktop v2.2.4
Client operating system: Win7x64.

Server configuration
Operating system: n/a
Web server: n/a
Database: n/a
PHP version: n/a
ownCloud version (see ownCloud admin page): v9.1

ownCloud log (data/owncloud.log)

The desktop client log as seen from F12 is empty.

Error from visiting the original share link in a browser:

    Type: OCP\Files\NotFoundException
    Code: 0
    Message:
    File: /usr/local/sites/owncloud-9.1.0/apps/files/lib/Controller/ViewController.php
    Line: 303
Trace
#0 [internal function]: OCA\Files\Controller\ViewController->showFile('12812')
#1 /usr/local/sites/owncloud-9.1.0/lib/private/AppFramework/Http/Dispatcher.php(159): call_user_func_array(Array, Array)
#2 /usr/local/sites/owncloud-9.1.0/lib/private/AppFramework/Http/Dispatcher.php(89): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files\Controller\ViewController), 'showFile')
#3 /usr/local/sites/owncloud-9.1.0/lib/private/AppFramework/App.php(110): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'showFile')
#4 /usr/local/sites/owncloud-9.1.0/lib/public/AppFramework/App.php(135): OC\AppFramework\App::main('ViewController', 'showFile', Object(OC\AppFramework\DependencyInjection\DIContainer))
#5 /usr/local/sites/owncloud-9.1.0/core/routes.php(122): OCP\AppFramework\App->dispatch('ViewController', 'showFile')
#6 [internal function]: OC\Route\Router->{closure}(Array)
#7 /usr/local/sites/owncloud-9.1.0/lib/private/Route/Router.php(280): call_user_func(Object(Closure), Array)
#8 /usr/local/sites/owncloud-9.1.0/lib/base.php(891): OC\Route\Router->match('/f/12812')
#9 /usr/local/sites/owncloud-9.1.0/index.php(39): OC::handleRequest()
#10 {main}

#2

Found the desktop log file which has more info. Excerpt below from when I first started to receive the shared folder to when I renamed the folder. The server and filenames have been sanitized.

#=#=#=# Syncrun started  until  (0 msec)
|0|Share1_Files|INST_NEW|Down|1480014938|58373c5a5ee88|0|00012812occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:03|919|Share1_Files/Image_AA3.jpg|INST_NEW|Down|1479941894|a6d2b4e9a037e13f3a9f1cde16270a7f|1514702|00012869occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:03|1397|Share1_Files/review application.fw.png|INST_NEW|Down|1476913722|2be0c1e07ed28d9e0d142e691a2a84f7|197422|00012817occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:03|2065|Share1_Files/template-form-finished.html|INST_NEW|Down|1478126052|359c89b9c97ecbd6dc23314cab57df12|22541|00012821occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:03|2430|Share1_Files/template-form-step1.html|INST_NEW|Down|1479142848|4a94cb6145a962af4480bd6e625158fc|27420|00012824occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:04|1988|Share1_Files/template-form-step1b.html|INST_NEW|Down|1480014411|255b8c57f4f0b54d2bd42c4c82c17084|57472|00012825occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:04|2332|Share1_Files/template-form-step2.html|INST_NEW|Down|1479142902|f062bc7ec582c89e5b6490a7b0367750|26908|00012826occmqbeueenn|4||0|0|0|||INST_NONE|
19:17:05|2245|Share1_Files/template-start.html|INST_NEW|Down|1478728731|f5220789fbab82a7bba8f7c8a69b63ba|24383|00012813occmqbeueenn|4||0|0|0|||INST_NONE|
#=#=#=# Syncrun started  until  (0 msec)
19:19:41|572|a|INST_RENAME|Up|1479860233|5834e00911d66|0|00012793occmqbeueenn|4||201|0|0|||INST_NONE|
|0|a/Share1_NewName|INST_RENAME|Up|1479858713|5834da191f501|0|00012790occmqbeueenn|4||0|0|1479858710|||INST_NONE|
#=#=#=# Syncrun started  until  (0 msec)
19:20:00|1673|z-projects|INST_RENAME|Up|1479860233|5834e00911d66|0|00012793occmqbeueenn|4||201|0|0|||INST_NONE|
|0|z-projects/Share1_NewName|INST_RENAME|Up|1479858713|5834da191f501|0|00012790occmqbeueenn|4||0|0|1479858710|||INST_NONE|
#=#=#=# Syncrun started  until  (0 msec)
|0|z-projects|INST_SYNC|Up|1480015201||0||4||0|0|1479860233|5834e00911d66|00012793occmqbeueenn|INST_NONE|
19:20:06|1509|z-projects/Share1_Files|INST_RENAME|Up|1480014938|58373c5a5ee88|0|00012812occmqbeueenn|4||201|0|0|||INST_NONE|
|0|z-projects/Share1_Files/Image_AA3.jpg|INST_RENAME|Up|1479941894|a6d2b4e9a037e13f3a9f1cde16270a7f|1514702|00012869occmqbeueenn|4||0|1514702|1479941894|||INST_NONE|
|0|z-projects/Share1_Files/review application.fw.png|INST_RENAME|Up|1476913722|2be0c1e07ed28d9e0d142e691a2a84f7|197422|00012817occmqbeueenn|4||0|197422|1476913722|||INST_NONE|
|0|z-projects/Share1_Files/template-form-finished.html|INST_RENAME|Up|1478126052|359c89b9c97ecbd6dc23314cab57df12|22541|00012821occmqbeueenn|4||0|22541|1478126052|||INST_NONE|
|0|z-projects/Share1_Files/template-form-step1.html|INST_RENAME|Up|1479142848|4a94cb6145a962af4480bd6e625158fc|27420|00012824occmqbeueenn|4||0|27420|1479142848|||INST_NONE|
|0|z-projects/Share1_Files/template-form-step1b.html|INST_RENAME|Up|1480014411|255b8c57f4f0b54d2bd42c4c82c17084|57472|00012825occmqbeueenn|4||0|57472|1480014411|||INST_NONE|
|0|z-projects/Share1_Files/template-form-step2.html|INST_RENAME|Up|1479142902|f062bc7ec582c89e5b6490a7b0367750|26908|00012826occmqbeueenn|4||0|26908|1479142902|||INST_NONE|
|0|z-projects/Share1_Files/template-start.html|INST_RENAME|Up|1478728731|f5220789fbab82a7bba8f7c8a69b63ba|24383|00012813occmqbeueenn|4||0|24383|1478728731|||INST_NONE|
#=#=#=# Syncrun started  until  (0 msec)
|0|z-projects/Share1_NewName|INST_SYNC|Up|1480015258||0||4||0|0|1479858713|5834da191f501|00012790occmqbeueenn|INST_NONE|
|0|z-projects/Share1_Files|INST_RENAME|Up|1480015209|58373d69d70da|0|00012812occmqbeueenn|2|Error downloading https://oc.ourdomain.ca/remote.php/webdav/z-projects/Share1_Files - server replied: Forbidden|403|0|0|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/Image_AA3.jpg|INST_RENAME|Up|1479941894|a6d2b4e9a037e13f3a9f1cde16270a7f|1514702|00012869occmqbeueenn|0||0|1514702|1479941894|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/review application.fw.png|INST_NEW|Up|1476913722||197422||0||0|0|0|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/template-form-finished.html|INST_RENAME|Up|1478126052|359c89b9c97ecbd6dc23314cab57df12|22541|00012821occmqbeueenn|0||0|22541|1478126052|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/template-form-step1.html|INST_RENAME|Up|1479142848|4a94cb6145a962af4480bd6e625158fc|27420|00012824occmqbeueenn|0||0|27420|1479142848|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/template-form-step1b.html|INST_RENAME|Up|1480014411|255b8c57f4f0b54d2bd42c4c82c17084|57472|00012825occmqbeueenn|0||0|57472|1480014411|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/template-form-step2.html|INST_RENAME|Up|1479142902|f062bc7ec582c89e5b6490a7b0367750|26908|00012826occmqbeueenn|0||0|26908|1479142902|||INST_NONE|
|0|z-projects/Share1_NewName/Share1_Files/template-start.html|INST_RENAME|Up|1478728731|f5220789fbab82a7bba8f7c8a69b63ba|24383|00012813occmqbeueenn|0||0|24383|1478728731|||INST_NONE|
#=#=#=# Syncrun started  until  (0 msec)

The blacklist error repeats another 50 times. Stopping at the point I restarted the client and removed the local folder.


#3

We couldn't find a way to do this on the recipient side, but if the original sharer removes and re-adds the recipient the folder is synchronized as if brand new.

So we're back to being able to collaborate on the project, but it's still an open question of what specifically went wrong and how to prevent it in future.