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

Windows install fails in 0.39.0 if $hklm/Software/Grafana/Grafana Agent Flow/Environment entry exists #6179

Closed
gregprior opened this issue Jan 17, 2024 · 2 comments · Fixed by #6185
Assignees
Labels
bug Something isn't working frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Comments

@gregprior
Copy link

gregprior commented Jan 17, 2024

What's wrong?

The install for version 0.39.0 fails if the "$hklm/Software/Grafana/Grafana Agent Flow/Environment" entry already exists.
This happens in both the silent and interactive installation.
In the interactive installation it does show an entry in the details saying that that registry entry already exists, and has a value in it, and asking if it is ok to replace it. It eventually times out.
If the entry exists, but it is the empty default, it doesn't show what it is waiting on, but sits there forever.

Steps to reproduce

Run the 0.39.0 Windows installation a second time to see the error.

Change the program Environment entry value and run the installation again interactively and expand the details to see the question.

Removing the Environment entry lets me run the install a second time successfully.

System information

Windows Server 2012R2, Server 2016, Server 2019, Windows 10

Software version

Grafana Agent Flow v0.39.0

Configuration

This happens with the default configuration

Logs

grafana-agent-flow-installer.exe has stopped working.  Problem details:
Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	grafana-agent-flow-installer.exe
  Application Version:	0.0.0.0
  Application Timestamp:	5f4aad3c
  Fault Module Name:	nsExec.dll
  Fault Module Version:	0.0.0.0
  Fault Module Timestamp:	5f4aad3c
  Exception Code:	c0000005
  Exception Offset:	00001c5a
  OS Version:	6.3.9600.2.0.0.400.8
  Locale ID:	1033
  Additional Information 1:	5861
  Additional Information 2:	5861822e1919d7c014bbb064c64908b2
  Additional Information 3:	9ce6
  Additional Information 4:	9ce6c0ff57baa798c7afdece9d025889
@gregprior gregprior added the bug Something isn't working label Jan 17, 2024
@mattdurham mattdurham self-assigned this Jan 17, 2024
@gregprior
Copy link
Author

I've also run into an error when the install fails because it is trying to install over version 0.38.1. I don't know if this is related to the other problem or a new issue. I haven't had an issue updating/installing over older versions before, and I've been deploying most new releases as they've come out.

SERVICE_NAME: Grafana Agent Flow
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
Output folder: C:\Program Files\Grafana Agent Flow
Can't write: C:\Program Files\Grafana Agent Flow\grafana-agent-flow-windows-amd64.exe

@mattdurham
Copy link
Collaborator

Able to recreate and will look into this tomorrow.

@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants