cadmin update error - permission denied
Bob Van Cleef <[email protected]> Thu, 21 Nov 2002 12:27:11 -0800 (PST)
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
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#