huly-selfhost icon indicating copy to clipboard operation
huly-selfhost copied to clipboard

Can't upload files: minio returns "NoSuchBucket" and server dies with 500

Open daidonpah opened this issue 1 year ago • 2 comments

Fresh install, everything seems to work fine, but when I tried uploading files (e.g. into a ticket) I receive an error message:

image

When I execute docker logs front-1 I get:

{"amzId2":"someId","amzRequestid":"someId","bucketname":"w-name-domain-6710387a-58b307668a-a9835d","code":"NoSuchBucket","hostid":"someId","key":"someKey","level":"error","message":"The specified bucket does not exist","name":"S3Error","requestid":"someId","resource":"/w-name-domain-6710387a-58b307668a-a9835d/6aa69d05-5d16-4884-acb6-509dee4d5399","timestamp":"2024-10-16T22:42:26.272Z"}
{"level":"info","message":"::ffff:172.22.0.1 - POST /files HTTP/1.1 500 - - 9.220 ms\n","name":"requests","timestamp":"2024-10-16T22:42:26.272Z"}

I tried creating the bucket in the minio container:

mc mb w-name-domain-6710387a-58b307668a-a9835d

But this didn't help. I am assuming buckets should be created automatically? Am I missing something? 🙂

Logs on the minio container are empty, except for a warning with default credentials

EDIT: I got it fixed running mc mb data/w-name-domain-6710387a-58b307668a-a9835d

But still, I should not have to do this manually, no?

daidonpah avatar Oct 16 '24 22:10 daidonpah

@daidonpah thanks for reporting this. You are right, you are not supposed to create buckets by yourself. Normally, bucket is created when you create a workspace.

I suppose that logs might be in the account or workspace containers.

aonnikov avatar Oct 17 '24 04:10 aonnikov

Unfortunately there was nothing helpful:

# docker logs workspace-1
Logging also into console development true
{"level":"info","message":"####################################################################################################################","timestamp":"2024-10-16T22:36:50.576Z"}
{"level":"info","message":"########################SplitLogger workspace initialized: 2024-10-16T22:36:50.577Z###########################","timestamp":"2024-10-16T22:36:50.577Z"}
Starting workspace service in region: DEFAULT for operation: all for version: 0.6.313 with brandings: {}
# docker logs account-1
Logging also into console development true
{"level":"info","message":"####################################################################################################################","timestamp":"2024-10-16T22:36:49.820Z"}
{"level":"info","message":"########################SplitLogger account initialized: 2024-10-16T22:36:49.821Z###########################","timestamp":"2024-10-16T22:36:49.821Z"}
Starting account service with brandings:  {}
server started on port 3000

daidonpah avatar Oct 17 '24 13:10 daidonpah

I tried to replicate the issue, but I could not. I will close this issue, since it might have been some configuration error. 🙂

daidonpah avatar Oct 17 '24 18:10 daidonpah

Thanks! I tried to reproduce the issue but could not.

aonnikov avatar Oct 18 '24 04:10 aonnikov