-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
boltdb-shipper + retention_deletes: "object not found in storage" when the query goes over the retention-border #3058
Comments
One additional Information. On my Chunks index folder (C:\ProgramData\POC\loki\chunks\index), I have the following structure :
I have noticed that the index_18591 folder is the one that seems "corrupted". As soon as I delete it, I got no longer any object not found in storage errors. To my mind when the retention process is removing old logs, it is somehow leaving some reference in the index that no longer exists, therefore throwing the exception... I am on a kind of dead end as I am not sure if would be possible to overcome this issue. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
The issue still happens, so please do not close it. |
Just as an update... Just tested with Loki 2.1 and the issue still happens... |
We're observing what seems to be the same issue. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
We use S3 as storage backend and have configured different S3 bucket lifecycle configuration rules per sub-folder for different tenants, i.e. for some tenants we delete the chunks after 7 days, for some only after 31 days. As soon as a tenant makes a request that exceeds its lifecycle configuration time, it also gets an |
Hey, you should set your
Please see https://grafana.com/docs/loki/latest/configuration/#chunk_store_config for more details. |
@owen-d Unfortunately, it is not quite that simple. I tried to describe that we have set different retention times for different tenants in S3. Therefore, the approach you suggested unfortunately does not work. In my opinion, there should simply be no error message, but Grafana/Loki should display the logs that are retrievable. |
Any news here? I get this error after a cluster reinstall. I expect some missing data, but I still want whats available.. Any way to get what's there and ignore this error? |
I restarted my Loki pod on a new server and lost access to all historical data stored on S3. Seems strange. |
Describe the bug
I am using Loki 2.0 and have a Loki Configuration that uses Boltdb-shipper, fileSystem and retention for a Week(168h). Here is the vomplete configuration:
I am facing a situation that after one week passed, the retention period is due and the table manager starts removing old data as expected. But it seems that for some reason the process of removing old data is leaving Loki on an inconsistent state and as soon as I perform some searches one day after the "retention-border", I am getting an object not found in storage error. Scenarios:
Would that be connected with this issue here?
#2816
I am wondering if there`s a place where pre-release versions of loki are somewhere available so I could try the a build which contain this PR merged: #2855
The text was updated successfully, but these errors were encountered: