Hi,
On 5.5 you need to install python-hashlib and python-createrepo RPM packages. These
required packages are installed if you are using koji RPM.
The createrepo task creates the repository with the python library and not with createrepo
command and createrepo RPM on REHL5.5 don't contain this library.
Regards,
Pierre
Le 1 nov. 2010 à 08:46, Allen Hewes a écrit :
Hi Folks,
I am assuming I have the right list? I thought that the infrastructure@ one could be a
possibility, but I see some of the koji nijas here... If I am in the wrong place, lemme
know where the right place is! ;-)
I have followed the Koji guide at
http://fedoraproject.org/wiki/Koji/ServerHowTo.
I also followed the "server bootstrap" guide at
http://fedoraproject.org/wiki/Koji/ServerBootstrap.
I am a real koji noob, so I am not comfortable with all the terms and flow. I am still
working on understanding how koji works.
I can do all kinds of stuff with the koji cli, so I know I at least got something right.
But I get errors on task newRepo. After getting koji up to snuff via the ServerHowTo, I
run these commands from kojiadmin user;
koji import ifstat-1.1-1.3.el5.src.rpm
koji add-tag dist-foo
koji add-pkg --owner allen dist-foo ifstat
koji tag-pkg dist-foo ifstat-1.1-1.3.el5
koji add-tag --parent dist-foo --arches i386 dist-foo-build
koji add-target dist-foo dist-foo-build
Then I get in /var/log/kojid.log:
2010-11-01 03:03:01,390 [WARNING] koji.build.TaskManager: TRACEBACK: Traceback (most
recent call last):
File "/usr/sbin/kojid", line 1458, in runTask
response = (handler.run(),)
File "/usr/sbin/kojid", line 1534, in run
return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid", line 3772, in handler
for f in os.listdir(self.datadir):
OSError: [Errno 2] No such file or directory:
'/mnt/koji/kojid/tasks/4/4/repo/repodata'
Then further down:
2010-11-01 03:03:19,708 [WARNING] koji.build.TaskManager: FAULT:
Traceback (most recent call last):
File "/usr/sbin/kojid", line 1458, in runTask
response = (handler.run(),)
File "/usr/sbin/kojid", line 1534, in run
return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid", line 3729, in handler
results = self.wait(subtasks.values(), all=True, failany=True)
File "/usr/sbin/kojid", line 1621, in wait
return dict(session.host.taskWaitResults(self.id,subtasks))
File "/usr/lib/python2.4/site-packages/koji/__init__.py", line 1468, in
__call__
return self.__func(self.__name,args,opts)
File "/usr/lib/python2.4/site-packages/koji/__init__.py", line 1718, in
_callMethod
raise err
Fault: <Fault 1: 'Traceback (most recent call last):
File "/usr/sbin/kojid", line 1458, in runTask
response = (handler.run(),)
File "/usr/sbin/kojid", line 1534, in run
return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid", line 3772, in handler
for f in os.listdir(self.datadir):
OSError: [Errno 2] No such file or directory:
\'/mnt/koji/kojid/tasks/4/4/repo/repodata\'
'>
tagBuild and tagNotification complete OK, they are task 1 and 2. From the DB, I can tell
that newRepo is task 3 and createrepo is task 4, both are failing with the same "No
such file or directory".
I am using koji and all associated RPMs from EPEL and base RHEL. This is a RHEL 5.5
machine. I do use some RPMForge bits, but the koji parts from the guides are either RH or
EPEL. I am also running everything on one server; apache (koji-hub), kojid and kojira.
I can run mock just fine and createrepo works also.
I have seen a few posts with the same errors, but the response wasn't clear to me. I
didn't quite get what the responder was saying, because mock and createrepo work on my
system.
Any ideas?
Thanks much,
-Allen
--
buildsys mailing list
buildsys(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys