-
-
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
Not syncing with S3 after upgrade to 12.0.0 #5101
Comments
Changing this bit of code where the error is reported gets the files displaying again: $stat['size'] = $result['ContentLength'] ? $result['ContentLength'] : 0;
if ($result['Metadata']['lastmodified']) {
$stat['mtime'] = strtotime($result['Metadata']['lastmodified']);
} else {
$stat['mtime'] = strtotime($result['LastModified']);
} to $stat['size'] = $result['ContentLength'] ? $result['ContentLength'] : 0;
if (! empty($result['Metadata']['lastmodified'])) { // catch not set as well as not true
$stat['mtime'] = strtotime($result['Metadata']['lastmodified']);
} else {
$stat['mtime'] = strtotime($result['LastModified']);
} Refreshing S3 file lists when they change is still not working though - seems like it caches the files forever, even when I flush the cache, but I think that's a problem for another issue. |
Oh, issue #3673 says that nothing should touch the bucket other than Nextcloud. Wasn't expecting that. I thought it could be used as an external service in the same way that an external local file system could be used to dump files into. Guess I'm going to have to rethink how I use this tool. |
Correct. It is only used with file IDs for example and Nextcloud will not detect changes, because this would cause a whole new set of problems. Closing this. |
Steps to reproduce
Expected behaviour
Let's see the files on S3! I've got 5000 of the, in 169 diectories, nested four deep.
Actual behaviour
As described above.
Server configuration
Operating system: Linux
Web server: CentOS
Database: MySQL
PHP version: 5.6 FastCGI
Nextcloud version: 12.0.0
Updated from an older Nextcloud/ownCloud or fresh install: 11.0.0
Where did you install Nextcloud from: Initially the single PHP script through the web browser. The update through the web browser too.
Okay - getting bored now, and I need to go. I'll post the logged message further down.
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
This shows up in the log entries for each time I try to view the S2 external storage files:
^^ I'm guessing this is the key point, and I can supply further details on request.
The text was updated successfully, but these errors were encountered: