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

In Windows Promtail does not respect hosts file #11292

Open
teyyubismayil opened this issue Nov 22, 2023 · 3 comments
Open

In Windows Promtail does not respect hosts file #11292

teyyubismayil opened this issue Nov 22, 2023 · 3 comments
Labels
area/windows component/promtail type/bug Somehing is not working as expected

Comments

@teyyubismayil
Copy link

Describe the bug
In Windows Promtail does not respect hosts file because of the known issue with netgo flag. Suggested fix is building windows binaries without netgo flag

To Reproduce
Steps to reproduce the behavior:

  1. Add some record for Loki server in hosts file
  2. Start Promtail with specified host for Loki

Expected behavior
It is expected that Promtail will be able to connect to Loki, but host is not resolved

Environment:

  • OS: Windows
@JStickler JStickler added component/promtail area/windows type/bug Somehing is not working as expected labels Nov 27, 2023
@cstyan
Copy link
Contributor

cstyan commented Dec 22, 2023

It looks like the underlying problem has already been fixed, so newer go versions should solve this for us.

@sjansen1
Copy link

Any news on this issue? latest promtail still have this issue.

@cstyan
Copy link
Contributor

cstyan commented Apr 16, 2024

it looks like the underlying problem was only fixed in go 1.22 and we're still using a patch release of go 1.21 to build promtail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/windows component/promtail type/bug Somehing is not working as expected
Projects
None yet
Development

No branches or pull requests

4 participants