Re: cadmin update error - permission denied

Hunter Matthews <[email protected]> 21 Nov 2002 16:41:05 -0500
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
On Thu, 2002-11-21 at 15:27, Bob Van Cleef wrote:
> 
> Hi;
> 
> First time user of Current.  I installed 1.4.2 and succesfully
> ran an 'up2date' against a copy of the red hat CD rpms.   I then
> downloaded the update files from the Red Hat ftp site.
> 
> When I ran "cadmin update channel redhat-7.3-i386" it dead because
> of permission errors on the file system. (The directory is a remote,
> NFS mounted file systems, without root access.)  I re-ran as the
> owner of the files, and everything worked.
> 
> You may want to add code testing for access permission so that
> you can exit gracefully.

I've tried, but the deeper i get into that stuff, the nastier it got -
you might try the checkperms command of cadmin.

> 
> Bob
> 
> 
> sh-2.05a# cadmin update channel redhat-7.3-i386
> Traceback (innermost last):
>   File "/usr/sbin/cadmin", line 325, in ?
>     main()
>   File "/usr/sbin/cadmin", line 260, in main
>     mychan.update()
>   File "/usr/share/current/channel.py", line 182, in update
>     self._addRpmDir(dir)
>   File "/usr/share/current/channel.py", line 624, in _addRpmDir
>     self._addRpmPackage(pathname)
>   File "/usr/share/current/channel.py", line 733, in _addRpmPackage
>     self._deleteRpmPackage(fullname)
>   File "/usr/share/current/channel.py", line 985, in _deleteRpmPackage
>     self._shelfRemove(self.dep_files, depfile, nvre)
>   File "/usr/share/current/channel.py", line 1182, in _shelfRemove
>     old_list = shelf[key]
>   File "/usr/lib/python1.5/shelve.py", line 64, in __getitem__
>     f = StringIO(self.dict[key])
> bsddb.error: (13, 'Permission denied')
> Exception exceptions.IOError: (13, 'Permission denied', 
> '/n/oceanus/s5/current/www/redhat-7.3-i386/listPackages/20021121121057') 
> in <method Channel.__del__ of Channel instance at 80e3c38> ignored
> Python bsddb: close errno 13 in dealloc
> Python bsddb: close errno 13 in dealloc
> sh-2.05a#
> 
> _______________________________________________
> 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.