Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store Gateway query minio for index file with illegal characters (backslash) #7110

Closed
henrikschristensen opened this issue Feb 1, 2024 · 4 comments · Fixed by #7114
Closed

Comments

@henrikschristensen
Copy link

Thanos, Prometheus and Golang version used:
thanos version 0.33.0, prometheus version 2.48.1

Object Storage Provider:
s3 (minio)

What happened:
When store gateway qyeries minio for chunk index file the file path includes backslash witch is illegal character. Log lines:
ts=2024-02-01T09:41:12.4362379Z caller=bucket.go:745 level=warn msg="loading block failed" elapsed=1.9361ms id=01HNHQFG94B87WRW5RBT3916VF err="create index header reader: write index header: new index reader: get object attributes of 01HNHQFG94B87WRW5RBT3916VF\index: Object name contains unsupported characters."

What you expected to happen:
No errors

How to reproduce it (as minimally and precisely as possible):
running both thanos and minio on windows servers

Full logs to relevant components:

Anything else we need to know:

@GiedriusS
Copy link
Member

Thanks for the report! It seems like the fix should be as simple as avoiding filepath.Join and using /.

@henrikschristensen
Copy link
Author

Maybe just using path.Join? It should be seperating with a forwardslash on all operating systems.

@douglascamata
Copy link
Contributor

What's the Minio version here? Since when is this a problem?

@henrikschristensen
Copy link
Author

this is a completely new setup, so I am on the latest release of minio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants