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

Fails to start on windows with error failed to create bookmark using path=C:\\Users\\...\\AppData\\Roaming\\bookmark-application.xml: invalid argument" #4326

Closed
slim-bean opened this issue Jun 30, 2023 · 2 comments
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

@slim-bean
Copy link
Contributor

What's wrong?

Windows service wouldn't start with error:

 failed to create bookmark using path=C:\\Users\\...\\AppData\\Roaming\\bookmark-application.xml: invalid argument"

I found this file and tried to open it, it tried to open as a binary file with a bunch of NULL characters, I deleted this file and bookmark-system.xml and the agent started correctly (and appears to have recreated these files)

Steps to reproduce

Don't know what caused it or how it happened, just wanted to share this if someone googles it they will hopefully find the fix that worked for me.

System information

No response

Software version

No response

Configuration

No response

Logs

No response

@slim-bean slim-bean added the bug Something isn't working label Jun 30, 2023
@rfratto
Copy link
Member

rfratto commented Jun 30, 2023

Is it possible that your agent crashed recently, leading to data corruption when writing the file?

We could try to make the writes atomic to replace the bookmarks file, that might help with this.

@mattdurham
Copy link
Collaborator

Closing as duplicate of grafana/alloy#516

@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
No open projects
Development

No branches or pull requests

3 participants