-
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 cannot query logs from before the upgrade from 2.3 -> 2.7 #8738
Comments
is the configuration file exactly the same? If so, maybe it is a subtle change to some default that you're currently relying on. Out of curiosity, if you revert to 2.7.3 can you query old logs again? And if you can revert to 2.7.3, do you mind grabbing a copy of |
there were 2 changes to the config that I did when upgrading.
Other than these two everything else is same. Also, I went from 2.3 - 2.7 and on reverting to 2.3, I can query the older logs before the upgrade but not the ones after the upgrade. Do you still need the config? I did the revert sometime back and would prefer not to disturb the cluster to avoid missing any logs but can do so if necessary. |
Sorry, nothing grasped my attention enough to be considered the culprit. My hypothesis was more inclined towards some change to the schema, but looks like you didn't change anything there 😢 |
2.3 -> 2.7 schema maybe need to update?
https://grafana.com/docs/loki/latest/operations/storage/schema/ |
Yes, but it's not quite enough. The full answer can be found in issues 7827 and 1111. I just figured it out after a good day of frustration and zero documentation, where I kept coming across this thread. I'm upgrading from just 2.6.1 to 2.7.5 using the SingleBinary, so that upgrade-path should be easy, right? No. The problem is caused by the migration to the new GrafanaLabs controlled Helmchart:
Hope this helps someone. Rant: It's honestly the same thing every time. These migration paths seem barely tested and work as the merest definition of minimum viable product. You have to guess at half the values you should be setting to port your setup, and then some values are inexplicably still changed without any supported way of changing them back. If this is what we can expect now that the Loki team has taken responsibility for the helmchart, then I really wish they hadn't. |
Describe the bug
We recently upgraded loki from version 2.3 -> 2.7. The upgrade was successful and we are able to query logs created after the upgrade but anything before that is not returned and there's no error in the logs/dashboard either making it harder for us to debug what might be the issue.
Expected behavior
Able to query logs from time before the upgrade
Environment:
Loki config
Tasks
The text was updated successfully, but these errors were encountered: