-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Size check mismatch errors on certain mirror updates #376
Comments
I don't know the exact reason for that, but this could happen when pulling from the mirror which is syncing currently. In that case |
Okay, thanks for replying. This is a relatively new behavior so I thought I'd run it by you. I'll keep testing against those mirrors, if things change I'll post an update here. Maybe it's just Amazon changing the way/time they do their sync... |
I have a test case which reproduces this issue reliably for me. Can someone else see if they can duplicate this too?
Repeat the second command until it breaks (usually takes 2-3 times). Eventually you will get:
I think the issue may have something to do with picking parsing of this repo's Release file:
Note the fact that the two sizes (2324 and 973) are correct for two different Packages.gz files. Btw, I confirmed this wasn't a CDN issue by confirming that all six of the CloudFront IPs which service this repo all consistently return the correct files as requested. |
Looks like a but in aptly, it does postifx match there and it should have been choosing longest match, but it is matching on the first one, and it depends on hash map order, it would match either right one or wrong one. |
I've found a bug which leads to this behaviour, going to fix it for 1.1.0 |
I have seen same error (size mismatch) with aptly 1.1 Log root@bng-lnx-repo01:/repo# aptly mirror show ubuntu1604-main2 Information from release file: Label: Ubuntu aptly mirror update root@bng-lnx-repo01:/repo# aptly mirror update ubuntu1604-main2 |
you can see 127.0.01 because I have configure apt-mirror to download the repo locally and use it with aptly. there are many other pkgs have mismatch errors |
@nikunj12 this is different error from the one we had in this issue (it's about package, not about index). Would you mind finding matching entry in |
In my case apart from the packages index, other packages are showing mismatch. even I use the filter to ignore those its failing at same packages . |
following packages shows mismatch |
@nikunj12 so what happens is:
So what I'm asking you to do (and as it's your apt-mirror, I can't do that) is to cross-verify Packages index entries and errors above. Also what would you get downloading file with curl/wget? |
I'm getting the same problems on 1.2, seems everytime udebs are involved aptly does not download the complete file. Downloading direct via wget on the machine works flawlessly |
@gittygoo do you have a mirror which reproduces that? |
yes but its an internal mirror |
@gittygoo are you able to share part of |
where can i find these? here is an example of the returned output |
I just realized this might be because some of the traffic is being blocked by the ubuntu achive servers. Traffic blocked because of exceed per IP shaper session quota. Please contact the system administrator. and after some time it unblocks the traffic again. Strange is that i am only using 2 concurrent downloads |
I have not checked the source recently, but this sounds like aptly may not be properly confirming the http response code is 200 OK (or your intercepting proxy is not properly returning a 4xx code).
When I originally ran into this issue I found my upstream mirror was returning 500 server errors for ~1% of requests. Aptly was trying to parse the nginx error text as if it were the content (and correctly rejecting it). Perhaps worth considering some sort of retry (with exponential decaying delay) to enable aptly to recover from the occasional load balancer hiccup or spurious tcp reset.
|
aptly checks for response status code to be within 200-299, so I think this proxy is broken, and aptly automatically retries on network errors. |
In the past few days, two of the Amazon EC2 mirrors in my repo set are being stubborn when I try to update them. I get the following messages:
ERROR: unable to update: http://us-east-1.clouds.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages.bz2: size check mismatch 1045491 != 1045248
ERROR: unable to update: http://us-east-1.clouds.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages.bz2: size check mismatch 720276 != 712806
If I retry the updates for these two many times, eventually they will complete successfully. I'm not seeing any problems with the remote repos themselves when I try and update an Ubuntu instance directly from them, so I don't think the problem is with Amazon. However, I'm mirroring twenty-two other remote repos and Aptly has no trouble with any of them.
The text was updated successfully, but these errors were encountered: