Not able to upload files to Nextcloud with Spaces as External Storage

June 15, 2018 970 views

I am not able to upload files on Nextcloud which uses Spaces as an external storage.

I am able to view the files that are already in the space.

On opening the network monitor, the PUT call on Nextcloud fails with 500. This is the log output

Aws\S3\Exception\S3Exception: Error executing "PutObject" on ""; AWS HTTP error: Client error response [url] [status code] 403 [reason phrase] Forbidden SignatureDoesNotMatch (client): - <?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><RequestId>tx0000000000000033e3ed6-005b2392f4-11ec04-sgp1a</RequestId><HostId>11ec04-sgp1a-sgp</HostId></Error>

Initially, I thought it was a CORS issue, so I made an entry with host as * and allowing everything. Though, that did not help.

Any ideas why this could be happening ?

2 Answers

Ok, so the reason was SSL not being enabled.

If it helps anyone else, make sure SSL is enabled in the External Storage’s settings in Nextcloud if you’re using Spaces for storage

Thanks just had the same problem. turned SSL on and worked.

Have another answer? Share your knowledge.