Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Not able to configure Digital Ocean spaces as S3 storage #4806

Closed
VipinGoyal opened this issue Jan 12, 2025 · 1 comment · Fixed by #4941
Closed

[Bug]: Not able to configure Digital Ocean spaces as S3 storage #4806

VipinGoyal opened this issue Jan 12, 2025 · 1 comment · Fixed by #4941

Comments

@VipinGoyal
Copy link

VipinGoyal commented Jan 12, 2025

Error Message and Logs

Not able to configure Digital Ocean space as S3 storage, though AWS S3 is working but Digital Ocean is not.

Im getting this error while saving details with this endpoint i.e. https://nyc3.digitaloceanspaces.com

Unable to list contents for '', shallow listing

Reason: Error executing "ListObjectsV2" on "https://nyc3.digitaloceanspaces.com/?list-type=2&prefix=&delimiter=%2F"; AWS HTTP error: Client error: `GET https://nyc3.digitaloceanspaces.com/?list-type=2&prefix=&delimiter=%2F` resulted in a `403 Forbidden` response:
<Error><Code>AccessDenied</Code><Message>Access Denied.</Message><Resource>/</Resource><RequestId>not available</Request (truncated...)
 AccessDenied (client): Access Denied. - <Error><Code>AccessDenied</Code><Message>Access Denied.</Message><Resource>/</Resource><RequestId>not available</RequestId></Error>

Also, tried with both region as us-east-1 and nyc3 in endpoint as well
When I remove region from endpoint or add bucket name additionally, I'm able to save the configuration but while saving backup Im getting this error i.e.

So, with https://digitaloceanspaces.com, Im getting this error

mc: <ERROR> Unable to initialize new alias from the provided credentials. <html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>cloudflare</center>
</body>
</html>.

and with this endpoint, https://.nyc3.digitaloceanspaces.com Im getting this error where is actual bucket name

mc: <ERROR> Unable to initialize new alias from the provided credentials. The specified key does not exist.

I've added nyc3 as a region in endpoint as per comment here #2615 and tried with both region i.e. us-east-1 and nyc3 as mentioed here client, but Im not able to confgure digitalocean s3 compatible storage, when I checked with ChatGpt, this is what it said

  1. Check for Signature Version or Path Style Options
    Some S3 libraries (or wrappers used by Coolify) need additional parameters to talk nicely to DO Spaces:

Signature Version: DO Spaces generally uses Signature Version 4 (v4). If the library is forcing v2 or if signature mismatch occurs, you’ll get a 403.
Path-Style vs Virtual-Host–Style: Many DO Spaces setups require virtual-host–style (i.e., bucket name as a subdomain). But some tools only work with path-style unless configured. If your library is building a URL like https://nyc3.digitaloceanspaces.com/my-bucket/..., it may fail if Spaces is expecting https://my-bucket.nyc3.digitaloceanspaces.com/..., or vice versa.
In short, if there’s a toggle in Coolify to “use path style endpoint” or “use virtual host style”, try flipping it.

Steps to Reproduce

  1. Im getting this error while saving details with this endpoint i.e. https://nyc3.digitaloceanspaces.com in S3 storgae option.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.380

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

No response

@VipinGoyal VipinGoyal added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 12, 2025
@VipinGoyal VipinGoyal changed the title [Bug]: [Bug]: Not able to configure Digital Ocean spaces as S3 storage Jan 12, 2025
@peaklabs-dev peaklabs-dev self-assigned this Jan 25, 2025
@peaklabs-dev peaklabs-dev added 🐞 Confirmed Bug Verified issues that have been reproduced by the team. ✅ Done Issues that are fixed and a PR is ready to be merged. and removed 🔍 Triage Issues that need assessment and prioritization. labels Jan 25, 2025
@github-actions github-actions bot removed 🐛 Bug Reported issues that need to be reproduced by the team. 🐞 Confirmed Bug Verified issues that have been reproduced by the team. ✅ Done Issues that are fixed and a PR is ready to be merged. labels Jan 28, 2025
@iKlsR
Copy link

iKlsR commented Feb 5, 2025

Probably same issue but I had the key set to Read (Objects) and got the same as above, works for S3 as you say but with DO I seem to have to enable All Permissions (Bucket & Objects) which isn't ideal but works for now since I'm mirroring an S3 bucket and this is going to be used internally only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants