-
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
home storage not writable #25755
Comments
Ok thanks for the details. Will have to find out where in the code this error is displayed to understand how the permissions check is done. |
It seems the message is triggered by any Can you add this line:
below this row https://github.com/owncloud/core/blob/v9.1.0/apps/files/lib/Command/Scan.php#L158 ? |
I added the line below Scan.php#L158 and run the scan again:
|
I suspect that this is the one you're getting: https://github.com/owncloud/core/blob/v9.1.0/lib/private/Files/Utils/Scanner.php#L166 But if you say that the permissions are all correct and the web server user is allowed to write everywhere in the data folder, then it should be fine. You might want to do a |
Done but the error message remains |
Hmmm indeed, they look correct. So maybe PHP is having trouble correctly checking for creatability. |
Strange...
If i share a file with Nico... the error reappears
|
Okay, that's an interesting clue. So the I'll see if I can reproduce this somehow locally. |
Hi, sudo -u apache php occ files:scan --all Starting scan for user 3 out of 12 (bernhard) Happens only for some users. Here is what I found out. I checked the users and these are users that belong to a group to which a folter is shared too . I have a group called "Education", everyone that was assigned to this group had the error. I removed the share for this group and it works without problem now. Best wishes, |
@Thomanji thanks for the details, I'll see if I can reproduce the issue locally with a similar sharing scenario |
Hmm, I couldn't reproduce the issue. My steps:
Regardless whether the share is read-write or read-only, the scan goes through without errors. @Thomanji is the EDUCATION folder shared read-only ? |
@PVince81 All actions are done in the webinterface:
|
@schnello thanks, now I got it. Could be because it's a file, not a folder. |
The problem is: |
Okay, I found that the problem is already fixed on the stable9.1 branch, through 6f4ba32 (from PR #25675) You might be able to apply the commit as patch: https://github.com/owncloud/core/commit/6f4ba321613ddf406fa0fcbb1228e89ca35e8425.patch |
OK, sorry but there is a followup. I am going to apply the patch and see. |
Thanks @PVince81 I was not able to apply the patch but it works fine if i add the lines manually.
|
Great to hear. Yeah, I had a conflict too locally. |
Yes, solved it for me too. Before: After patch: |
Sorry to re-open this, but I've got the exact same error on ownCloud 10 with, of course, the patch already applied |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Same issue for me on 10.0.4. @rvdmeij's soulution solved it. |
Same issue on 10.0.4. Tried @rvdmeij's solution:
Still getting the same output on file:scan --all and on the specific user
|
I had the same issue with NC 13. I guess the problem was the following for me: For 'debugging' this issue I temporary removed the external storage at '/' of user A with the result, that I could not login at all (execption...; the log says something like "OCP\Files\NotFoundException: /var/www/nextcloud/apps/files/lib/Controller/ViewController.php - line 131: OC_Helper getStorageInfo('/', false)" etc.). I added this folder manually then and re-mounted the external storage to '/' and afterwards the scan worked for me. |
Hello, I wish to reactivate this bug… I have 9 users (out of 33) that have the same problem : Using owncloud 10.0.9. The only solution I've found is to delete the user and recreate it : a new sync starts again, but that is long and complicated !! Any other solution ? Thanks Peter |
Experiencing this issue too after moving the /data directory. |
Same thing here after moving /data after upgrade to 10.0.10. But, i found that the users in the oc_account table never logged in and additional the last login time stamp is set as zero there. In a second step i proof the users home and there it doesn't exist the files dir described like above.
Check, all is running for me. |
I just had the same issue. I fixed it after some hints (which I will now describe to maybe help others). The scan did not work :-( The issue was that the home directory of the user is stored in the database (mariadb in my case)! I manually updated the database by changing the values for the users in the table "oc_accounts" column "home" and then the scan worked! Good luck to everyone haveing troubles with this issue! |
This worked for us. We didn't even move our data directory and new files would write to random directories within the data dir. Upon checking the home column in the oc_accounts table, we found that it had assigned random characters as the user directories within the data directory. I corrected them all, scanned, and had users login. Worked like a charm! |
OwnCloud Version 10.4.1.3 dated Apr-2020 #25755 (comment) Struggled for an hour or so and stumbled upon the cli scan Hope this helps anyone else migrating their OCs. Also it would be great to rather have "relative" path stored in the DB per user rather than an absolute path. That's what exactly the constant 'datadirectory' in config is for. The relative path in DB should be derived from 'datadirectory'+user's directory. Jut my 2 cents Regards. |
This is golden, just surprised migration can't handle owncloud-docker/server#357 (comment) |
Steps to reproduce
sudo -u www-data php occ files:scan --all
Expected behaviour
No error message.
Actual behaviour
For some user i got an error message:
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache/2.4.18 (Ubuntu)
Database: mysql Ver 14.14 Distrib 5.7.13, for Linux (x86_64) using EditLine wrapper
PHP version: PHP 7.0.8-0ubuntu0.16.04.2
ownCloud version: 9.1.0 stable
**Updated from an older ownCloud or fresh install: updated from 8.x
Where did you install ownCloud from: Ubuntu Repro
Signing status (ownCloud 9.0 and above):
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
Yes: 1 external hosted owncloud share
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
**Browser: Chrome
**Operating system:
Win10
Logs
ownCloud log (data/owncloud.log)
additional note:
I checked the files permission and i see no difference between user Christian und Bianca
The text was updated successfully, but these errors were encountered: