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

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 ?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

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.