FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 03-15-2010, 08:50 AM
Eric Zhong
 
Default "koji import " command fails

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@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@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@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@wenjia koji]$ pwd
/mnt/koji


--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 03-15-2010, 10:49 AM
Dennis Gilmore
 
Default "koji import " command fails

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@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@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@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@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
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 03-15-2010, 12:28 PM
Eric Zhong
 
Default "koji import " command fails

thank you Dennis, I did as what you told me, it runs well , thank you.
But if the system will become no safe ?*
.

2010/3/15 Dennis Gilmore <dennis@ausil.us>

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@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@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@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@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


--

buildsys mailing list

buildsys@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/buildsys


--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 03-15-2010, 01:47 PM
Mike McLean
 
Default "koji import " command fails

On 03/15/2010 05:50 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!

If you're importing only srpms, you're most likely using the import
command incorrectly.

The import command is an administrative command that imports *externally
built* rpms into the system. In general you should only be importing a
complete set of built rpms with it (source *and* binary/noarch rpms).

Importing just srpms creates a build for each that only contains the
srpm, which is almost certainly not what you want. That import will
actually prevent you from being able to rebuild those srpms because it
consumes the given NVRs.

If you want to rebuild an srpm in koji, then use the build command.
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 07:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org