Message info From:Moray Henderson Subject:newRepo Permission denied: \'/mnt/koji/repos\' Date:Thu, 12 Apr 2012 16:40:08 +0100

Is this the right place for questions on local koji installations?

Fresh setup of koji on CentOS 6.2. I've got hub, web and builder all
talking to each other, external repositories defined for the build tag and
build groups set up.

/mnt/koji is an nfs mount with root squashed to uid 48 (apache). I've
tested that I can write to the subdirectories as root and the owner comes
out as apache. The directory looks like

# ll -R koji
total 16
drwxr-xr-x 2 apache apache 4096 Apr 12 11:13 packages
drwxr-xr-x 3 apache apache 4096 Apr 12 15:20 repos
drwxr-xr-x 2 apache apache 4096 Apr 12 11:13 scratch
drwxr-xr-x 2 apache apache 4096 Apr 12 11:13 work

total 0

total 0

total 0

total 0

The Koji/ExternalRepoServerBootstrap document says "Wait for the repo to
regenerate, and you should now be able to run a build successfully."
However, Koji-web lists the newRepo task as failed with result "<type
'exceptions.OSError'>: [Errno 13] Permission denied: '/mnt/koji/repos'". On
the builder, kojid.log reports:

2012-04-12 14:20:31,067 [INFO] Starting up
2012-04-12 14:20:34,363 [INFO] koji.TaskManager: Attempting to take task
2012-04-12 14:20:36,275 [INFO] koji.TaskManager: pids: {176: 17925}
2012-04-12 14:20:36,855 [WARNING] koji.TaskManager: FAULT:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/koji/", line 1114, in
response = (,)
File "/usr/lib/python2.6/site-packages/koji/", line 146, in run
return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid", line 2491, in handler
repo_id, event_id =['id'], **kwargs)
File "/usr/lib/python2.6/site-packages/koji/", line 1510, in
return self.__func(self.__name,args,opts)
File "/usr/lib/python2.6/site-packages/koji/", line 1760, in
raise err
Fault: <Fault 1: "<type 'exceptions.OSError'>: [Errno 13] Permission
denied: '/mnt/koji/repos'">

2012-04-12 14:20:37,110 [INFO] koji.TaskManager: open task: {'waiting':
None, 'id': 176, 'weight': 0.10000000000000001}

I've looked into the code, but my python is not up to debugging that. It's
not an SELinux problem (I tried permissive mode) and /mnt/koji is mounted
read-write on the builder even though the documentation says that's not
necessary. Can someone point me in the right direction?

"To err is human; to purr, feline."

buildsys mailing list