Re: missing database???

Hunter Matthews <[email protected]> 18 Dec 2002 18:27:31 -0500
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
Cool.


On Wed, 2002-12-18 at 17:42, Bob Van Cleef wrote:
> 
> Two problems - Both "my bad" = Bob
> 
> On Wed, 18 Dec 2002, Bob Van Cleef wrote:
> 
> > 
> > On 18 Dec 2002, Hunter Matthews wrote:
> > 
> > > On Wed, 2002-12-18 at 16:15, Bob Van Cleef wrote:
> > > > 
> > > > On Wed, 18 Dec 2002, John Berninger wrote:
> > > > 
> > > > > That number is a 'version' number (formed through a munge of the date,
> > > > > obviously) of the database on the server.  Did you register the client
> > > > > in question with RHN preivously?
> > > > 
> > > > I registered and ran up2date previously.  I then added more "stuff" to
> > > > the current repository. 
> > > > 
> > > > >  If so, you'll have to re-register with
> > > > > your Current server, and may also have to rm -rf /var/spool/up2date/*
> > > > 
> > > > Is this needed every time you change the contents of your rpm_directory
> > > > listing?  Sounds rather drastic.
> > > 
> > > No. But, when you added more "stuff", did you restart apache?
> > 
> > Well, I am still in the process of troubleshooting.  Short answer, yes.
> > 
> > Give me about one hour and I will respond in more detail.
> > 
> > One problem is lack of clarity in error messages.  For example;
> 
> OK
> 
> [1] problem one, my bad:
> 
> rpm_directory had two entries:
> 
> ...redhat/7.3/en/os/i386/RedHat		<-- this was the directory error
> ...redhat/updates/7.3/en/os/i386
> 
> The correct one should have been:
> 
> ...redhat/7.3/en/os/i386/RedHat/RPMS
> 
> [2] problem two, also my bad:
> 
> In /etc/current/current.conf I had:
> 
> current_dir =   .../current/speakeasy.rpmfind.net/
> 
> When I originally installed current and ran up2date the first time I had:
> 
> current_dir =   .../current
> 
> That led to two sets of db and www directories, with different
> information in them.
> 
> I fixed the inconsistancies in current.conf, deleted the db and www
> directories (both sets) and reran the cadmin creates for all three
> channels.
> 
> 
> 
> > 
> > 
> > vancleef [525] > cadmin create redhat-7.3-i386
> > error: read failed: Is a directory (21)
> > Dec 18 13:5419 : EXCEPTION in /usr/share/current/channel.py, 
> > _getHeaderFromFilename(), 592 [logException()]
> > Traceback (innermost last):
> >   File "/usr/share/current/channel.py", line 589, in 
> > _getHeaderFromFilename
> >     (header, isSource) = rpm.headerFromPackage(fd)
> > rpm.error: error reading package
> > error: read failed: Is a directory (21)
> > Dec 18 13:5419 : EXCEPTION in /usr/share/current/channel.py, 
> > _getHeaderFromFilename(), 592 [logException()]
> > Traceback (innermost last):
> >   File "/usr/share/current/channel.py", line 589, in 
> > _getHeaderFromFilename
> >     (header, isSource) = rpm.headerFromPackage(fd)
> > rpm.error: error reading package
> > 
> > 
> > I'm really not sure what "Is a directory" ...  That is what
> > I am tracking down, among other errors.
> > 
> > Bob
> > 
> > 
> > 
> > 
> > > 
> > > Right now the "database" that current uses is file based, and rather
> > > stupid - you have to restart apache any time you change it.
> > > 
> > > 
> > > > 
> > > > Bob
> > > > 
> > > > > 
> > > > > On Wed, 18 Dec 2002, Bob Van Cleef wrote:
> > > > > 
> > > > > > 
> > > > > > Hmmm.... still mucking with my first Current installation.
> > > > > > 
> > > > > > I run cadmin create, update, checkdb, etc... Everything appears to work.
> > > > > > I then run up2date (all on a rh7.3 system) current v1.4.2
> > > > > > 
> > > > > > I get the error:
> > > > > > 	404: "Not Found" while attempting to get
> > > > > > 	$RHN/redhat-7.3-i386/listPackages/20021217143304
> > > > > > 
> > > > > > current/www/redhat-7.3-i386
> > > > > > vancleef [551] > ls listPackages/
> > > > > > 20021002094657  20021002125816  20021002150427  20021121122901
> > > > > > 20021002125047  20021002145852  20021120105204
> > > > > > 
> > > > > > Yeap... no 20021217143304
> > > > > > 
> > > > > > Where is that number coming from?
> > > > > > 
> > > > > > Bob
> > > > > > 
> > > > > > _______________________________________________
> > > > > > Current-server mailing list
> > > > > > [email protected]
> > > > > > http://lists.dulug.duke.edu/mailman/listinfo/current-server
> > > > > 
> > > > > 
> > > > 
> > > > -- 
> > > > ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>
> > > > Bob Van Cleef, System Administrator         (408) 734-8100 x271
> > > > MicroUnity, Inc.                             FAX (408) 734-8136
> > > > 376 Martin Ave., Santa Clara, CA 95050  [email protected]
> > > > 
> > > > _______________________________________________
> > > > Current-server mailing list
> > > > [email protected]
> > > > http://lists.dulug.duke.edu/mailman/listinfo/current-server
> > > > 
> > > > 
> > > 
> > 
> > 
> 
> -- 
> ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>  ><>
> Bob Van Cleef, System Administrator         (408) 734-8100 x271
> MicroUnity, Inc.                             FAX (408) 734-8136
> 376 Martin Ave., Santa Clara, CA 95050  [email protected]
> 
> 
> _______________________________________________
> Current-server mailing list
> [email protected]
> http://lists.dulug.duke.edu/mailman/listinfo/current-server
> 
> 
-- 
Hunter Matthews                          Unix / Network Administrator
Office: BioScience 145/244               Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02  9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.