Skip to content

S3 media upload not activated until full container restart (Docker Swarm) #230

@AntonKun

Description

@AntonKun

Issue Description:
We create a user via the /admin/users endpoint with the parameter "mediaDelivery": "s3". The S3 configuration is correct — the /session/s3/test endpoint confirms this.

/session/s3/test:

{
  "code": 200,
  "data": {
    "Bucket": "wuzapi",
    "Details": "S3 connection test successful",
    "Region": ""
  },
  "success": true
}

After creating the user, I authorize the account. However, the service continues to behave as if media delivery is not switched to S3. In the logs for messages with attached media (e.g., images), there is no indication that uploads are being sent to S3.

/session/status:

{
  "code": 200,
  "data": {
    "connected": true,
    "events": "All",
    "history": "0",
    "hmac_configured": false,
    "id": "a94493865c7ed8890699be387b519e05",
    "jid": "<my_number>:43@s.whatsapp.net",
    "loggedIn": true,
    "name": "<my_name>,
    "proxy_config": {
      "enabled": false,
      "proxy_url": ""
    },
    "proxy_url": "",
    "qrcode": "",
    "s3_config": {
      "access_key": "***",
      "bucket": "swuzapi",
      "enabled": true,
      "endpoint": "https://<my_domain>",
      "media_delivery": "s3",
      "path_style": true,
      "public_url": "",
      "region": "",
      "retention_days": 30
    },
    "token": "<my_token>",
    "webhook": ""
  },
  "success": true
}

Calling /session/disconnect and /session/connect does not resolve the issue. The only thing that helps is a full container restart.

WuzAPI is running in a Docker Swarm environment.

Please let me know if you need any further information from me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions