OpenVZ Forum


Home » General » Support » vzpkgcache
vzpkgcache [message #501] Mon, 12 December 2005 16:04 Go to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Is there anything I can do to get CentOS to update? Looking at it, I don't even see that directory available in their tree.

[root@OpenVZ ~]# vzpkgcache
Updating cache for centos-4-i386-minimal OS template
Setting up repositories
centos4-vz-addons         100% |=========================|  951 B    00:00
centos4-base              100% |=========================| 1.1 kB    00:00
centos4-updates-released  100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 120 kB    00:52
http://beta.centos.org/centos/4/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
Error: failure: repodata/primary.xml.gz from centos4-base: [Errno 256] No more mirrors to try.
ERROR: Command yum check-update failed with 1 exit code
Updating cache for centos-4-i386-default OS template
Setting up repositories
centos4-vz-addons         100% |=========================|  951 B    00:00
centos4-base              100% |=========================| 1.1 kB    00:00
centos4-updates-released  100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 408 kB    02:50
http://beta.centos.org/centos/4/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
Error: failure: repodata/primary.xml.gz from centos4-base: [Errno 256] No more mirrors to try.
ERROR: Command yum check-update failed with 1 exit code
Updating cache for fedora-core-4-i386-minimal OS template
Setting up repositories
fc4-updates-released      100% |=========================|  951 B    00:00
fc4-vz-addons             100% |=========================|  951 B    00:00
fc4-base                  100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
No updates are available
Updating cache for fedora-core-4-i386-default OS template
Setting up repositories
fc4-updates-released      100% |=========================|  951 B    00:00
fc4-vz-addons             100% |=========================|  951 B    00:00
fc4-base                  100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
No updates are available
Updating cache for fedora-core-3-i386-minimal OS template
Setting up repositories
fc3-vz-addons             100% |=========================|  951 B    00:00
fc3-base                  100% |=========================| 1.1 kB    00:00
fc3-updates-released      100% |=========================|  951 B    00:00
Reading repository metadata in from local files
No updates are available
Updating cache for fedora-core-3-i386-default OS template
Setting up repositories
fc3-vz-addons             100% |=========================|  951 B    00:00
fc3-base                  100% |=========================| 1.1 kB    00:00
fc3-updates-released      100% |=========================|  951 B    00:00
Reading repository metadata in from local files
No updates are available

[Updated on: Mon, 12 December 2005 16:05]

Report message to a moderator

Re: vzpkgcache [message #504 is a reply to message #501] Mon, 12 December 2005 18:35 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

Hopefully I'm not misunderstanding your question.. If your goal is to install OVZ you should download the rpm's that are needed and follow the users guide to install OVZ. There are no YUM repositories that I know of for OVZ. Good Luck Cool

Just Because You Have One, Doesn't Mean You Have To Be One!
Re: vzpkgcache [message #506 is a reply to message #504] Mon, 12 December 2005 18:45 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I have it installed, I'm just trying to update the package cache (or whatever it's called). The vzpkgcache command worked for FC3 and FC4, but it will download part of that primary file, then just time out. I am on a dial-up, but the other ones worked fine.
Re: vzpkgcache [message #511 is a reply to message #501] Tue, 13 December 2005 13:10 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
[root@OpenVZ ~]# vzyum 101 install php
exec /usr/share/vzyum/bin/yum -c /vz/template/centos/4/i386/config/yum.conf --installroot /vz/root/101 --vps=101 install php
Setting up Install Process
Setting up repositories
centos4-vz-addons         100% |=========================|  951 B    00:00
centos4-base              100% |=========================| 1.1 kB    00:00
centos4-updates-released  100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 104 kB    00:38
http://beta.centos.org/centos/4/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
Error: failure: repodata/primary.xml.gz from centos4-base: [Errno 256] No more mirrors to try.


Even when I try to yum a package in, it times out.
Re: vzpkgcache [message #512 is a reply to message #511] Tue, 13 December 2005 20:07 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Does yum's downloader just blow?

[root@OpenVZ ~]# vzyum 101 install php httpd.i386 mysql.i386
exec /usr/share/vzyum/bin/yum -c /vz/template/centos/4/i386/config/yum.conf --installroot /vz/root/101 --vps=101 install php httpd.i386 mysql.i386
Setting up Install Process
Setting up repositories
centos4-vz-addons         100% |=========================|  951 B    00:00
centos4-base              100% |=========================| 1.1 kB    00:00
centos4-updates-released  100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package mysql.i386 0:4.1.12-3.RHEL4.1 set to be updated
---> Package php.i386 0:4.3.9-3.9 set to be updated
--> Running transaction check
--> Processing Dependency: libpspell.so.15 for package: php
--> Processing Dependency: php-pear for package: php
--> Processing Dependency: libaspell.so.15 for package: php
--> Processing Dependency: perl(DBI) for package: mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package perl-DBI.i386 0:1.40-8 set to be updated
---> Package php-pear.i386 0:4.3.9-3.9 set to be updated
---> Package aspell.i386 12:0.50.5-3.fc3 set to be updated
--> Running transaction check
--> Processing Dependency: aspell-en for package: aspell
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package aspell-en.i386 50:0.51-11 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mysql                   i386       4.1.12-3.RHEL4.1  centos4-base      2.8 M
 php                     i386       4.3.9-3.9        centos4-updates-released  1.3 M
Installing for dependencies:
 aspell                  i386       12:0.50.5-3.fc3  centos4-base      314 k
 aspell-en               i386       50:0.51-11       centos4-base      1.9 M
 perl-DBI                i386       1.40-8           centos4-base      466 k
 php-pear                i386       4.3.9-3.9        centos4-updates-released  265 k

Transaction Summary
=============================================================================
Install      6 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 7.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): php-4.3.9-3.9.i386 100% |=========================| 224 kB    01:32
http://beta.centos.org/centos/4/updates/i386/RPMS/php-4.3.9-3.9.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(2/5): mysql-4.1.12-3.RHE 100% |=========================| 728 kB    03:47
http://beta.centos.org/centos/4/os/i386/CentOS/RPMS/mysql-4.1.12-3.RHEL4.1.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(3/5): aspell-0.50.5-3.fc 100% |=========================|  24 kB    00:13
http://beta.centos.org/centos/4/os/i386/CentOS/RPMS/aspell-0.50.5-3.fc3.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(4/5): perl-DBI-1.40-8.i3 100% |=========================|  48 kB    00:21
http://beta.centos.org/centos/4/os/i386/CentOS/RPMS/perl-DBI-1.40-8.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(5/5): aspell-en-0.51-11. 100% |=========================| 160 kB    01:11
http://beta.centos.org/centos/4/os/i386/CentOS/RPMS/aspell-en-0.51-11.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.


Error Downloading Packages:
  mysql - 4.1.12-3.RHEL4.1.i386: failure: CentOS/RPMS/mysql-4.1.12-3.RHEL4.1.i386.rpm from centos4-base: [Errno 256] No more mirrors to try.
  aspell - 12:0.50.5-3.fc3.i386: failure: CentOS/RPMS/aspell-0.50.5-3.fc3.i386.rpm from centos4-base: [Errno 256] No more mirrors to try.
  php - 4.3.9-3.9.i386: failure: RPMS/php-4.3.9-3.9.i386.rpm from centos4-updates-released: [Errno 256] No more mirrors to try.
  perl-DBI - 1.40-8.i386: failure: CentOS/RPMS/perl-DBI-1.40-8.i386.rpm from centos4-base: [Errno 256] No more mirrors to try.
  aspell-en - 50:0.51-11.i386: failure: CentOS/RPMS/aspell-en-0.51-11.i386.rpm from centos4-base: [Errno 256] No more mirrors to try.



[root@OpenVZ ~]# wget http://beta.centos.org/centos/4/os/i386/CentOS/RPMS/aspell-0.50.5-3.fc3.i386.rpm
--12:09:23--  http://beta.centos.org/centos/4/os/i386/CentOS/RPMS/aspell-0.50.5-3.fc3.i386.rpm
           => `aspell-0.50.5-3.fc3.i386.rpm'
Resolving beta.centos.org... 66.147.238.146, 206.51.236.66, 64.8.96.20, ...
Connecting to beta.centos.org|66.147.238.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 321,640 (314K) [application/x-rpm]

100%[==========================================================================================================================>] 321,640        3.24K/s    ETA 00:00

12:11:25 (2.59 KB/s) - `aspell-0.50.5-3.fc3.i386.rpm' saved [321640/321640]

Re: vzpkgcache [message #524 is a reply to message #512] Wed, 14 December 2005 09:37 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Johan,

Sorry for not replying you earlier.

Looks like CentOS guys changed something, so beta.centos.org doesn't carry centos 4 anymore, you have to use mirror.centos.org. To do that, edit the file /vz/template/centos/4/i386/config/yum.conf and change all occurences of beta.centos.org to mirror.centos.org.

Alternatively, you can update vztmpl-centos-4 rpm which I will release shortly.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzpkgcache [message #526 is a reply to message #524] Wed, 14 December 2005 12:41 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Is there a notification list I can join to receive updates on OpenVZ updates?
Re: vzpkgcache [message #527 is a reply to message #526] Wed, 14 December 2005 12:46 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Yes, it is announce@openvz.org

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzpkgcache [message #528 is a reply to message #524] Wed, 14 December 2005 12:58 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
It's going to the new mirror, however... it still times out horribly. I'll try Googling around for yum timeouts.

[root@OpenVZ ~]# vzyum 101 install php httpd.i386 mysql.i386
exec /usr/share/vzyum/bin/yum -c /vz/template/centos/4/i386/config/yum.conf --installroot /vz/root/101 --vps=101 install php httpd.i386 mysql.i386
Setting up Install Process
Setting up repositories
centos4-vz-addons         100% |=========================|  951 B    00:00
centos4-base              100% |=========================| 1.1 kB    00:00
centos4-updates-released  100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package mysql.i386 0:4.1.12-3.RHEL4.1 set to be updated
---> Package php.i386 0:4.3.9-3.9 set to be updated
--> Running transaction check
--> Processing Dependency: libpspell.so.15 for package: php
--> Processing Dependency: php-pear for package: php
--> Processing Dependency: libaspell.so.15 for package: php
--> Processing Dependency: perl(DBI) for package: mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package perl-DBI.i386 0:1.40-8 set to be updated
---> Package php-pear.i386 0:4.3.9-3.9 set to be updated
---> Package aspell.i386 12:0.50.5-3.fc3 set to be updated
--> Running transaction check
--> Processing Dependency: aspell-en for package: aspell
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package aspell-en.i386 50:0.51-11 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mysql                   i386       4.1.12-3.RHEL4.1  centos4-base      2.8 M
 php                     i386       4.3.9-3.9        centos4-updates-released  1.3 M
Installing for dependencies:
 aspell                  i386       12:0.50.5-3.fc3  centos4-base      314 k
 aspell-en               i386       50:0.51-11       centos4-base      1.9 M
 perl-DBI                i386       1.40-8           centos4-base      466 k
 php-pear                i386       4.3.9-3.9        centos4-updates-released  265 k

Transaction Summary
=============================================================================
Install      6 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 7.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): php-4.3.9-3.9.i386 100% |=========================|  88 kB    00:42
http://mirror.centos.org/centos/4/updates/i386/RPMS/php-4.3.9-3.9.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(2/3): mysql-4.1.12-3.RHE 100% |=========================| 136 kB    00:50
http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/mysql-4.1.12-3.RHEL4.1.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(3/3): aspell-en-0.51-11. 100% |=========================| 144 kB    00:52
http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/aspell-en-0.51-11.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.


Error Downloading Packages:
  mysql - 4.1.12-3.RHEL4.1.i386: failure: CentOS/RPMS/mysql-4.1.12-3.RHEL4.1.i386.rpm from centos4-base: [Errno 256] No more mirrors to try.
  php - 4.3.9-3.9.i386: failure: RPMS/php-4.3.9-3.9.i386.rpm from centos4-updates-released: [Errno 256] No more mirrors to try.
  aspell-en - 50:0.51-11.i386: failure: CentOS/RPMS/aspell-en-0.51-11.i386.rpm from centos4-base: [Errno 256] No more mirrors to try.

Re: vzpkgcache [message #529 is a reply to message #528] Wed, 14 December 2005 13:11 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can try to find a stable centos mirror (or several ones) and switch to it.

List of CentOS mirrors is currently available from here.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzpkgcache [message #530 is a reply to message #529] Wed, 14 December 2005 14:34 Go to previous message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Problem solved...

I opened /vz/template/centos/4/i386/config/yum.conf and added\edited the rety and timeout values. I had been working in /etc/yum.conf to no avail until I noticed yum referencing this file when working. I increased the timeout to 300 and the retries to 200. She worked the first time I tried it afterwards.
Previous Topic: Dell Dimension 4300 - NIC module dmfe missing
Next Topic: Cluster With firewire
Goto Forum:
  


Current Time: Sat Aug 02 12:18:40 GMT 2025

Total time taken to generate the page: 0.38712 seconds