[bug] ExAws: HTTP ERROR: "timeout" #594

Closed
opened 2023-07-20 04:32:50 +00:00 by argxentakato · 2 comments

Your setup

OTP

Extra details

No response

Version

3.9.3-0-g9d7c877

PostgreSQL version

15

What were you trying to do?

Upload an image to the Akkoma server, which uses S3-compatible object storage in production.

What did you expect to happen?

Files can be uploaded.

What actually happened?

When attempting to upload a file, an error message 'Error: Upload failed. Try again later' is displayed.

Logs

Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.202 request_id= .... [debug] POST /api/v1/media
Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.205 request_id= .... [debug] Processing with Pleroma.Web.MastodonAPI.MediaController.create/2
Jul 20 13:15:19 .... pleroma[8863]:   Parameters: %{"file" => %Plug.Upload{path: "/tmp/plug- .... ", content_type: "image/png", filename: " .... "}}
Jul 20 13:15:19 .... pleroma[8863]:   Pipelines: [:authenticated_api]
Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.208 request_id= .... [debug] QUERY OK source="oauth_tokens" db=1.6ms queue=0.8ms idle=188.4ms
Jul 20 13:15:19 .... pleroma[8863]: SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at" FROM "oauth_tokens" AS o0 WHERE (o0."token" = $1) [ .... ]
Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.676 [debug] QUERY OK db=0.8ms idle=655.5ms
Jul 20 13:15:49 .... pleroma[8863]: request_id= .... [warn] ExAws: HTTP ERROR: "timeout" for URL: "https://sgp1.digitaloceanspaces.com/ .... / .... ?uploads=1" ATTEMPT: 1
Jul 20 13:15:49 .... pleroma[8863]: 13:15:49.229 request_id= .... [warning] ExAws: HTTP ERROR: "timeout" for URL: "https://sgp1.digitaloceanspaces.com/ .... / .... ?uploads=1" ATTEMPT: 1

Severity

I cannot use the software

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup OTP ### Extra details _No response_ ### Version 3.9.3-0-g9d7c877 ### PostgreSQL version 15 ### What were you trying to do? Upload an image to the Akkoma server, which uses S3-compatible object storage in production. ### What did you expect to happen? Files can be uploaded. ### What actually happened? When attempting to upload a file, an error message 'Error: Upload failed. Try again later' is displayed. ### Logs ```shell Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.202 request_id= .... [debug] POST /api/v1/media Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.205 request_id= .... [debug] Processing with Pleroma.Web.MastodonAPI.MediaController.create/2 Jul 20 13:15:19 .... pleroma[8863]: Parameters: %{"file" => %Plug.Upload{path: "/tmp/plug- .... ", content_type: "image/png", filename: " .... "}} Jul 20 13:15:19 .... pleroma[8863]: Pipelines: [:authenticated_api] Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.208 request_id= .... [debug] QUERY OK source="oauth_tokens" db=1.6ms queue=0.8ms idle=188.4ms Jul 20 13:15:19 .... pleroma[8863]: SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at" FROM "oauth_tokens" AS o0 WHERE (o0."token" = $1) [ .... ] Jul 20 13:15:19 .... pleroma[8863]: 13:15:19.676 [debug] QUERY OK db=0.8ms idle=655.5ms Jul 20 13:15:49 .... pleroma[8863]: request_id= .... [warn] ExAws: HTTP ERROR: "timeout" for URL: "https://sgp1.digitaloceanspaces.com/ .... / .... ?uploads=1" ATTEMPT: 1 Jul 20 13:15:49 .... pleroma[8863]: 13:15:49.229 request_id= .... [warning] ExAws: HTTP ERROR: "timeout" for URL: "https://sgp1.digitaloceanspaces.com/ .... / .... ?uploads=1" ATTEMPT: 1 ``` ### Severity I cannot use the software ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
argxentakato added the
bug
label 2023-07-20 04:32:50 +00:00
Author

I thought it could be a problem on the part of Cloudflare or DigitalOcean, but both report that the service is fine. Odd.

I thought it could be a problem on the part of Cloudflare or DigitalOcean, but both report that the service is fine. Odd.
Author

I have just realised that I had misconfigured my proxy and could no longer connect to DigitalOcean. Sorry!

I have just realised that I had misconfigured my proxy and could no longer connect to DigitalOcean. Sorry!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#594
No description provided.