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

Index upgrade fails on Windows Host #3956

Closed
gebolze opened this Issue Mar 14, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@gebolze
Copy link

gebolze commented Mar 14, 2018

We've recently tried to update prometheus from version 2.1 to 2.2 on a windows host. We expected that the service will upgrade the index and then start serving http request. But instead we've got the following error messages in the logs.

.\prom_2.2.0\prometheus.exe --config.file=.\conf\prometheus.yml --storage.tsdb.path=.\data --web.listen-address=0.0.0.0:9999
level=info ts=2018-03-12T13:03:59.4144803Z caller=main.go:220 msg="Starting Prometheus" version="(version=2.2.0, branch=HEAD, revision=f63e7db4cbdb616337ca877b306b9b96f7f4e381)"
level=info ts=2018-03-12T13:03:59.4144803Z caller=main.go:221 build_context="(go=go1.10, user=root@52af9f66ce71, date=20180308-16:53:11)"
level=info ts=2018-03-12T13:03:59.4169797Z caller=main.go:222 host_details=(windows)
level=info ts=2018-03-12T13:03:59.4229817Z caller=main.go:223 fd_limits=N/A
level=info ts=2018-03-12T13:03:59.4279803Z caller=main.go:504 msg="Starting TSDB ..."
level=info ts=2018-03-12T13:03:59.4279803Z caller=web.go:382 component=web msg="Start listening for connections" address=0.0.0.0:9999
level=info ts=2018-03-12T13:03:59.432481Z caller=repair.go:41 component=tsdb msg="fixing broken block" ulid=01C87BB6H4TNHH6B3VR36G1RNX
level=info ts=2018-03-12T13:03:59.5484808Z caller=main.go:398 msg="Stopping scrape discovery manager..."
level=info ts=2018-03-12T13:03:59.5484808Z caller=main.go:411 msg="Stopping notify discovery manager..."
level=info ts=2018-03-12T13:03:59.5509793Z caller=main.go:432 msg="Stopping scrape manager..."
level=info ts=2018-03-12T13:03:59.5484808Z caller=main.go:394 msg="Scrape discovery manager stopped"
level=info ts=2018-03-12T13:03:59.5509793Z caller=main.go:407 msg="Notify discovery manager stopped"
level=info ts=2018-03-12T13:03:59.5564789Z caller=main.go:426 msg="Scrape manager stopped"
level=info ts=2018-03-12T13:03:59.5569795Z caller=manager.go:460 component="rule manager" msg="Stopping rule manager..."
level=info ts=2018-03-12T13:03:59.571978Z caller=manager.go:466 component="rule manager" msg="Rule manager stopped"
level=info ts=2018-03-12T13:03:59.5749788Z caller=notifier.go:512 component=notifier msg="Stopping notification manager..."
level=info ts=2018-03-12T13:03:59.586479Z caller=main.go:573 msg="Notifier manager stopped"
level=error ts=2018-03-12T13:03:59.5884799Z caller=main.go:582 err="Opening storage failed remove data\\01C87BB6H4TNHH6B3VR36G1RNX\\index: The process cannot access the file because it is being used by another process."
level=info ts=2018-03-12T13:03:59.59648Z caller=main.go:584 msg="See you next time!"

We've tried the same update on a comparable linux host and the index upgrade completed without any problems.

gouthamve added a commit to gouthamve/tsdb that referenced this issue Mar 14, 2018

Close file for windows platform
Windows needs files that are being deleted to be closed.

Fixes: prometheus/prometheus#3956

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.