1 |
I have a setup where I have one "development" host and one "production" host. |
2 |
On the dev-host I have FEATURES="buildpkg" and on the prod-host I have |
3 |
FEATURES="getbinpkg" and PORTAGE_BINHOST="http://192.168.4.4/portage-i686/" |
4 |
(this is my dev-host) set. |
5 |
|
6 |
A few days ago, after the two hosts has been down for an extended time (since |
7 |
Nov last year) I can no longer install/update an packages on the prod-host. |
8 |
|
9 |
Here is an example of how it looks like : |
10 |
-----------------------------------8<--------------------------------- |
11 |
# emerge --update --deep --verbose --reinstall changed-use --with-bdeps y |
12 |
world |
13 |
|
14 |
These are the packages that would be merged, in order: |
15 |
|
16 |
Calculating dependencies |
17 |
Fetching bininfo from http://192.168.4.4/portage-i686/ |
18 |
Loaded metadata pickle. |
19 |
cache miss: '0' --- cache hit: '470' |
20 |
... done! |
21 |
[binary U ] sys-apps/portage-2.1.7.17 [2.1.7.16] USE="-build -doc -epydoc |
22 |
(-python3) (-selinux)" LINGUAS="-pl" |
23 |
|
24 |
Total: 1 package (1 upgrade, 1 binary), Size of downloads: 0 kB |
25 |
|
26 |
|
27 |
>>> Emerging binary (1 of 1) sys-apps/portage-2.1.7.17 |
28 |
--2010-03-05 17:54:15-- http://192.168.4.4/portage-i686/portage-2.1.7.17.tbz2 |
29 |
Connecting to 192.168.4.4:80... connected. |
30 |
HTTP request sent, awaiting response... 200 OK |
31 |
Length: 568929 (556K) [text/plain] |
32 |
Saving to: `/usr/portage/packages/sys-apps/portage-2.1.7.17.tbz2' |
33 |
|
34 |
0K .......... .......... .......... .......... .......... 8% 1.75M 0s |
35 |
50K .......... .......... .......... .......... .......... 17% 4.30M 0s |
36 |
100K .......... .......... .......... .......... .......... 26% 20.8M 0s |
37 |
150K .......... .......... .......... .......... .......... 35% 6.12M 0s |
38 |
200K .......... .......... .......... .......... .......... 44% 2.16M 0s |
39 |
250K .......... .......... .......... .......... .......... 53% 1.84M 0s |
40 |
300K .......... .......... .......... .......... .......... 62% 2.60M 0s |
41 |
350K .......... .......... .......... .......... .......... 71% 84.4M 0s |
42 |
400K .......... .......... .......... .......... .......... 80% 72.0M 0s |
43 |
450K .......... .......... .......... .......... .......... 89% 12.5M 0s |
44 |
500K .......... .......... .......... .......... .......... 98% 135M 0s |
45 |
550K ..... 100% 2.73M=0.1s |
46 |
|
47 |
2010-03-05 17:54:15 (4.42 MB/s) - `/usr/portage/packages/sys- |
48 |
apps/portage-2.1.7.17.tbz2' saved [568929/568929] |
49 |
|
50 |
|
51 |
!!! Digest verification failed: |
52 |
!!! /usr/portage/packages/sys-apps/portage-2.1.7.17.tbz2 |
53 |
!!! Reason: Filesize does not match recorded size |
54 |
!!! Got: 568929 |
55 |
!!! Expected: 2224676 |
56 |
File renamed to '/usr/portage/packages/sys- |
57 |
apps/portage-2.1.7.17.tbz2._checksum_failure_.IJVYZY' |
58 |
|
59 |
>>> Failed to emerge sys-apps/portage-2.1.7.17, Log file: |
60 |
|
61 |
>>> '/var/log/portage/sys-apps:portage-2.1.7.17:20100305-165414.log' |
62 |
-----------------------------------8<--------------------------------- |
63 |
|
64 |
The size 568929 matches the size on dev and prod: |
65 |
dev: |
66 |
# ll /usr/portage/packages/sys-apps/portage-2.1.7.17.tbz2 |
67 |
/usr/portage/packages/All/portage-2.1.7.17.tbz2 |
68 |
-rw-r--r-- 1 root root 568929 Mar 5 17:53 |
69 |
/usr/portage/packages/All/portage-2.1.7.17.tbz2 |
70 |
lrwxrwxrwx 1 root root 28 Mar 5 17:53 /usr/portage/packages/sys- |
71 |
apps/portage-2.1.7.17.tbz2 -> ../All/portage-2.1.7.17.tbz2 |
72 |
|
73 |
prod: |
74 |
# ll /usr/portage/packages/sys- |
75 |
apps/portage-2.1.7.17.tbz2._checksum_failure_.IJVYZY |
76 |
-rw-r--r-- 1 root root 568929 Mar 5 17:53 /usr/portage/packages/sys- |
77 |
apps/portage-2.1.7.17.tbz2._checksum_failure_.IJVYZY |
78 |
|
79 |
What has happened and how to solve it? |
80 |
|
81 |
-- |
82 |
Dan Johansson, <http://www.dmj.nu> |
83 |
*************************************************** |
84 |
This message is printed on 100% recycled electrons! |
85 |
*************************************************** |