-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Loki windows amd64 release binaries #917
Comments
A while back there were issues building on Windows, thought I just tried it an it seemed to work. If you check out the source you should be able to run:
The build was successful for me but I don't have a windows machine available to test at the moment. If it works we can update the release process to auto generate windows binaries for Loki as well |
I have compiled and used version 0.2 on Windows and did not encounter any problems. Will try 0.3 this evening. |
Thanks for the help. I was able to make a build. Created a dockerfile. Use the windows golang image, pull the loki source and build. Copy the output to a windows nanoserver.
Build with Can get the help page with |
Loki process fails with invalid memory address or dereferenced pointer. when initializing the processes storage.
Command to run process: From a PowerShell console.
|
I have pulled the latest sources and build loki on Windows 10. I get very similar errors if I start loki.exe without passing a config file. If I execute it with option
BTW: I had to use two hyphens for the parameter. Maybe you can try to use a config file, too. |
BTW: Powershell attempts to interpret the arguments. Any argument with characters of {}();,|&[]: whitespace and new-line-character will give issues. In the example used the --% operator to disable PowerShell parsing to end of line.
I’ll give the config file route a try when I get some more cycles to try again. Docker is not a fan of config files because the disk image are supposed to be immutable – settings lost on ever container start. Not good practice to make your dev/QA/Production images different.
I suspect one of command line argument has unvalidated null check around a variable. I’d start with the -config-yaml argument. It deals with Loki storage configuration and is unusual to pass yaml string as an argument.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Martin Herbst <notifications@github.com>
Sent: Tuesday, August 20, 2019 12:29:43 PM
To: grafana/loki <loki@noreply.github.com>
Cc: Robert Livermore <roblivermore@hotmail.com>; Author <author@noreply.github.com>
Subject: Re: [grafana/loki] Loki windows amd64 release binaries (#917)
I have pulled the latest sources and build loki on Windows 10.
I get very similar errors if I start loki.exe without passing a config file. If I execute it with option --config.file and the default config file it works.
I don't use docker and execute it directly from a PowerShell Console on Windows 10:
This is the command line that works in my environment:
.\loki.exe --config.file cmd\loki\loki-local-config.yaml
BTW: I had to use two hyphens for the parameter. Maybe you can try to use a config file, too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#917?email_source=notifications&email_token=ALBDL44KD3SM2UP7FA3XS2TQFQLXPA5CNFSM4INEOY5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4W4DGI#issuecomment-523092377>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALBDL45YWD5UET7ALGE67XTQFQLXPANCNFSM4INEOY5A>.
|
Can't you make use of docker volumes? And just bind the configuration file from outside into the container? Regarding Loki on windows ... we can certainly distribute So, in near future, yes for binaries, no for containers. Would that work for you? |
Would like to run Loki on a Windows Server / window amd64. Cannot find compatible binaries windows release. Can you provide directions on how to make windows build of Loki or provide the zip archive of the binaries on the release tab.
Thanks
The text was updated successfully, but these errors were encountered: