-
-
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
Offline federated share causes slow down and cannot be removed #2638
Comments
After the federated share is established it is a webdav mount so it is all about how we handle external storage in case a source is offline, nothing federated sharing specific.
Don't understand this part. Unsharing should always work. Does it fail if the source is offline? |
Regarding the slowness. How did you tested it? I just set up two servers, shared from server1 to server2 and then changed the root directory of server1 which results in a 404. I don't see any negative impact on the performance. Can browse the rest of the files as before. Indeed, unsharing doesn't work... I will debug this one. |
Exactly |
Once upon a time I got a federated share from @MorrisJobke (private instance) to my private instance. Then, his server with just offline, I think, and since 11 it was behaving slowing (running into timeouts). With moving it on the server, you will not receive a timeout, the 404 comes pretty much immediately. |
The unsharing stuff seems to be quite complicated. It fails deep in the SabreDAV code so that the delete is never executed and therefore we never reach the point where we could perform a unshare. |
Yup. |
A user on IRC ran into the same issue… and suggesting to blindly delete a row from the DB to get a properly working Nextcloud back feels very very bad 🙊 |
And it worked, removing the one row I had in oc_share_external fixed the issue! Thanks @blizzz |
Same problem here, i trying to remove a federated share, but i get a error message error deleting. Nextcloud 12. |
I have this same problem. I had to remove my federation add folder. This really needs to be a better handled error. There's no errors on federation downtime in logs.... A few things which really need to be done, imo (and I may be able to assist with writing some of these, depending on my time):
|
Just experienced this problem also, went through php, nginx and reverse proxy looking for the problem and finally saw in the nextcloud log a reference to the share not responding. This is a bad bug that can deny access to a server so should be a higher priority to fix. |
Similar problem here: DELETING the rows in the database of oc_share_external worked, external shares are now gone. I am running the nextcloud Docker-container. |
Steps to reproduce
Expected behaviour
Actual behaviour
The Unshare-issue was also present in Nc 10, but it did not get the performance hit.
(Removing the federate share manually from share_external table fixes the slow-down issue 🙊 )
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache2
Database: MySQL 5.7
PHP version: 7.0.8
Nextcloud version: 11.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Updated from 10
Where did you install Nextcloud from: tarball
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: FF 50
Operating system: Antergos
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
see on top
cc @nextcloud/sharing
The text was updated successfully, but these errors were encountered: