You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[oC7 Beta 1] S3 external storage doesn't work #11280
Hmmmm, it seems that this PR #9509 breaks it for me.
Before that commit I get "signature failed" from my location (which I already got in the past when connecting to a US bucket).
After that commit I also get the "Unknown error".
@ser72 would be good if you could try checking out commit 46ba08a and 687cd7f and compare whether it works for you.
@ser72 is your test instance empty ?
When debugging I see that the stat() call has empty content for most of the fields, even the mtime is an empty string.
@ser72 what database are you using? I just tested with sqlite and get a lot of database is locked errors. I also saw the 'Unknown Error' once and had the endless spinning. After a few reloads the issue seems to have vanished. I'll investigate further. If possible send me the credentials via mail, pls.
@karlitschek I can avoid the database is locked errors by commenting \OC_DB::beginTransaction(); and \OC_DB::commit(); in cache/scanner.php. Seeing the file scan of the external storage take forever - live and in a color terminal - reminded me of @PVince81 mentioning long running deletes being the problem and I vaguely remembered @icewind1991 adding the transaction to improve scan performance. Maybe we should disable the transaction on sqlite. @jancborchardt did you by chance use files_external?
@carlaschroder that might be caused by another issue I noticed: the external storage seems to keep the cached files when removing and readding the cache. Even worse the storage filecach seems to be reused when the bucket name is changed, requiring a manual file rescan.
For this issue I think I have a solution, but the tests somehow disagree ... I am on it.
fix tests (some seem to suffer from timeouts being too short)
increase version and add update.php to migrate storage id from 'amazon::' . $params['key'] . md5($params['secret']) to 'amazon::' . $params['bucket'] . ':' . $params['key']. Otherwise users will suffer a complete rescan of the s3 bucket and a cluttered filecache.
#11375 now fixes leftover issues after #10104 has been merged and backported.
@icewind1991@karlitschek@DeepDiver1975 What do we do with the database locked error on sqlite. It seems to be reproducible when scanning an external storage due to the open transaction. Should we disable it for sqlite only?
Activity
PVince81 commentedon Sep 25, 2014
Got the error by debugging, somehow this is not logged:
PVince81 commentedon Sep 25, 2014
Hmmmm, it seems that this PR #9509 breaks it for me.
Before that commit I get "signature failed" from my location (which I already got in the past when connecting to a US bucket).
After that commit I also get the "Unknown error".
@ser72 would be good if you could try checking out commit 46ba08a and 687cd7f and compare whether it works for you.
PVince81 commentedon Sep 25, 2014
@ser72 is your test instance empty ?
When debugging I see that the
stat()call has empty content for most of the fields, even the mtime is an empty string.ser72 commentedon Sep 25, 2014
@PVince81
No there are files in the ocsteve bucket. only 1 or 2 but there are files there
butonic commentedon Sep 29, 2014
@ser72 what database are you using? I just tested with sqlite and get a lot of
database is lockederrors. I also saw the 'Unknown Error' once and had the endless spinning. After a few reloads the issue seems to have vanished. I'll investigate further. If possible send me the credentials via mail, pls.ser72 commentedon Sep 29, 2014
@butonic
Postgresql.
karlitschek commentedon Sep 29, 2014
The database is locked errors are also worth to be debugged. I think we got bug reports like that in the past but could never really reproduce.
carlaschroder commentedon Sep 29, 2014
FWIW I am experiencing a similar issue.
My oC log says:
Debug webdav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found
Debug core OC_Image->fixOrientation() Orientation: -1
Debug core OC_Image->fixOrientation() No readable file path set.
This is oC 7.0.2 on Ubuntu 14.04, Apache, MariaDB
butonic commentedon Sep 30, 2014
@karlitschek I can avoid the database is locked errors by commenting
\OC_DB::beginTransaction();and\OC_DB::commit();in cache/scanner.php. Seeing the file scan of the external storage take forever - live and in a color terminal - reminded me of @PVince81 mentioning long running deletes being the problem and I vaguely remembered @icewind1991 adding the transaction to improve scan performance. Maybe we should disable the transaction on sqlite. @jancborchardt did you by chance use files_external?@carlaschroder that might be caused by another issue I noticed: the external storage seems to keep the cached files when removing and readding the cache. Even worse the storage filecach seems to be reused when the bucket name is changed, requiring a manual file rescan.
For this issue I think I have a solution, but the tests somehow disagree ... I am on it.
butonic commentedon Sep 30, 2014
I'm not done yet, but progress can be tracked in https://github.com/owncloud/core/tree/fix_files_external_amazon_s3_stat_call
TODO:
'amazon::' . $params['key'] . md5($params['secret'])to'amazon::' . $params['bucket'] . ':' . $params['key']. Otherwise users will suffer a complete rescan of the s3 bucket and a cluttered filecache.butonic commentedon Oct 1, 2014
most of the problems are solved with #10104. I need another review for it, then I'll rebase my work to fix some remaining issues
butonic commentedon Oct 1, 2014
#11375 now fixes leftover issues after #10104 has been merged and backported.
@icewind1991 @karlitschek @DeepDiver1975 What do we do with the database locked error on sqlite. It seems to be reproducible when scanning an external storage due to the open transaction. Should we disable it for sqlite only?
jancborchardt commentedon Oct 1, 2014
@butonic if you’re asking if I used
files_externalwhen these SQLite locking errors appeared: I’m pretty sure that yes, I did.butonic commentedon Oct 2, 2014
Tracking the db locked issue in #11391
butonic commentedon Oct 8, 2014
fix will be in next build of master and stable7, discussion on sqlite db locking after the EE release in #11391