"koji import " command fails

Dennis Gilmore dennis at ausil.us
Mon Mar 15 11:49:24 UTC 2010


On Monday 15 March 2010 04:50:15 am Eric Zhong wrote:
> i make SRPM dir, and put all srpms into it.
> i run the "koji import " or "koji import --link" , both fail.
> It looks like a Permission problem , but i can`t find it out.
> The mail
> http://lists.fedoraproject.org/pipermail/buildsys/2008-July/002085.html
> does not help!
> 
> 
> =====================================================================
> [eric at wenjia koji]$ sudo koji import --link SRPM/zsh-4.2.6-1.src.rpm
> Linking rpm to:
> /mnt/koji/work/cli-import/1268645175.8120711.uWnjiPbj/zsh-4.2.6-1.src.rpm
> importing SRPM/zsh-4.2.6-1.src.rpm...
> Error importing: No such file:
> /mnt/koji/work/cli-import/1268645175.8120711.uWnjiPbj/zsh-4.2.6-1.src.rpm
> 
> [eric at wenjia koji]$ sudo koji import SRPM/zsh-4.2.6-1.src.rpm
> uploading SRPM/zsh-4.2.6-1.src.rpm... Fault: <Fault 1: "<type
> 'exceptions.OSError'>: [Errno 13] Permission denied:
> '/mnt/koji/work/cli-import/1268645203.489852.QltdyQtr'">
> 
> [eric at wenjia koji]$ ll
> drwxr-xr-x. 2 apache apache  4096 03-10 09:05 packages
> drwxr-xr-x. 2 apache apache  4096 03-10 09:05 repos
> drwxr-xr-x. 2 apache apache  4096 03-10 09:05 scratch
> drwxr-xr-x. 2 apache apache 73728 03-15 14:04 SRPM          # all files in
> this dir are apache:apache
> drwxr-xr-x. 3 apache apache  4096 03-15 17:26 work
> 
> [eric at wenjia koji]$ pwd
> /mnt/koji

do you have selinux in enforcing mode?  we dont yet have a good selinux policy 
for koji.  

Do you plan to rebuild your srpms?  if so you dont want to import them instead 
you want to build them.
 if you plan to import matching binary rpms you really should do it all in a 
single transaction.

Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100315/024ea28e/attachment.bin 


More information about the buildsys mailing list