Re: Problems with current 1.3.11

Hunter Matthews <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
On Tue, 2002-08-27 at 12:39, Rui Barreiros wrote:
> Hi there,
> 
> i've downloaded and install current 1.3.11, (rpm) and followed all the
> steps in installation.txt etc etc.
> 
> Problems:
> - when requesting something, apache child segmentation faults, when
> adding the one and only channel (redhat-7.3-i386).
> - cadmin update channel gives the error:

The changelog says that cadmin update isn't updated for 1.3.11

The RELEASE-NOTES _should_ have said that, but they don't - they will
tomorrow.

You must use cadmin create in 1.3.10/1.3.11 and probably 1.3.12
(which will be out tomorrow or thur)

> 
> ERROR: who does the headers_dir not exist for a pre-existing channel?
> Traceback (innermost last):
>   File "/usr/sbin/cadmin", line 268, in ?
>     main()
>   File "/usr/sbin/cadmin", line 190, in main
>     mychan.update(chan)
>   File "/usr/share/current/channel.py", line 148, in update
>     self._addSrcDir(dir)
>   File "/usr/share/current/channel.py", line 1004, in _addSrcDir
>     self._addSrcPackage(pathname, file)
>   File "/usr/share/current/channel.py", line 1025, in _addSrcPackage
>     linkname = misc.PathJoin(self.chanInfo['packagesource_dir'],
> KeyError: packagesource_dir

You didn't recreate your database from your earlier install, it looks
like. 
cadmin create redhat-7.3-i386
service httpd start

Should fix this. Make sure you use the current.conf file from 1.3.11, as
the config items in it have changed from 1.3.4 and earlier.

> 
> Seem's that create doesn't create the dir headers in the db_dir (that's
> why the ERROR above), and the var chanInfo['packagesource_dir'] doesn't
> existe at the time update() is run (should be probably created on
> __init__ ? dunno python that much). I made a little hack, added these
> lines right after the :
> 
> self.chanInfo['schema_version'] = SCHEMA_VERSION
> 
> self.chanInfo['list_dir'] = '%s/%s' % \
>     (self.chanInfo['web_dir'], 'listPackages')
> self.chanInfo['headers_dir'] = '%s/%s' % \
>     (self.chanInfo['web_dir'], 'getPackageHeader')
> self.chanInfo['packagesource_dir'] = '%s/%s' % \
>     (self.chanInfo['web_dir'], 'getPackageSource')
> self.chanInfo['package_dir'] = '%s/%s' % \
>     (self.chanInfo['web_dir'], 'getPackage')
> 
> we should only need packagesource_dir, but i left the other too.
> 
> - Error when cadmin checkdb channel
> this one i couldn't fix it (as i said before, dunno python that much,
> not my language), here's the error:

checkdb is in the same catagory as 'update' - the database code has
changed A LOT in 1.3.1x, and I haven't had a chance to update those code
paths.


> 
> Traceback (innermost last):
>   File "/usr/sbin/cadmin", line 268, in ?
>     main()
>   File "/usr/sbin/cadmin", line 175, in main
>     mychan.check_consistency(chan['db_dir'])
>   File "/usr/share/current/channel.py", line 108, in check_consistency
>     check = int(self.chanInfo['srpm_check'])
> KeyError: srpm_check
> 
> Same problem than the packagesource_dir, the key is not defined, i tried
> to find for all the source (grep -i srpm_check) but found nothing, so i
> don't know how srp_check would be defined.
> 
> p.s: i was wondering if it wasn't easier to make such a thing in perl,
> or if there is any way of combining the python created db's with perl?

Since I don't know perl, John doesn't know perl, up2date isn't written
in perl, and perl wouldn't help here, I doubt it.

> 
> my best wishes, and keep up the good work.
> 
> Rui Barreiros
> 
-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.