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

[Q] How to find the version of an ancient installed graphite server #2831

Open
preetmyob opened this issue Mar 6, 2024 · 2 comments
Open
Labels

Comments

@preetmyob
Copy link

preetmyob commented Mar 6, 2024

I have inherited a really old graphite server that was installed about 8-10 years ago. I'm trying to work out which version of graphite this is. We can access the main page, but we have no accounts or logins to the dashboard.

What would be the best way to discover this by looking at the installed folders, please?

$ curl -sv http://localhost/metrics/find?query=carbon.*
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /metrics/find?query=carbon.* HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Wed, 06 Mar 2024 11:25:52 GMT
* Server Apache/2.4.7 (Ubuntu) is not blacklisted
< Server: Apache/2.4.7 (Ubuntu)
< Content-Length: 284
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /metrics/find was not found on this server.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at localhost Port 80</address>
</body></html>
* Connection #0 to host localhost left intact
@deniszh
Copy link
Member

deniszh commented Mar 6, 2024

You can also try to call curl -sv http://localhost/version

Or look for WEBAPP_VERSION in webapp/graphite/settings.py

If it's < 1.2.0 - it's exact version. If 1.2.0-dev - it's installed from master and then it's hard to say.

@preetmyob
Copy link
Author

preetmyob commented Mar 6, 2024

curl -sv http://localhost/version

This gives 404

Or look for WEBAPP_VERSION in webapp/graphite/settings.py
This is more promising, I grepped for this

grep --exclude-dir=storage -rnwi '/opt/graphite/' -e "WEBAPP_VERSION"
and got
/opt/graphite/webapp/graphite/settings.py:29:WEBAPP_VERSION = '0.9.12'

So it looks like this is 0.9.12. Would you agree?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants