makeplane / plane

🔥 🔥 🔥 Open Source JIRA, Linear, Monday, and Asana Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
http://plane.so
GNU Affero General Public License v3.0
29.49k stars 1.62k forks source link

[bug]: HeadObject operation: Bad Request while uploading any image or artefact to issues #4975

Open ashishlead opened 3 months ago

ashishlead commented 3 months ago

Is there an existing issue for this?

Current behavior

Have configured plane over S3 using the steps mentioned here

But while uploading any image or artefact to issue, getting below errror:

api-1  | An error occurred (400) when calling the HeadObject operation: Bad Request
api-1  | ERROR 2024-06-18 12:26:24,205 exception_logger 25 273656705968456 An error occurred (400) when calling the HeadObject operation: Bad Request
api-1  | ERROR 2024-06-18 12:26:24,212 log 25 273656626534728 Internal Server Error: /api/workspaces/test-workspace/projects/d9398df5-8455-4b06-8f4b-aba3615c8afe/issues/c0c5aa71-43de-4ff0-8964-4e6c5772ea0e/issue-attachments/

Steps to reproduce

  1. Configure plane using steps here, https://docs.plane.so/self-hosting/methods/docker-compose
  2. Configure S3 as below:
    # DATA STORE SETTINGS
    USE_MINIO=0
    AWS_REGION=ap-south-1
    AWS_ACCESS_KEY_ID=xxxxx
    AWS_SECRET_ACCESS_KEY=xxxxx
    AWS_S3_ENDPOINT_URL=https://xxxxxx.ap-south-1.amazonaws.com/
    AWS_S3_BUCKET_NAME=xxxx-plane-
    MINIO_ROOT_USER=access-key
    MINIO_ROOT_PASSWORD=secret-key
    BUCKET_NAME=lead-plane-jira
    FILE_SIZE_LIMIT=5242880
  3. Open plane.so, and upload any image to any issue to reproduce the bug

Environment

Production

Browser

Google Chrome

Variant

Cloud

Version

v0.21.0

pablohashescobar commented 2 months ago

@ashishlead, while using S3, the AWS_S3_ENDPOINT_URL is not required and the bucket should be public.