Open ClarkeAC opened 2 months ago
It sounds like your minio instance is configured incorrectly and doesn't support redirects. Check this schema to understand better how LS works with presigned urls from storages:
Can you see this image in label studio quickview?
Hi, @makseq, thanks for your information.
I can see it in the quickview.
show task source (minio, base64 part is too long so I removed them here):
{
"id": 63506,
"data": {
"image": "data:application/octet-stream;base64,<encoded image data>"},
"annotations": [
{
"id": 37179,
"result": [],
"created_username": " admin@admin.com, 1",
"created_ago": "2 days, 1 hour",
"completed_by": {
"id": 1,
"first_name": "",
"last_name": "",
"avatar": null,
"email": "admin@admin.com",
"initials": "ad"
},
"was_cancelled": false,
"ground_truth": false,
"created_at": "2024-09-23T06:49:18.736170Z",
"updated_at": "2024-09-23T06:49:18.736205Z",
"draft_created_at": "2024-09-23T06:30:45.061583Z",
"lead_time": 127.01299999999999,
"import_id": null,
"last_action": null,
"task": 63506,
"project": 1,
"updated_by": 1,
"parent_prediction": null,
"parent_annotation": null,
"last_created_by": null
}
],
"predictions": []
}
show task source (directly upload):
{
"id": 63510,
"data": {
"image": "/data/upload/1/98c429df-IMG_20231203_153031.jpg"
},
"annotations": [
{
"id": 37180,
"result": [],
"created_username": " admin@admin.com, 1",
"created_ago": "2 days, 1 hour",
"completed_by": {
"id": 1,
"first_name": "",
"last_name": "",
"avatar": null,
"email": "admin@admin.com",
"initials": "ad"
},
"was_cancelled": false,
"ground_truth": false,
"created_at": "2024-09-23T07:17:33.596554Z",
"updated_at": "2024-09-23T07:17:33.596596Z",
"draft_created_at": "2024-09-23T06:43:36.256970Z",
"lead_time": 677.96,
"import_id": null,
"last_action": null,
"task": 63510,
"project": 1,
"updated_by": 1,
"parent_prediction": null,
"parent_annotation": null,
"last_created_by": null
}
],
"predictions": []
}
I also tried to use minio access key with full access policy. But get the same 500 error.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"admin:*"
]
},
{
"Effect": "Allow",
"Action": [
"kms:*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::*"
]
}
]
}
Version: 2.0.1dev0 OS: Linux 22.04 + docker compose
Getting the following error when using sam and sam2. Images in minio cause this error, directly uploaded images do not get this error.
Test with post man:
GET:
http://192.168.1.255:8080/tasks/63506/presign/?fileuri=s3://dataset/image/steam/00001.jpg
Headers:
Authorization:Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
P.S.
Sam2 doesn't get 500 error straight away, it gets this first.
After edit some code to passing the task id in, the 500 error occurs.