OpenVZ Forum


Home » General » Support » *SOLVED* apt-proxy/approx does not work under VE
*SOLVED* apt-proxy/approx does not work under VE [message #16131] Thu, 23 August 2007 19:08 Go to next message
ggonzalez is currently offline  ggonzalez
Messages: 18
Registered: July 2007
Junior Member
I have created a VE, and configured it with a veth interface (eth0).

with /etc/apt/sources.list:
deb http://ftp.debian.org/debian etch main


I can do 'aptitude update' on this VE. Everything works fine here. No problem to go thru out to the net.
With this configuration, I do:

aptitude install approx

Then, I configure 'approx' appropriately. I have 'approx' working on another 'real' machine.

I changed my /etc/apt/sources.list to us approx:
deb http://ftp.debian.org/debian etch main
deb http://debianmirror:8888/debian etch main

and try:
aptitude update

and now I get:

infravs05:~# aptitude update
Ign http://debianmirror etch Release.gpg
Ign http://debianmirror etch Release
Ign http://debianmirror etch/main Packages
Err http://debianmirror etch/main Packages
404 Not Found
Des:1 http://ftp.debian.org etch Release.gpg [378B]
Obj http://ftp.debian.org etch Release
Ign http://ftp.debian.org etch/main Packages/DiffIndex
Obj http://ftp.debian.org etch/main Packages
Descargados 1B en 1s (1B/s).
Leyendo lista de paquetes... Hecho
W: No se puede leer la lista de paquetes fuente http://debianmirror etch/main Packages (/var/lib/apt/lists/debianmirror:8888_debian_dists_etch_main _binary-i386_Packages) - stat (2 file or directory does not exist)
W: Maybe you want to execute 'apt-get update' to fix these problems
-----------------------------

debianmirror is an alias to infravs05. I have even tried changing this entry to infravs05. Same error.

infravs05:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:DF:D9:82
inet addr:10.0.0.245 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:868 errors:0 dropped:0 overruns:0 frame:0
TX packets:603 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:67184 (65.6 KiB) TX bytes:84375 (82.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

infravs05:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0

infravs05:~# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::ffff:10.0.0.245:22 ::ffff:10.0.0.231:47407 ESTABLISHED
udp 0 0 10.0.0.245:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 434116 /dev/log
unix 2 [ ] DGRAM 434213
unix 2 [ ] DGRAM 434142
unix 2 [ ] DGRAM 434130

/var/log/daemon.log shows:
Aug 23 14:31:56 infravs05 approx: Connection from 10.0.0.245:42322
Aug 23 14:31:56 infravs05 approx: Request /debian/dists/etch/Release.gpg
Aug 23 14:31:56 infravs05 approx: Host: debianmirror:8888
Aug 23 14:31:56 infravs05 approx: Connection: keep-alive
Aug 23 14:31:56 infravs05 approx: User-Agent: Debian APT-HTTP/1.3
Aug 23 14:31:56 infravs05 approx: http://ftp.debian.org/debian/dists/etch/Release.gpg
Aug 23 14:31:56 infravs05 approx: Command: /usr/bin/curl --fail --silent --location --include "http://ftp.debian.org/debian/dists/etch/Release.gpg"
Aug 23 14:31:56 infravs05 approx: Download failed
Aug 23 14:31:56 infravs05 approx: Connection from 10.0.0.245:42322
Aug 23 14:31:56 infravs05 approx: Request /debian/dists/etch/Release
Aug 23 14:31:56 infravs05 approx: Host: debianmirror:8888
Aug 23 14:31:56 infravs05 approx: Connection: keep-alive
Aug 23 14:31:56 infravs05 approx: User-Agent: Debian APT-HTTP/1.3
Aug 23 14:31:56 infravs05 approx: Command: /usr/bin/curl --fail --silent --location --remote-time --output debian/dists/etch/Release.gpg.tmp "http://ftp.debian.org/debian/dists/etch/Release.gpg"
Aug 23 14:31:56 infravs05 approx: Cannot download http://ftp.debian.org/debian/dists/etch/Release.gpg
Aug 23 14:31:56 infravs05 approx: http://ftp.debian.org/debian/dists/etch/Release
Aug 23 14:31:56 infravs05 approx: Command: /usr/bin/curl --fail --silent --location --include "http://ftp.debian.org/debian/dists/etch/Release"
Aug 23 14:31:56 infravs05 approx: Download failed
---------------------------------------------

Given that 'aptitude' works fine when told to go directly to the internet mirrors, but does not work when told to go thru the 'approx' proxy, I tend to believe that this is a problem that is somehow related to the way I have my VE configured with regards to the veth, or an incompatibility of approx with VZ.

I also tried this same scenario with apt-proxy, instead of approx. Same results.

Thanks for any help.

Gustavo.

[Updated on: Fri, 07 September 2007 13:26]

Report message to a moderator

Re: apt-proxy/approx does not work under VE [message #16157 is a reply to message #16131] Fri, 24 August 2007 20:46 Go to previous messageGo to next message
ggonzalez is currently offline  ggonzalez
Messages: 18
Registered: July 2007
Junior Member
I forgot to mention my environment:

Kernel: 2.6.18-ovz028stab039.1-enterprise #1 SMP

and that I have drbd installed:

infrahn01:~# cat /proc/drbd
version: 8.0.4 (api:86/proto:86)
SVN Revision: 2947 build by phil@mescal, 2007-06-27 14:17:06
0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
ns:2192438 nr:0 dw:1139766 dr:1158697 al:351 bm:274 lo:0 pe:0 ua:0 ap:0
resync: used:0/31 hits:65655 misses:137 starving:0 dirty:0 changed:137
act_log: used:0/257 hits:1139415 misses:394 starving:0 dirty:43 changed:351

and that /vz is mounted on the drbd disk that gets replicated to another hn (standby node).

So, all VEs are sitting on this replicated filesystem.

Any help is appreciated.

Gustavo.
Re: apt-proxy/approx does not work under VE [message #16298 is a reply to message #16131] Thu, 30 August 2007 18:22 Go to previous messageGo to next message
ggonzalez is currently offline  ggonzalez
Messages: 18
Registered: July 2007
Junior Member
Was my post too complicated?

Was I clear in explaining the problem?

Does anybody have a clue on what could be wrong in the VE configuration that prevents tools like apt-proxy and approx to work?

Thanks and regards,
Gustavo.
Re: apt-proxy/approx does not work under VE [message #16414 is a reply to message #16131] Wed, 05 September 2007 13:08 Go to previous messageGo to next message
ggonzalez is currently offline  ggonzalez
Messages: 18
Registered: July 2007
Junior Member
Is somebody in this forum using apt-proxy or approx in a VE?
Re: apt-proxy/approx does not work under VE [message #16417 is a reply to message #16131] Wed, 05 September 2007 18:10 Go to previous message
ggonzalez is currently offline  ggonzalez
Messages: 18
Registered: July 2007
Junior Member
This issue was resolved like this:

ve: chmod 755 /

For some reason, the root dir of the VE was with 700 permission mode.

Regards,
Gustavo


Previous Topic: *SOLVED* apache2: access denied
Next Topic: Update limits (DISKSPACE)
Goto Forum:
  


Current Time: Sat Aug 23 12:16:18 GMT 2025

Total time taken to generate the page: 0.06528 seconds