-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Inconsistency between REST API description and CLI description of the same mirror, db files are missing. #1337
Comments
@cheeeee If you would be willing to attach your database backups here while you have them, they could potentially be of use in troubleshooting. Though without a log of commands run against the aptly it would be difficult to pinpoint exactly what caused the corruption, if anything. You mentioned this is running in a container, was the container potentially killed by a Tbh we are just running high-level goleveldb API commands here and aren't well equipped to troubleshoot the database corruption. Maybe upstream leveldb repos could offer more support? |
how did you mount the data volume ? what is the filesystem ? |
if this is an option, you could try the CI builds. A lot of race conditions and database issues were fixed... does the inconsistency persist over aptly restarts ? |
aptly 1.6.0 has been released #1414 which includes many bug fixes compared to 1.5.0. Could you give it a try ? |
I will look into this db transaction though... |
We believe the issue is fixed in latest aptly, closing. Please reopen if the issue persists ! |
Detailed Description
Found inconsistency between cli output and REST API output:
Also, the mirror update does not work for this mirror:
Note the last line: error locating part of the DB.
I tried to cleanup and recover, but the error is the same, part of DB is missing.
Aptly running in the docker container, most operations are done using cli, and some operations are done with REST API. I also have db backups if this will help.
I do not have particular steps to reproduce, since I do not know exactly when this inconsistency started.
Please let me know how to approach this problem. Mirror re-creation is an option, but I would like to avoid it if possible.
To the best of my understanding, the issue is caused by opening db during the mirror update on this line.
Context
I want consistent data about the same object returned via REST API and CLI.
Possible Implementation
Your Environment
Aptly 1.5.0
Docker container with mounted volume for data.
The text was updated successfully, but these errors were encountered: