Hey,<div><br></div><div>just my two cents: It's possible to run the builders completely without NFS. I use "topurl=" instead of "topdir=" in kojid.conf. The URL is <a href="http://kojihub.domain.tld/kojimnt">http://kojihub.domain.tld/kojimnt</a> where kojimnt is apache aliased to the /mnt/koji on kojihub. Regen repos has to be run on kojihub in thatcase. It's the only one in the createrepo channel.</div>
<div><br></div><div>As for the NFS problem: Smells so much like Selinux. Maybe on the server-side? Do you use NFS4 ?</div><div><br></div><div>HTH</div><div>Andreas<br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 17:40, Moray Henderson <span dir="ltr"><<a href="mailto:Moray.Henderson@ict-software.org">Moray.Henderson@ict-software.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is this the right place for questions on local koji installations?<br>
<br>
Fresh setup of koji on CentOS 6.2. I've got hub, web and builder all<br>
talking to each other, external repositories defined for the build tag and<br>
build groups set up.<br>
<br>
/mnt/koji is an nfs mount with root squashed to uid 48 (apache). I've<br>
tested that I can write to the subdirectories as root and the owner comes<br>
out as apache. The directory looks like<br>
<br>
# ll -R koji<br>
koji:<br>
total 16<br>
drwxr-xr-x 2 apache apache 4096 Apr 12 11:13 packages<br>
drwxr-xr-x 3 apache apache 4096 Apr 12 15:20 repos<br>
drwxr-xr-x 2 apache apache 4096 Apr 12 11:13 scratch<br>
drwxr-xr-x 2 apache apache 4096 Apr 12 11:13 work<br>
<br>
koji/packages:<br>
total 0<br>
<br>
koji/repos:<br>
total 0<br>
<br>
koji/scratch:<br>
total 0<br>
<br>
koji/work:<br>
total 0<br>
<br>
The Koji/ExternalRepoServerBootstrap document says "Wait for the repo to<br>
regenerate, and you should now be able to run a build successfully."<br>
However, Koji-web lists the newRepo task as failed with result "<type<br>
'exceptions.OSError'>: [Errno 13] Permission denied: '/mnt/koji/repos'". On<br>
the builder, kojid.log reports:<br>
<br>
2012-04-12 14:20:31,067 [INFO] koji.build: Starting up<br>
2012-04-12 14:20:34,363 [INFO] koji.TaskManager: Attempting to take task<br>
176<br>
2012-04-12 14:20:36,275 [INFO] koji.TaskManager: pids: {176: 17925}<br>
2012-04-12 14:20:36,855 [WARNING] koji.TaskManager: FAULT:<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.6/site-packages/koji/daemon.py", line 1114, in<br>
runTask<br>
response = (handler.run(),)<br>
File "/usr/lib/python2.6/site-packages/koji/tasks.py", line 146, in run<br>
return self.handler(*self.params,**self.opts)<br>
File "/usr/sbin/kojid", line 2491, in handler<br>
repo_id, event_id = self.session.host.repoInit(tinfo['id'], **kwargs)<br>
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1510, in<br>
__call__<br>
return self.__func(self.__name,args,opts)<br>
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1760, in<br>
_callMethod<br>
raise err<br>
Fault: <Fault 1: "<type 'exceptions.OSError'>: [Errno 13] Permission<br>
denied: '/mnt/koji/repos'"><br>
<br>
2012-04-12 14:20:37,110 [INFO] koji.TaskManager: open task: {'waiting':<br>
None, 'id': 176, 'weight': 0.10000000000000001}<br>
<br>
<br>
I've looked into the code, but my python is not up to debugging that. It's<br>
not an SELinux problem (I tried permissive mode) and /mnt/koji is mounted<br>
read-write on the builder even though the documentation says that's not<br>
necessary. Can someone point me in the right direction?<br>
<br>
<br>
Moray.<br>
"To err is human; to purr, feline."<br>
<br>
<br>
--<br>
buildsys mailing list<br>
<a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a></blockquote></div><br></div>