Troubleshoot Dosya S3 authentication and access

Use the S3 error code to repair credentials, SigV4 settings, workspace pinning, permissions, file limits, quota, or request throttling.

Last reviewed

Keep the complete S3 error code, message, HTTP status and request time before changing the client profile. Authentication is evaluated before protocol permission, workspace pin, membership, folder anchor, role and upload policy, so correcting one layer can legitimately reveal the next refusal.

S3 diagnostic sequence: validate the DOSYA access pair and SigV4 path-style profile, list the pinned workspace, then test one permitted object operation.
Begin with a read-only bucket or prefix listing; attempt an upload or delete only after identity, workspace and visibility are correct. Open full-size screenshot.

Steps

Copy the live values from Integrations → S3 and the matching API-key row:

Client fieldRequired value
Endpointhttps://api.dosya.dev/s3
Regionus-east-1
SigningAWS Signature Version 4
AddressingPath style; forcePathStyle: true in the JavaScript AWS SDK
Access keyThe generated ID beginning DOSYA, not the dos_… API key
Secret keyThe 40-character S3 secret paired with that access ID
BucketExact workspace ID, such as ws_example, not the workspace name

Do not put the bucket into the hostname. A folder-restricted key keeps the workspace ID as its bucket and treats object keys as relative to the anchor. If the anchor is Projects, the object key checks/a.txt reaches Projects/checks/a.txt; adding Projects/ again looks in the wrong nested path.

The S3 secret cannot be retrieved later. A row displaying (secret key is not retrievable - revoke and recreate the key to rotate) requires a new key and credential pair if the stored client secret is lost. Update dependent clients, confirm the replacement, then revoke the old key. Revocation is permanent but does not delete files.

Match the exact response

S3 resultCause to checkRecovery
InvalidAccessKeyId / The access key ID does not existWrong access ID, revoked/expired key, or pasted dos_… keyCopy the DOSYA… access ID from the correct row. Create a replacement pair if that row is no longer active.
SignatureDoesNotMatch / The request signature does not matchSecret does not match the access ID, or the client signed a different endpoint/path/queryRe-enter the paired secret, endpoint, region and path-style option; discard the failed request and let the SDK sign a new one.
AccessDenied / This API key is not permitted to use the S3 gatewayThe key’s protocol restriction excludes S3Create or replace the key with S3 gateway selected under Protocols.
This API key is pinned to a different workspaceBucket and key workspace pin disagreeUse the bucket ID shown for the pinned workspace, or issue a different narrowly pinned key.
This role is not permitted to use the S3 gatewayMember role lacks the S3 access gateAsk a workspace owner or admin to grant the role’s S3 permission. A broader key cannot override the role.
NoSuchBucket, missing object, or an unexpectedly empty listingWrong workspace ID, folder-relative path, membership confinement, hidden/locked state, or TrashList the permitted bucket/root and build the path from returned names. Compare with Dosya Files under the key owner’s account.
Upload not allowed, Creating folders is not allowed, or Object is lockedScope/role denies the operation or destination is lockedChoose an allowed operation/destination; do not widen the key before confirming the user’s role.
EntityTooLargeObject exceeds a file-size policy or active key/role limitRead the returned message, use an accepted file, or have an authorized administrator change the actual limit.
QuotaExceededWorkspace does not have enough available storageFree space or increase its storage allowance before starting another multipart upload.
429 XML SlowDownExplicit request/transfer/byte rule refused the operationHonor Retry-After when present. Reduce parallel transfers for concurrency limits; byte allowances require their reset or an authorized limit change.
429 JSON Too many requestsFront-door throttle reached 600 requests/minute per user or 1,200/minute per IPPause for Retry-After, lower polling/list frequency, and stagger clients sharing that identity or address.

For a presigned request, X-Amz-Expires must be an integer from 1 through 604,800 seconds. Request has expired means its signed lifetime ended; generate a new URL instead of modifying the query, because changing a signed parameter invalidates the signature.

Expected result

  1. List the exact workspace bucket or its allowed prefix. A successful bucket discovery proves visibility, not upload or delete permission.
  2. Download one known harmless object into a new local path and compare its size or SHA-256 with the source.
  3. If the key and role allow upload, send uniquely named test bytes to an authorized disposable prefix. Wait for HTTP 200, then refresh Files and download the object for comparison.
  4. Abort any failed multipart upload through the client. A local cancellation can leave unfinished parts.

Listing returns at most 1,000 entries per page, so a client must follow continuation tokens. Multipart part numbers range from 1 to 10,000 and a protocol part may be at most 5 GiB, but your effective object, storage, credential and role limits can be much smaller.

Understand successful but unexpected changes

Uploading to an existing Dosya path creates a new file version. It is not an AWS version ID, and version history/retention rules still apply. Deleting an eligible object moves it to Trash, revokes its share links and can return 204 even when the object was already absent. Trash continues to occupy storage until purge; permanent purge cannot be reversed.

The gateway does not provide AWS IAM/ACL administration, lifecycle rules, replication, S3 versioning or Object Lock/legal hold. Configuration writes for unsupported features return NotImplemented. If a tool requires those guarantees, changing credentials will not make that workload compatible.

Dosya New API key restriction form where S3 protocol, workspace pin, folder reach, expiry, and usage conditions are selected.
Check protocol and workspace restrictions on the key that owns the S3 pair; each restriction continues to apply after signature verification. Open full-size screenshot.

Escalate without exposing credentials

If a minimal listing still fails, provide the client/version, endpoint, region, addressing mode, bucket ID, method, object prefix, HTTP status, S3 code/message, approximate time and timezone, and whether the key is workspace/folder restricted. Redact the access ID if your policy requires it, and never send the secret key, Authorization header, presigned query or complete private object path.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.