-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Can't delete invalid Federated Share #3766
Comments
Hello, |
@Esprit-Libre anything in the server log when you try to delete it?
Is "this person" here the original owner of the folder? |
Yes it wasn't clear, sorry. I rewrite my description:
When I try to access to this folder with User C, I get these logs: Nextcloud log``` {"reqId":"KxjbDmyn7piB2Ypary5R","remoteAddr":"109.8.191.189","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Storage is temporarily not available\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(939): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath('DOSSIER PARTAGE...')\\n#1 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(336): Sabre\\\\DAV\\\\Server->getPropertiesForPath('DOSSIER PARTAGE...', Array, 1)\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPropFind(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PROPFIND', Array)\\n#5 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/home\\\/my.domain.com\\\/www\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/home\\\/my.domain.com\\\/www\\\/remote.php(165): require_once('\\\/home\\\/my.dom....')\\n#8 {main}\",\"File\":\"\\\/home\\\/my.domain.com\\\/www\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php\",\"Line\":162,\"User\":\"espritlibre\"}","level":4,"time":"2017-03-28T13:33:57+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/DOSSIER%20PARTAGE%20CPE","user":"espritlibre","version":"11.0.2.7"} ```And when I try to unshare (unsubscribe) from this folder with user B, I get this message "Error deleting file "DOSSIER PARTAGE CPE"." and similar logs: Nextcloud log``` {"reqId":"zbJAVrCbqgbYTVVtCTSt","remoteAddr":"109.8.191.189","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Storage is temporarily not available\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(178): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath('DOSSIER PARTAGE...')\\n#1 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(287): Sabre\\\\DAV\\\\Tree->delete('DOSSIER PARTAGE...')\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:DELETE', Array)\\n#5 \\\/home\\\/my.domain.com\\\/www\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/home\\\/my.domain.com\\\/www\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/home\\\/my.domain.com\\\/www\\\/remote.php(165): require_once('\\\/home\\\/my.dom....')\\n#8 {main}\",\"File\":\"\\\/home\\\/my.domain.com\\\/www\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php\",\"Line\":162,\"User\":\"AlterBative\"}","level":4,"time":"2017-03-28T13:44:02+02:00","method":"DELETE","url":"\/remote.php\/webdav\/DOSSIER%20PARTAGE%20CPE","user":"AlterBative","version":"11.0.2.7"} ``` |
Any update on this? I have a similar issue with a Federated share that I can not remove. The other server has been decommissioned and the server removed from my trusted servers list, but the folder still remains. It also causes extreme slowness on this account unless I disable the federation and file sharing apps. |
I have the same issue with a decommissioned federated share that I cannot remove from my nextcloud server. |
The big issue is that this causes extreme slowdown, the easy-ish fix is to remove the entry from the share_external table. |
This seems to have fixed it for me. However it would still be useful if users could do this themselves through the web interface. I prefer to not give the other users on our system this kind of access to the database. |
@vojeroen How did you fix it? SQL request to update database? Please share your workaround waiting a permanent solution. BR. @icewind1991 Is there anything I can do to help resolving this issue? Thx. |
I executed a delete statement on the table oc_share_external to remove the line that linked to the decommissioned server. This effectively removed the shared directory and its contents from my nextcloud system. |
@icewind1991 Users can't way anymore, so I delete from |
I too see this problem. The file Abgabe.zip is a federated file from the cloud server own.cloud.ch which is currently unreachable.
|
An occ scan aborts with this message:
|
Fixed by #5753 |
I had the same issue with NextCloud 12.0.3 with an orphaned federated cloud share which made the webinterface veeeery slow. I wasn't able to delete it from the webinterface and there was no error message when I tried to delete it. |
Same problem here. Deleting database record works. |
I can confirm I encountered this issue on latest stable NC (13.0.4) Log:
I fixed it by manually deleting the offending share on @MorrisJobke should the issue be reopened, or do I create new issue? |
Create a new one |
@MorrisJobke @aryasenna Has a solution for this (other than just deleting the db table) been created and if not has there at least been a ticket created to track this issue? I am also encountering this issue. I could always do the DB fix but it seems to me reasonable that federated shares might temporarily be shutdown etc and wouldn't be great if that just resulted in every other server they had been shared to going down also, right? |
Had the same problem. Solved it by manually removing records from the database as suggested above. Nextcloud version is 15.0.7. For the record, here's how I did it in detail (slightly redacted for privacy reasons), hoping this will be useful to others who are having the same problem. Hopefully, future Nextcloud versions will provide a more official way of dealing with this situation.
|
This is still an issue and I don't believe manually editing the database is an acceptable solution. |
Agreed. |
No, not resolved. I have latest version of nextcloud (16.0.3) and error occurred 3 to 4 days ago with a federation share. |
@Snuggle @PotcFdk @PetrusVermaak #12175 (there is a new issue for this problem. no need to reopen this one) |
Hello,
I have a Federated Share that I cannot access anymore, but it is still present in folder view and I cannot delete it (=unregister from it), neither unshare it (this FedShare has been re-shared to other user of my platform).
Many thanks for your analysis.
Steps to reproduce
Expected behaviour
Ability to unshare and remove invalid Federated Share folders.
Actual behaviour
Unsharing produce
Error deleting file "DOSSIER PARTAGE CPE".
No deleting possibilities.
Server configuration
Operating system: Debian Wheezy up to date
Web server: Apache 2.2.22-13+deb7u7
Database: MySQL 5.5.46-0+deb7u1
PHP version: PHP 5.6.29-1~dotdeb+7.1
Nextcloud version: 11.0.2
Updated from an older Nextcloud/ownCloud or fresh install: oc9.1.1 -> oc9.1.4 -> nc10.0.4 -> nc11.0.2
Where did you install Nextcloud from: tar.gz
Signing status:
Signing status
``` No errors have been found. ```App list
``` # sudo -u www-data ./occ app:list Enabled: - activity: 2.4.1 - calendar: 1.5.1 - comments: 1.1.0 - contacts: 1.5.3 - dav: 1.1.1 - direct_menu: 0.10.0 - external: 1.2 - federatedfilesharing: 1.1.1 - federation: 1.1.1 - files: 1.6.1 - files_pdfviewer: 1.0.1 - files_sharing: 1.1.1 - files_texteditor: 2.2 - files_trashbin: 1.1.0 - files_versions: 1.4.0 - firstrunwizard: 2.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - notifications: 1.0.1 - password_policy: 1.1.0 - provisioning_api: 1.1.0 - serverinfo: 1.1.1 - sharebymail: 1.0.1 - survey_client: 0.1.5 - systemtags: 1.1.3 - tasks: 0.9.5 - templateeditor: 0.2 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - updatenotification: 1.1.1 - workflowengine: 1.1.1 Disabled: - admin_audit - encryption - files_accesscontrol - files_automatedtagging - files_external - files_retention - files_videoplayer - gallery - nextcloud_announcements - user_external - user_ldap - user_saml ```The content of config/config.php:
Config report
``` # sudo -u www-data ./occ config:list system { "system": { "instanceid": "occs60snv57y", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "my.domain.com" ], "datadirectory": "\/workdir\/my.domain.com\/data", "overwrite.cli.url": "https:\/\/my.domain.com", "dbtype": "mysql", "dbhost": "localhost", "dbname": "dbname", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "version": "11.0.2.7", "installed": true, "theme": "", "loglevel": 2, "maintenance": false, "trashbin_retention_obligation": "auto", "default_language": "fr", "logfile": "\/workdir\/logs\/owncloud\/my.domain.com.log", "logtimezone": "Europe\/Berlin", "log_rotate_size": "20971520", "minimum.supported.desktop.version": "1.7.0", "memcache.local": "\\OC\\Memcache\\APCu", "updatechecker": true, "appstoreenabled": true, "appstore.experimental.enabled": true } } ```Are you using external storage, if yes which one: Federated
Are you using encryption: no
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: