You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that you're encountering an issue with the endpoint URL. To resolve this, could you please try prepending https:// before the URL? This should ensure that the URL is using the correct protocol for the request.
I noticed that you're encountering an issue with the endpoint URL. To resolve this, could you please try prepending https:// before the URL? This should ensure that the URL is using the correct protocol for the request.
Hi, i have tried your suggestion, but I'm getting the same error.
Any update or solution for this. I'm having the same issue. I've even tried minio setup when s3 didn't work thinking there might be some issue with the s3 endpoint url but no luck. Still can't make uploads work, the upload api gives 400 with the message "Something went wrong please try again later", that's it. I guess one good way is to log the actual error in the console or the logger so it would be easier to debug and know where it is failing than just ignoring the error with such a broad exception catch. I'd be happy to open a PR regarding the same
I had the same problem and debugging was pretty hard. It turned out, that my self hosted minio setup had TLS verification enabled. Those were custom signed TLS certificates and plane was not able to verify the certificate correctly. I completely disable the minio TLS setup and configured plane to use plain HTTP. After this I was able to upload assets.
I have this issue too. I'm using OpenStack / Swift and I just cannot get anything to upload.
In the browser:
POST
https://[redacted]/api/users/file-assets/
[HTTP/2 400 Bad Request 992ms]
Object { error: "Something went wrong please try again later" }
In Plane's logs:
planebackend | POST - /api/users/file-assets/ of Queries: 1
planebackend | Bad Request: /api/users/file-assets/
planebackend | 172.23.0.2:39992 - "POST /api/users/file-assets/ HTTP/1.1" 400
My env:
AWS_REGION="us-east-1" // Set by my Openstack provider
AWS_ACCESS_KEY_ID="[redacted]"
AWS_SECRET_ACCESS_KEY="[redacted]"
AWS_S3_ENDPOINT_URL="https://s3.[redacted]/object/v1/AUTH_[redacted]" // As per my Openstack provider's documentation
AWS_S3_BUCKET_NAME="plane-uploads"
FILE_SIZE_LIMIT=5242880
I'm not even sure how to diagnose this, there's nothing helpful at all in the logs.
A small update, issue not fully fixed however. In my Openstack case changing AWS_S3_ENDPOINT_URL="https://s3.[redacted]/object/v1/AUTH_[redacted]" to AWS_S3_ENDPOINT_URL="https://s3.[redacted]" allows for authentication and successful POST requests (eg file uploads.) However, actual bucket location is still at https://s3.[redacted]/object/v1/AUTH_[redacted]/plane-uploads/, which is not reflected in the AWS_S3_ENDPOINT_URL. This mismatch means the uploads can not be retrieved.
I solved it. My situation is more like django-storages issue.
I print the exception. The error message is An error occurred (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs.
Make sure AWS_S3_ENDPOINT_URL="https://s3.amazonaws.com", not AWS_S3_ENDPOINT_URL="https://[bucket_name].s3.amazonaws.com"
Edit apiserver/plane/settings/production.py
Make sure AWS_S3_BUCKET_AUTH = True. It is important.
You need edit AWS_S3_ADDRESSING_STYLE. Based on aws region, you can refer to
(optional) Set AWS_S3_PUBLIC_URL, if your bucket has a CDN link. (Although the comment say This setting cannot be used with "AWS_S3_BUCKET_AUTH", actually it works.)
Hey @MyWay, can you check by upgrading to the latest version. This issue should be fixed now. Let us know if you are still facing this issue.
How should I configure it for an alternative s3 in the latest version? Because upload is working, I can see the file in the bucket, but then the url generated by plane is pointing to my plane instance, so maybe I'm missing some setting.
You may have to do some changes the current plane setup either connects with S3 or minio for fetching assets for other services you may have to change the configuration a bit to make it work.
Couldn't upload files to AWS S3, I am using the script to run it on a linux server with docker.
I did update the environment variables with the working AWS credentials.
I'm using AWS s3 , started with 500 error as well, then when I recreated the bucket, I enabled ACLs and it's working fine now, so you can test it from that.
Activity
pablohashescobar commentedon Jun 19, 2023
Hi @MyWay,
I noticed that you're encountering an issue with the endpoint URL. To resolve this, could you please try prepending
https://before the URL? This should ensure that the URL is using the correct protocol for the request.MyWay commentedon Jun 19, 2023
Hi, i have tried your suggestion, but I'm getting the same error.
anvy2 commentedon Jul 12, 2023
Any update or solution for this. I'm having the same issue. I've even tried minio setup when s3 didn't work thinking there might be some issue with the s3 endpoint url but no luck. Still can't make uploads work, the upload api gives 400 with the message "Something went wrong please try again later", that's it. I guess one good way is to log the actual error in the console or the logger so it would be easier to debug and know where it is failing than just ignoring the error with such a broad exception catch. I'd be happy to open a PR regarding the same
orbatschow commentedon Jul 17, 2023
Maybe this is helpful:
I had the same problem and debugging was pretty hard. It turned out, that my self hosted minio setup had TLS verification enabled. Those were custom signed TLS certificates and plane was not able to verify the certificate correctly. I completely disable the minio TLS setup and configured plane to use plain HTTP. After this I was able to upload assets.
shibco commentedon Aug 2, 2023
I have this issue too. I'm using OpenStack / Swift and I just cannot get anything to upload.
In the browser:
In Plane's logs:
My env:
I'm not even sure how to diagnose this, there's nothing helpful at all in the logs.
shibco commentedon Aug 3, 2023
A small update, issue not fully fixed however. In my Openstack case changing
AWS_S3_ENDPOINT_URL="https://s3.[redacted]/object/v1/AUTH_[redacted]"toAWS_S3_ENDPOINT_URL="https://s3.[redacted]"allows for authentication and successful POST requests (eg file uploads.) However, actual bucket location is still athttps://s3.[redacted]/object/v1/AUTH_[redacted]/plane-uploads/, which is not reflected in theAWS_S3_ENDPOINT_URL. This mismatch means the uploads can not be retrieved.ka6u7ack commentedon Oct 12, 2023
I solved it. My situation is more like django-storages issue.
An error occurred (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs.AWS_S3_ENDPOINT_URL="https://s3.amazonaws.com", notAWS_S3_ENDPOINT_URL="https://[bucket_name].s3.amazonaws.com"apiserver/plane/settings/production.pyMake sure
AWS_S3_BUCKET_AUTH = True. It is important.You need edit
AWS_S3_ADDRESSING_STYLE. Based on aws region, you can refer toMy aws region is
us-east-2. I replacedAWS_S3_ADDRESSING_STYLE = "auto"withAWS_S3_ADDRESSING_STYLE = "virtual".(optional)
AWS_S3_MAX_AGE_SECONDS = 7 * 24 * 60 * 60(optional) Set
AWS_S3_PUBLIC_URL, if your bucket has a CDN link. (Although the comment sayThis setting cannot be used with "AWS_S3_BUCKET_AUTH", actually it works.)pablohashescobar commentedon Dec 15, 2023
Hey @MyWay, can you check by upgrading to the latest version. This issue should be fixed now. Let us know if you are still facing this issue.
MyWay commentedon Dec 15, 2023
How should I configure it for an alternative s3 in the latest version? Because upload is working, I can see the file in the bucket, but then the url generated by plane is pointing to my plane instance, so maybe I'm missing some setting.
5 remaining items
MyWay commentedon Dec 18, 2023
But I'd like to use my s3 compatible provider.
pablohashescobar commentedon Dec 18, 2023
Oh okay currently Plane only supports S3 and Minio what storage are you using @MyWay ?
MyWay commentedon Dec 18, 2023
I see, that's the issue with my instance then. I have tried both wasabi and synology, currently on synology.
Apparently only missing thing is to generate the correct url using AWS_S3_ENDPOINT_URL.
pablohashescobar commentedon Dec 19, 2023
@MyWay, you may have to also update the
nginx.confto point to your file server.MyWay commentedon Dec 19, 2023
You mean I should rewrite urls to reflect my s3 instance, instead of expecting plane to do it?
pablohashescobar commentedon Dec 19, 2023
You may have to do some changes the current plane setup either connects with S3 or minio for fetching assets for other services you may have to change the configuration a bit to make it work.
MyWay commentedon Dec 19, 2023
I see. Since all of them implement the same API, do you plan to add support to any of the s3 services?
dbtek commentedon Dec 29, 2023
Please see #3278 for using custom s3 endpoints
MyWay commentedon Dec 31, 2023
It's still not working for custom s3 endpoints from what I see.
amalpaul54111 commentedon Jan 9, 2024
Couldn't upload files to AWS S3, I am using the script to run it on a linux server with docker.
I did update the environment variables with the working AWS credentials.
DATA STORE SETTINGS
USE_MINIO=0
AWS_REGION="eu-west-1"
AWS_ACCESS_KEY_ID="[reducted]"
AWS_SECRET_ACCESS_KEY="[reducted]"
AWS_S3_ENDPOINT_URL="https://s3.amazonaws.com"
AWS_S3_BUCKET_NAME="[reducted]"
FILE_SIZE_LIMIT=52428800
Is there some other change we have to make to enable it to upload to S3.
Getting the following error from plane-app-api-1
/api/workspaces/internal/file-assets/ HTTP/1.0" 400
2tsoftwareapp commentedon Feb 23, 2024
I facing same issue when setup default minio.
Bellow my config
But in UI, i see it call api
workspace/<name>/file-assetsand it return 500 server error (Something went wrong please try again later)Please help
srinivaspendem commentedon May 17, 2024
This issue will be resolved when you update to the latest version of Plane.
MyWay commentedon May 17, 2024
I'm already using latest stable, which version you are referring exactly?
raylenzed commentedon Jun 24, 2024
@MyWay
I'm using AWS s3 , started with 500 error as well, then when I recreated the bucket, I enabled ACLs and it's working fine now, so you can test it from that.
Translated from DeepL