Hi,

Thanks for the prompt reply.

I have made the suggested changes and still have a problem with file access, 
the temp src rpm file is created inside the cli-build work folder and I am able 
to wget it from the topurl location but get an IO error from kojid

Any ideas ? Does the topurl configuration setting need to be escaped in some 
way ?

Thanks in advance,
C.


Output of Koji Build - client side
147 build (newbay-nse, zookeeper-3.2.2-1.src.rpm): free -> FAILED: Fault: 
<Fault 1: 'Traceback (most recent call last):\n  File 
"/usr/lib/python2.4/site-packages/koji/daemon.py", line 1114, in runTask\n    
response = (handler.run(),)\n  File 
"/usr/lib/python2.4/site-packages/koji/tasks.py", line 146, in run\n    return 
self.handler(*self.params,**self.opts)\n  File "/usr/sbin/kojid", line 731, in 
handler\n    h = self.readSRPMHeader(srpm)\n  File "/usr/sbin/kojid", line 802, 
in readSRPMHeader\n    fo = koji.openRemoteFile(relpath, **opts)\n  File 
"/usr/lib/python2.4/site-packages/koji/__init__.py", line 1376, in 
openRemoteFile\n    fo = open(fn)\nIOError: [Errno 2] No such file or 
directory: 
\'http://nse-build.nse.newbay.com/remote-koji/work/cli-build/1298912291.2243061.jTHRrzZR/zookeeper-3.2.2-1.src.rpm\'\n'>
  0 free  0 open  0 done  1 failed

>From Kojid.log
2011-02-28 17:03:20,203 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most 
recent call last):
  File "/usr/lib/python2.4/site-packages/koji/daemon.py", line 1114, in runTask
    response = (handler.run(),)
  File "/usr/lib/python2.4/site-packages/koji/tasks.py", line 146, in run
    return self.handler(*self.params,**self.opts)
  File "/usr/sbin/kojid", line 731, in handler
    h = self.readSRPMHeader(srpm)
  File "/usr/sbin/kojid", line 802, in readSRPMHeader
    fo = koji.openRemoteFile(relpath, **opts)
  File "/usr/lib/python2.4/site-packages/koji/__init__.py", line 1376, in 
openRemoteFile
    fo = open(fn)
IOError: [Errno 2] No such file or directory: 
'http://nse-build.nse.newbay.com/remote-koji/work/cli-build/1298912571.03174.jAAvxagc/zookeeper-3.2.2-1.src.rpm'



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Florian La Roche
Sent: 28 February 2011 15:42
To: Discussion of Fedora build system
Subject: Re: Koji 1.6 - Mock SRPM Build failing - NFS Path - no such file or 
directory

On Mon, Feb 28, 2011 at 07:15:54AM -0800, Ciaran Bryan wrote:
>
> Hi,
>
> I have setup a koji server and client builder successfully and can submit 
> koji client commands and issue build tasks successfully.
> When an SRPM build task is taken by my builder server (same server as 
> koji-hub/web) the mock buildroot gets setup ok and yum installed the correct 
> build group binary packages etc within the buildroot.
> Then as mock goes to build the source RPM it fails as the location of the 
> source RPM is the /mnt/work/cli-build..... NFS folder, but that NFS folder is 
> not mounted to/available within the buildroot.
>
>
> How do I make my source rpm available to the mock buildroot environment 
> without using NFS or is my setup wrong ?

You can use "topurl" instead of "topdir" to have all accesses done via http
and no NFS mounts necessary. That should be done in /etc/koji.conf and
/etc/kojid/kojid.conf.

I use "topdir=http://koji.example.com/remote-koji"; and then
the following as http configuration:
        Alias /remote-koji "/mnt/koji"
        Alias /packages "/mnt/koji/packages"
        Alias /repos "/mnt/koji/repos"
        <Directory "/mnt/koji/">
            Options Indexes SymLinksIfOwnerMatch
            AllowOverride None
            Order allow,deny
            Allow from all
            SetHandler None
            IndexOptions NameWidth=* +SuppressDescription +SuppressIcon
        </Directory>

regards,

Florian La Roche

--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys


STRICTLY PRIVATE, CONFIDENTIAL AND PRIVILEGED COMMUNICATION.

This message (including attachments) may contain information that is
privileged, confidential or protected from disclosure. They are intended
solely for the use of the intended recipient. If you are not the
intended recipient, you are hereby notified that dissemination,
disclosure, copying, distribution, printing, transmission or use of this
message or any information contained in it is strictly prohibited. If
you have received this message from NewBay Software in error, please
immediately notify the sender by reply email and delete this message
from your computer. The content of this e-mail, and any files
transmitted with it, may have been changed or altered without the
consent of the author. Although we have taken steps to ensure that this
email and attachments are free from any virus, we advise that in keeping
with good computing practice the recipient should ensure they are
actually virus free.
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to