-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
occ files:scan -all
Makes all folders show that they were just changed
#1583
Comments
Well the files:scan command is not recommended for daily use. |
It's the only way I have been able to get Nextcloud to pick up or recognize new files placed on the smb server. With only a few files it works without but after several gigs of files have been accessed and hundreds of folders, It just doesn't seem to look any further. I do have Check for Changes set to Once every direct access. But does that mean once every access via a sync client? Because that is the access most of my clients are using. If the check for changes should be working then I believe that is also listed as a bug that I found yesterday. |
Same problem. 37 GiG of data, the only way ist to use "occ files:scan -all" |
This comment was marked as duplicate.
This comment was marked as duplicate.
I think it does yes. But let's confirm by @icewind1991 |
The sync client only accesses the users home folder and will thus only find top level changes. With SMB, you can run an occ command that actively listen for smb changes. This issue will be fixed with #3449 |
#3449 is merged, is that bug fixed ? |
I scanned ( |
Well as per it's description: Maybe |
I dropped oc_filecache and launched |
You should not drop oc_filecache, it's not a cache but an index. |
Yes thanks, I know that not a cache. I should have tested by creating a new directory. I got excited. |
Had this issue with nc 12 too. I saw that there was a storage_mtime field with the correct values in the oc_filecache table. Just execute this sql statement after each occ files:scan :
or from the shell :
|
Briliant, works like a charm as a workaround 👌 Thanks! |
What would be the postgresql command that does the same? Edit:
|
I just had this issue with Nextcloud 23.0.2, Ubuntu 20.04, MariaDB 10.3.32, apache2. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I too confirm the bug with the latest 25.0.1.1 version. While migrating the data between two virtual machines, I have used:
to preserve the modification times. The folder stats are correct. However, after triggering the scan, all folders appear to have been last modified at the moment of the copy. Values in the |
Thank you all for this very useful thread. When a folder is added to Nexcloud either by dropping it in to the WebUI OR rsync'ing it in to the datadir and then running However, under normal usage perhaps that behavior makes sense? It's only a problem when you are setting up a new NC instance with your OLD data and for the first sync only you want to keep all the timestamps from the "old" NC instance. So I wonder if the fix here is not to change the existing code but to add a new parameter to Just my two cents! Flex |
occ files:scan -all
Makes all folders show that they were just changed
Steps to reproduce
Expected behaviour
New files or folders should be shown but no changes to their last update time and date unless it did change.
Actual behaviour
All folders on SMB shares show that they were updated or modified when the scan took place.
Server configuration
Ubuntu 16.4
Web server:
Apache
Database:
MySQL
PHP version:
7.0.8
Nextcloud version: (see Nextcloud admin page)
10
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
Downloaded from Nextcloud.com
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
SMB
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
LDAP configuration (delete this part if not used)
LDAP config
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log
Browser log
The text was updated successfully, but these errors were encountered: