Amazon S3 Primary not Working


I have NextCloud installed on Linux server, and I created some users as customer, and it was working fine, I wanted to shift the primary storage to Amazon S3, as I saw in this link I need to add some configurations to my config.php file at nextcloud/data

but that caused an error, all client users are returning the message " no connection to nextcloud as "localhost" error transferring "localhost/remote.php/dav/files/user" server replied: internal server error **(Home does not exit)**

in the log file I also have the exception Home does not exit
Keep in mind, I have NextCloud version

now, here how the config looks like:

 'objectstore' =>
    'class' => 'OC\\Files\\ObjectStore\\S3',
    'arguments' => array(
            'bucket' => 'nextcloud',
	    'autocreate' => true,
	    'key'    => 'XXXXXX',
	    'secret' => 'xxxxxxxxxxxxxxxxx',
	    'hostname' => '',
	    'use_ssl' => false,
	    'region' => 'us-east-1',

any idea?


Changing the Data Folder after Installation is not supported. Just today i stumbled upon the same question, and somebody explained why this is especially true when moving the Primary Storage to S3. There is a procedure to do this on a fresh install to follow, but sadly i can not find the thread at the moment. Try the search function youself, in the meantime i give you this Link:

There should be some Note in the Documentation, that you cannot change this after intial setup written in big fat neon letters.

I’m not sure, but things like S3 might be an exception (@tflidd?).
Moving is supported as the link states, but only via symlink.

Here’s the fresh install route, I answered on another post

1 Like