******* if os.path.getsize(pkglist) > 0:
*********** # don't call createrepo with an empty pkglist or it'll
*********** # add every Koji-managed rpm to the repodata
*********** self.create_local_repo(rinfo, arch, pkglist, groupdata, oldrepo)
[eric@wenjia tasks]$ koji regen-repo dist-test-build
Regenerating repo for tag dist-test-build
Watching tasks (this may be safely interrupted)...
712 newRepo (dist-test-build): free
* 713 createrepo (x86_64): open (kojibuilder1) -> FAILED: Fault: <Fault 1: 'Traceback (most recent call last):
* File "/usr/sbin/kojid", line 1285, in runTask
*** response = (handler.run(),)
* File "/usr/sbin/kojid", line 1361, in run
*** return self.handler(*self.params,**self.opts)
* File "/usr/sbin/kojid", line 2884, in handler
*** for f in os.listdir(self.datadir):
OSError: [Errno 2] No such file or directory: '/tmp/koji/tasks/713/713/repo/repodata'
'>
* 2 free* 1 open* 0 done* 1 failed
* 714 createrepo (i386): free -> open (kojibuilder1)
* 714 createrepo (i386): open (kojibuilder1) -> FAILED: Fault: <Fault 1: 'Traceback (most recent call last):
* File "/usr/sbin/kojid", line 1285, in runTask
*** response = (handler.run(),)
* File "/usr/sbin/kojid", line 1361, in run
*** return self.handler(*self.params,**self.opts)
* File "/usr/sbin/kojid", line 2884, in handler
*** for f in os.listdir(self.datadir):
OSError: [Errno 2] No such file or directory: '/tmp/koji/tasks/714/714/repo/repodata'
'>
* 1 free* 1 open* 0 done* 2 failed
* 715 createrepo (ia64): free -> canceled
* 0 free* 1 open* 1 done* 2 failed
712 newRepo (dist-test-build): open (kojibuilder1) -> FAILED: Fault: <Fault 1: 'Traceback (most recent call last):
* File "/usr/sbin/kojid", line 1285, in runTask
*** response = (handler.run(),)
* File "/usr/sbin/kojid", line 1361, in run
*** return self.handler(*self.params,**self.opts)
* File "/usr/sbin/kojid", line 2884, in handler
*** for f in os.listdir(self.datadir):
OSError: [Errno 2] No such file or directory: '/tmp/koji/tasks/713/713/repo/repodata'
'>
* 0 free* 0 open* 1 done* 3 failed
712 newRepo (dist-test-build) failed
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
03-17-2010, 01:45 PM
Mike McLean
"koji regen-repo dist-test-build" command fails
On 03/17/2010 03:25 AM, Eric Zhong wrote:
> "koji regen-repo dist-test-build" command fails,
>
> kojid, kojira, httpd, postgresql are all running.
> selinux is disabled
>
> I debug the kojid and create_local_repo() not be exe, because pkglist is
> empty.
> i can't find who create this file, and when it be created.
I suspect that your tag has neither builds nor external repos. In such a
case creating a repo for it makes no sense.
To see if your tag has any builds, run:
% koji list-tagged --latest --inherit dist-test-build
To see if your tag has any external repos, run:
% koji list-external-repos --tag dist-test-build
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
03-18-2010, 12:04 AM
Eric Zhong
"koji regen-repo dist-test-build" command fails
I have do all that <ServerHowTo> said, and then reboot my machine.
Next day, When i finish the http://fedoraproject.org/wiki/Koji/ServerBootstrap, i found i have not start up kojid and kojira, because "koji regen-repo" cmd don't return.
Then , i start them, and run "koji regen-repo" again , it return this Error !
Does that causing this problem ?
Help !
[eric@wenjia repos]$ koji list-tagged --latest --inherit dist-test-build
Build************************************ Tag****************** Built by
----------------------------------------* --------------------* ----------------
Ajaxterm-0.10-8.el5********************** dist-test************ kojiadmin
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
03-18-2010, 04:43 PM
Mike McLean
"koji regen-repo dist-test-build" command fails
On 03/17/2010 09:04 PM, Eric Zhong wrote:
> ================================================== =======
>
> [eric@wenjia repos]$ koji list-tagged --latest --inherit dist-test-build
> Build Tag Built by
> ---------------------------------------- --------------------
> ----------------
> Ajaxterm-0.10-8.el5 dist-test kojiadmin
> Cluster_Administration-5.2-1.ns5.3.02 dist-test kojiadmin
> Deployment_Guide-5.2-11.ns5.3.02 dist-test kojiadmin
> ......
> (Total:1198 lines)
From your post a few days ago, it looks like you had been running koji
import commands on a directory of (only) srpms. Did you ever correct
that? If not, all these builds listing in your tag may consist only of
srpms, which won't be placed in the repos.
Check this with:
% koji list-tagged dist-test --latest --inherit --rpms |grep -v '.src$'
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
03-20-2010, 05:17 AM
Eric Zhong
"koji regen-repo dist-test-build" command fails
Thanks Mike! I have solved that, i have not import rpms .
I think that is optinal from <ServerBootstrap>, it's my fault.