FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 09-03-2010, 01:16 PM
Pierre Guillet
 
Default newRepo task FAILED

Hello all,

I'm installing Koji 1.3.2 (all services on the same server) and I
have problem with newRepo task.

I have used http://fedoraproject.org/wiki/Koji/ServerHowTo guideline
to configure koji and apache daemons and
http://fedoraproject.org/wiki/Koji/ServerBootstrap guideline to start
using koji.
Peux tu m'apporter ta lumière si tu connais bien koji ?

I have imported SRPM in koji

$ koji import hawai-webmin-1.510-1.hawai5.src.rpm

I have created distrib and build tag, associated the RPM to the tag
and launched build for the tag

$ koji add-pkg --owner hawai dist-hawai-5 hawai-webmin
$ koji add-tag --parent dist-hawai-5 --arches x86_64 "noarch" dist-hawai-5-build
$ koji add-target dist-hawai-5 dist-hawai-5-build
$ koji add-group dist-hawai-5-build build

$ koji list-groups dist-hawai-5-build
build [dist-hawai-5-build]
kawai-webmin: None, default [dist-hawai-5-build]

As a consequence koji has created newRepo task:

$ koji list-tasks
ID Pri Owner State Arch Name
237 15 kojira FAILED noarch newRepo [hwi06os.hawai.recouv]
238 14 kojira FAILED noarch +createrepo [hwi06os.hawai.recouv]
239 15 kojira FAILED noarch newRepo [hwi06os.hawai.recouv]
240 14 kojira FAILED noarch +createrepo [hwi06os.hawai.recouv]
....

In kojid log repodata directory don't exist:

2010-09-02 14:25:01,979 [INFO] koji.build: Starting up
2010-09-02 14:26:49,152 [INFO] koji.build.TaskManager: Attempting to
take task 161
2010-09-02 14:26:50,881 [INFO] koji.build.TaskManager: pids: {161: 22620}
2010-09-02 14:26:51,358 [INFO] koji.build.TaskManager: open task:
{'waiting': None, 'id': 161, 'weight': 0.10000000000000001}
2010-09-02 14:27:08,286 [INFO] koji.build.TaskManager: pids: {161: 22620}
2010-09-02 14:27:08,757 [INFO] koji.build.TaskManager: open task:
{'waiting': True, 'id': 161, 'weight': 0.10000000000000001}
2010-09-02 14:27:10,206 [INFO] koji.build.TaskManager: Attempting to
take task 162
2010-09-02 14:27:11,947 [INFO] koji.build.TaskManager: pids: {161:
22620, 162: 22621}
2010-09-02 14:27:12,432 [INFO] koji.build.TaskManager: open task:
{'waiting': True, 'id': 161, 'weight': 0.10000000000000001}
2010-09-02 14:27:12,433 [INFO] koji.build.TaskManager: open task:
{'waiting': None, 'id': 162, 'weight': 1.5}
2010-09-02 14:27:12,667 [WARNING] koji.build.TaskManager: TRACEBACK:
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/162/162/repo/repodata'
2010-09-02 14:27:29,382 [INFO] koji.build.TaskManager: pids: {161:
22620, 162: 22621}
2010-09-02 14:27:29,855 [INFO] koji.build.TaskManager: open task:
{'waiting': True, 'id': 161, 'weight': 0.10000000000000001, 'alert':
True}
2010-09-02 14:27:29,855 [INFO] koji.build.TaskManager: Waking up task:
{'waiting': True, 'id': 161, 'weight': 0.10000000000000001, 'alert':
True}
2010-09-02 14:27:29,856 [INFO] koji.build.TaskManager: Task 162 (pid
22621) exited with status 0
2010-09-02 14:27:29,890 [INFO] koji.build.TaskManager: Expiring
subsession 230 (task 162)
2010-09-02 14:27:30,826 [WARNING] koji.build.TaskManager: FAULT:
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 2841, in handler
results = self.wait(subtasks.values(), all=True, failany=True)
File "/usr/sbin/kojid", line 1448, in wait
return dict(session.host.taskWaitResults(self.id,subtasks ))
File "__init__.py", line 1302, in __call__
File "__init__.py", line 1548, in _callMethod
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/162/162/repo/repodata'

In kojira logs repodata is not created :

2010-09-02 14:26:35,459 [INFO] koji.repo.manager: Created newRepo task
161 for tag 4 (dist-hawai-5-build)
2010-09-02 14:27:06,898 [INFO] koji.repo.manager: Found repo 82, state=INIT
2010-09-02 14:27:31,906 [INFO] koji.repo.manager: Problem: newRepo
task 161 for tag 4 is FAILED

I have RUNAS=root in /etc/sysconfig/kojira also no rights error (all
is launched on the same server)

createrepo is available on the server and createrepo canal is added to
the server
$ koji add-host-to-channel hwi06os.hawai.recouv createrepo
GenericError: host hwi06os.hawai.recouv is already subscribed to the
createrepo channel

kojira user has "repo" rights

$koji list-permissions --user kojira
repo

Any Idea ?

Regards,
Pierre
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 09-07-2010, 10:46 AM
Pierre Guillet
 
Default newRepo task FAILED

I got the solution. I'm working on CentOS 5.5 and
createrepo-0.4.11-3.el5 default package doesn't offer the python API (
/usr/lib/python2.4/site-packages/createrepo).
It works with python-hashlib and python-createrepo installed (packages
required for koji-builder in 1.4 and not in 1.3.2).

