Hello. We have owncloud version 10.0.10.4
before today we did not have any problems. Today we have faced a big problem. Our owncloud integrated with active directory so users logging in with active directory login.
today some users are not able to login,we have more than 3000 users but only 10-15 users facet that error: the server encountered an internal error and was unable to complete your request.
i think the posted screenshot would be the first thing where to look. It seems ownCloud is already giving you the advice âMore details can be found in the server logâ there.
Maybe you can also use the issue template which iâm getting presented when creating a new thread in this âServerâ category?
I think others are probably better able to help you if you provide more information about your environment and excerpts of your logfiles (both asked in the mentioned template).
Thank you for your reply. Of course i looked at log and found nothing, also digged google and found same issue in this portal from many users but could not find any solution and then wrote there. Regards
Guys please help it started on friday and today 3rd user has same error. We have more than 5000 users using owncloud so if we will not find what is the problem it will be serious for us. I can add any parameter and config if you want. Thanks
when I entered âParent of share should be uniqueâ into google I received the following results:
So as a wild guess Iâd try occ files:clean first.
Then look for duplicates as described in the second link.
In general Iâd recommend to upgrade your ownCloud to the latest version and, when more than 5000 users are depending on your ownCloud, you might want to consider an enterprise subscription with support.
I cannot tell you by heart, but anyway, when I am about to perform potentially risky actions on any live environment I make a copy of the instance first and perform the steps on the copy.
Thank you again. Of course took backup and tried.
sudo -u apache ./occ files:cleanup
0 orphaned file cache entries deleted
not affected still get same error.
This happens when a user receives a share personally and additionally again through a group.
Youâll have to go into the database and remove the duplicated shares, Iâll see if I can find some example SQL queries for you.
I think the root cause of this problem was fixed in ownCloud version 10.0.10, however as you have the problem now, youâll have to remove the duplicate shares first.
Make sure to take a database dump before, and put ownCloud in maintenance mode during this operation.
select parent, count () from oc_share where share_type = 2 group by parent, share_with having count ()> 1;
select * from oc_share where parent = xxx order by share_with; (where âxxxâ is an ID returned by the previous query)
delete from oc_share where id = âxxxâ; (where âxxxâ is the ID (the largest) of a share that exists in duplicate which is being returned by the previous query)