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 "http://spacename.sgp1.digitaloceanspaces.com/bookmarks_6_14_18.html"; AWS HTTP error: Client error response [url] https://spacename.sgp1.digitaloceanspaces.com/bookmarks_6_14_18.html [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 ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.