2010/9/3 Pierre Guillet <guillet.pierre@googlemail.com>:
> Hello all,
>
> I'm installing Koji 1.3.2 on a CentOS5 system (all services on the
> same server) and I have problem with newRepo task.
>
> I have used http://fedoraproject.org/wiki/Koji/ServerHowTo guideline
> to configure koji and apache daemons and
> http://fedoraproject.org/wiki/Koji/ServerBootstrap guideline to start
> using koji.
> Peux tu m'apporter ta lumière si tu connais bien koji ?
>
> I have imported SRPM in koji
>
> $ koji import hawai-webmin-1.510-1.hawai5.src.rpm
>
> I have created distrib and build tag, associated the RPM to the tag
> and launched build for the *tag
>
> $ koji add-pkg --owner hawai dist-hawai-5 hawai-webmin
> $ koji add-tag --parent dist-hawai-5 --arches x86_64 "noarch" dist-hawai-5-build
> $ koji add-target dist-hawai-5 dist-hawai-5-build
> $ koji add-group dist-hawai-5-build build
>
> $ koji list-groups dist-hawai-5-build
> build *[dist-hawai-5-build]
> *kawai-webmin: None, default *[dist-hawai-5-build]
>
> As a consequence koji has created newRepo task:
>
> $ koji list-tasks
> ID * *Pri *Owner * * * *State * *Arch * * * Name
> 237 * 15 * kojira * * * FAILED * noarch * * newRepo [hwi06os.hawai.recouv]
> 238 * 14 * kojira * * * FAILED * noarch * * *+createrepo [hwi06os.hawai.recouv]
> 239 * 15 * kojira * * * FAILED * noarch * * newRepo [hwi06os.hawai.recouv]
> 240 * 14 * kojira * * * FAILED * noarch * * *+createrepo [hwi06os.hawai.recouv]
> ....
>
> In kojid log repodata directory don't exist:
>
> 2010-09-02 14:25:01,979 [INFO] koji.build: Starting up
> 2010-09-02 14:26:49,152 [INFO] koji.build.TaskManager: Attempting to
> take task 161
> 2010-09-02 14:26:50,881 [INFO] koji.build.TaskManager: pids: {161: 22620}
> 2010-09-02 14:26:51,358 [INFO] koji.build.TaskManager: open task:
> {'waiting': None, 'id': 161, 'weight': 0.10000000000000001}
> 2010-09-02 14:27:08,286 [INFO] koji.build.TaskManager: pids: {161: 22620}
> 2010-09-02 14:27:08,757 [INFO] koji.build.TaskManager: open task:
> {'waiting': True, 'id': 161, 'weight': 0.10000000000000001}
> 2010-09-02 14:27:10,206 [INFO] koji.build.TaskManager: Attempting to
> take task 162
> 2010-09-02 14:27:11,947 [INFO] koji.build.TaskManager: pids: {161:
> 22620, 162: 22621}
> 2010-09-02 14:27:12,432 [INFO] koji.build.TaskManager: open task:
> {'waiting': True, 'id': 161, 'weight': 0.10000000000000001}
> 2010-09-02 14:27:12,433 [INFO] koji.build.TaskManager: open task:
> {'waiting': None, 'id': 162, 'weight': 1.5}
> 2010-09-02 14:27:12,667 [WARNING] koji.build.TaskManager: TRACEBACK:
> 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/162/162/repo/repodata'
> 2010-09-02 14:27:29,382 [INFO] koji.build.TaskManager: pids: {161:
> 22620, 162: 22621}
> 2010-09-02 14:27:29,855 [INFO] koji.build.TaskManager: open task:
> {'waiting': True, 'id': 161, 'weight': 0.10000000000000001, 'alert':
> True}
> 2010-09-02 14:27:29,855 [INFO] koji.build.TaskManager: Waking up task:
> {'waiting': True, 'id': 161, 'weight': 0.10000000000000001, 'alert':
> True}
> 2010-09-02 14:27:29,856 [INFO] koji.build.TaskManager: Task 162 (pid
> 22621) exited with status 0
> 2010-09-02 14:27:29,890 [INFO] koji.build.TaskManager: Expiring
> subsession 230 (task 162)
> 2010-09-02 14:27:30,826 [WARNING] koji.build.TaskManager: FAULT:
> 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 2841, in handler
> * *results = self.wait(subtasks.values(), all=True, failany=True)
> *File "/usr/sbin/kojid", line 1448, in wait
> * *return dict(session.host.taskWaitResults(self.id,subtasks ))
> *File "__init__.py", line 1302, in __call__
> *File "__init__.py", line 1548, in _callMethod
> 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/162/162/repo/repodata'
>
> In kojira logs repodata is not created :
>
> 2010-09-02 14:26:35,459 [INFO] koji.repo.manager: Created newRepo task
> 161 for tag 4 (dist-hawai-5-build)
> 2010-09-02 14:27:06,898 [INFO] koji.repo.manager: Found repo 82, state=INIT
> 2010-09-02 14:27:31,906 [INFO] koji.repo.manager: Problem: newRepo
> task 161 for tag 4 is FAILED
>
> I have RUNAS=root in /etc/sysconfig/kojira also no rights error (all
> is launched on the same server)
>
> createrepo is available on the server and createrepo canal is added to
> the server
> $ koji add-host-to-channel hwi06os.hawai.recouv createrepo
> GenericError: host hwi06os.hawai.recouv is already subscribed to the
> createrepo channel
>
> kojira user has "repo" rights
>
> $koji list-permissions --user kojira
> repo
>
> Any Idea ?
>
> Regards,
> Pierre
>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 12:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org