Owncloud and S3 storage on DigitalOcean


#1

Steps to reproduce

  1. Add external storage with type Amazon S3 based on DigitalOcean (DO) Spaces service
  2. Upload any files and folders to DO space using s3cmd utulity
  3. Rescan files using "occ files:scan admin"

Expected behaviour

You will receive an error message:

    Folder /admin/files/S3-globalmap/
    File   /admin/files/S3-globalmap/files
    Exception during scan: ErrorException: Undefined index: size
    #0 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(420): OCA\Files\Command\Scan->exceptionErrorHandler(8, 'Undefined index...', '/var/www/ownclo...', 420, Array)

But! The "/admin/files/S3-globalmap/files" - is a FOLDER!

Actual behaviour

Probably owncloud should scan directories somehow other than files

Server configuration

Operating system:
Distributor ID: Debian
Description: Debian GNU/Linux 8.10 (jessie)
Release: 8.10
Codename: jessie

Web server:
apache2 v2.4.10

Database:
postgresql v9.4

PHP version:
php v7.0.29

ownCloud version: (see ownCloud admin page)
ownCloud v10.0.7 (stable)

UPD. The most important! The task is such that S3 already has files, and owncloud can find them!


#2

Have you tried to search the bugtracker of ownCloud for a possible reported issue there?


#3

Of course, I did not find anything decisive for my problem.


#4

The most important! The task is such that S3 already has files, and owncloud can find them!


#5

I did the following search https://github.com/owncloud/core/search?q=%22Undefined+index%3A+size%22&type=Issues

and immediately found at least one issue which seems to be about the very same issue: https://github.com/owncloud/core/issues/28181

Generally i think its always the best to report such issues to the bugtracker as well as Exceptions are probably something where a user support forum can't help besides finding possible existing bug reports. :confused: