-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"Error while sharing - error" when trying to share a file or directory on owncloud 7.0.4 #13908
Comments
hmmm - doesn't look that good - @PVince81 @icewind1991 can I ask you to have a look? THX |
scheduling for 8.1 for analysis |
Do you use LDAP ? If not, please try the following queries:
|
Can I safely change the path to the correct one for the wrong |
@PVince81 : I solved the problem with the missing share 8
The problem was, that the webserver-user had no writing permissions to the folder: However, the Sharing problem is still NOT fixed. |
Ok, that sharing error might be something else. You could also check the web browser's network console and see what response is coming back from the ajax call to "share.php". |
Request when clicking on the share checkbox:
Request Header:
Request-Body
Request-Answer:one empty line, no data or error-message Problem:in the file
when I remove the second condition ( Now i just realised, that there is the same problem when unsharing. Maybe the same condition. |
Hmm... ownCloud should work fine with PHP 5.6 (sharing does work on my dev env on PHP 5.6.4). I believe that @schiesbn any idea why shareWith is empty and whether it is correct ? |
Yes, I was sharing a link. Maybe the code was only tested, when the file was already shared for another user before? But I don't think so... |
I had a similiar problem described in this issue: github.com//issues/13720. Perhaps you can check your /var/log/message if you have suhosin errors? |
@transistor91 This is possible, since I activated suhosin on my server shortly. I checked already the log files, but didn't find anything. Nothing changes when i disable suhosin. The problem still remains. |
HI, I have had a similar problem this weekend. {"app":"files_sharing","message":"Unable to get mount for shared storage '81' user '6332d98a-7f3e-102a-8c7d-fdcd95ab32a5'","level":3,"time":"2015-02-07T01:28:25+00:00"} And the share info was lost. {"app":"webdav","message":"Sabre\DAV\Exception\Conflict: Parent node does not exist","level":4,"time":"2015-02-09T10:27:06+00:00"} Should I create it again? I've done a "occ files:scan" over user datadir and it seems share info has recovered. Does it have any sense? But "Unable to get mount..." message still remains. What can I do? Thanks in advance. Frank |
Hi again, {"app":"hook","message":"error while running hook (OCA\Files_Versions\Hooks::write_hook): An exception occurred while executing 'INSERT INTO What's the problem? Can it be related to "Unable to get mount" message? Thnaks, Frank |
Hello, Same issue here: Sharing via links is not working for any files or folders. Owncloud: 8.0.2 I can provide more information if necessary. Any help is appreciated. |
@shoelzle Do you have suhosin enabled? In my case the problem was, that suhosin (with pretty much default settings) filters requestparams which don't have a value. In PHP then the check with @owncloud-Developers: What do you think about that issue? I think this affects more code-parts in the application. Maybe you should make a guideline on how parameters are checked... |
@tarator suhosin is enabled. I tried disabling suhosin for testing, however I did not succeed.
After restarting apache2 suhosin was still enabled. How did you disable it ? |
I managed to disable suhosin by setting "php_flag suhosin.simulation On" in the vhost.conf for the owncloud. |
Hi All, I have same issue here. Owncloud 7.0.4 on "PHP 5.3.10-1ubuntu3.10 with Suhosin-Patch (cli) (built: Feb 28 2014 23:14:25)" "Unable to get mount for shared storage '7' user 'some_username' I have USER1 that's shares a folder FOLDER1 with 30 others users, and since yesterday all share lost (but files still on the server) I tried all your SELECT and I got this results :
select * from oc_share where item_source not in (select fileid from oc_filecache) I got 9 orphans.
select * from oc_storages whether there are entries like "local::$datadir/$user" and where $datadir is the path to your data dir (or a wrong path) I have one local::$datadir/$user but the path is right and $user is the username who shares the "unmounted shared storage N°7"
select * from oc_storages where numeric_id=7 returns one row : home::USERNAME and its contents select * from oc_filecache where storage=7. got 8000 lines... @tarator : checked the permissions of the lucene_folder all is ok. Seems to be a little different of all what I read on github... |
Can you confirm that you do not have any entry "home::$user" that would be the same user as "local::$datadir/$user" ? |
I confirm.
And all other entries looks like home::$user and there is no double entries. May I add the related $user at the end of string local::/files/owncloud/data/ ? |
No, do not modify that entry, it is not related. Just ignore it. You could try deleting the orphaned shares, it might make the issue disappear because then it will not try to resolve them any more. Or you could try upgrading to 7.0.5 which might contain a fix for this, not sure. I just remember that OC 8.0.x should properly ignore orphaned shares. |
Thank you PVince. |
@rbahassine did you have any more luck with 7.0.6, 8.0.6 or 8.1.1 ? |
Please reopen if the issue persists in these versions. |
Steps to reproduce
Expected behaviour
Menu for shared link should appear.
Actual behaviour
Error pops up "Error while sharing"!
This feature worked fine before (previous version!?)
Server configuration
config.php
Client configuration
Logs
Web Server Logs:
nothing special
owncloud.log
nothing, when I press the "Share link" checkbox.
But sometimes this appears:
The text was updated successfully, but these errors were encountered: