Re: Problems with using grab 1.0.2 and ftp.mirror.ac.uk and ftp.ximian.com

Greg Kurtzer <[email protected]> Sat, 8 Jun 2002 19:31:20 -0700
Newsgroups gmane.linux.redhat.rpm.grab
Message-ID <[email protected]>
I am sorry you are having this problem. I have seen it once before, and as I
was troubleshooting it, it just went away... Unfortunately I did not get far
enough to decipher exactly what went wrong.

What I did that fixed the problem was just running a grab --clean, and then a
grab --update again. I believe that for some reason the Locations.db database
got corrupted or it was not written correctly. All of the information seems to
be present except the locations (which is why you are seeing:
  'open of ftp://Canna-devel-3.5b2-50.i386.rpm...'

The path is just missing, which points to a corrupt Locations.db file.

Try the 'grab --clean && grab --update' and let us know how it works. If that 
does not work, do a 'grab --clean && grab --update --nodeps' and just try to
download a file. Then proceed with the 'grab --update' without the --nodeps so
it rebuilds the Provides database. 

Also with each command add the argument '--debug 2> /tmp/grab-debug1.txt' and
save those files so I can debug them.

Greg

On Sat, Jun 08, 2002 at 09:01:17PM +0200, Staf Verhaegen wrote:
> Hello list,
> 
> I installed grab recently on a RH7.2 machine. This machine is running
> from behind a LINUX masquerading firewall with the ftp masquerading
> module running. When using the normal ftp program I can download files
> from ftp.mirror.ac.uk without any problem. (Also from opera this is not
> a problem, only the progress indicator doesn't work).
> Now I try to use grab 1.0.2 (the rpm downloaded from the download
> directory). I configure the server in such a way that grab would find
> the RH7.2 installation and the updates for RH7.2 on the mirror at
> ftp.mirror.ac.uk. (lbl.gov is too slow here for me).
> 
> When doing an update I get the following:
> 
> ---------------------
> [root@pc300 root]# ./grab-devel --update
> -Updating remote RPM cache database
>  ->Grabbed and indexed [1] RPMS from [email protected]
>  ->Grabbed and indexed [6] RPMS from [email protected]
>  ->Grabbed and indexed [1232] RPMS from [email protected]
>  ->Grabbed and indexed [284] RPMS from [email protected]
>  ->Grabbed and indexed [2] RPMS from [email protected]
>  ->Grabbed and indexed [218] RPMS from [email protected]
> -Updating remote provides database with new packages
>   (you can disable this in /etc/grab/defaults or --nodeps)
>  -> 0% Canna-devel-3.5b2-50.i386.rpmerror: open of ftp://Canna-devel-3.5b2-50.i386.rpm failed: Operation not permitted
> warning: u 0x820e998 ctrl 0x82163a0 nrefs != 0 (Canna-devel-3.5b2-50.i386.rpm ftp)
> ----------------------
> 
> 
> and then the same error for every package he wants to access for the
> dependency information. Originally I used the LBL.GOV site for RH7.2 and
> that seemed to work so the ftp seems to be incompatible with
> ftp.mirror.ac.uk.
> 
> When trying to install a package without there is also a problem with
> downloading the packages as is seen in the next session:
> 
> ---------------------
> [root@pc300 root]# ./grab-devel --showall --status U --search ximian
> -Comparing 218 of 1729 with Valgor
> -Obtaining current RPM list
> -Filtered Package Statistics:
>  0 Consolidated, 0 Diff Arch, 0 Current, 0 Skip List, 197 Other Status
> -Please select one (or more) of the following matched RPMS:
> 
>  Num S Package name       Version     Installed   Arch   Size   Server Desc
>  --- - ------------------ ----------- ----------- ------ ------ ---------------
>  1   U ORBit              0.5.15-1.xi 0.5.8-4     i386   626K   XIMGNOME@XIMIAN.
>  2   ...
> 
> -Choose number(s): ('?' for help): 1
> -Here is what I will download:
> 
>  Num Package To Download                         Location
>  --- ------------------------------------------  -----------------------------
>  1   ORBit-0.5.15-1.ximian.1.i386.rpm
> 
> -You selected 626K of archives
>  ->Do you want to continue? [Y/n]: 
> -Building local package provides database
> -Searching for unresolved dependencies
>  checking (100%): ORBit-0.5.15-1.ximian.1.i386.rpmerror: open of ftp:////ORBit-0.5.15-1.ximian.1.i386.rpm failed: Operation not permitted
> warning: u 0x820e948 ctrl 0x8216338 nrefs != 0 (/ ftp)
> -Grabbing the selected packages...                                            
>  (1/1) ORBit-0.5.15-1.ximian.1.i386.rpm               100%  626/626 kB - 0 kB/s
> -FATAL: Could not connect to !
> -All downloaded RPMS passed validation
> ------------------------
> 
> Things I already tried to solve this problem:
> - update the perl-libnet package to the latest version 1.0901.
> - Tried with and without passive download of files.
> - downloaded the latest development version of the grab script
> but to no avail.
> 
> Any reactions or help ?
> 
> greets,
> Staf.
> 
> 
> _______________________________________________
> Grab mailing list
> [email protected]
> http://www.runlevelzero.net/mailman/listinfo/grab

-- 
Greg Kurtzer
[email protected]
http://www.runlevelzero.net
LINUX,... The choice of a GNU generation!
:wq