Problem configuring kojihub
by James Cammarata
I've followed the instructions (as best I can tell) to install kojihub/web
on a RHEL5 system using the EPEL packages using the documentation here:
http://fedoraproject.org/wiki/Koji/ServerHowTo
I can access things in read-only mode, however when I try and login to
kojihub from web interface or execute CLI admin commands, I get the
following message:
Traceback (most recent call last):
File "/usr/share/koji-web/lib/kojiweb/publisher.py", line 16, in
publish_object
return old_publish_object(req, object)
File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line
412, in publish_object
return publish_object(req,util.apply_fs_data(object, req.form,
req=req))
File "/usr/lib64/python2.4/site-packages/mod_python/util.py", line 439,
in apply_fs_data
return object(**args)
File "/usr/share/koji-web/scripts/index.py", line 183, in login
if not _sslLogin(req, session, username):
File "/usr/share/koji-web/scripts/index.py", line 70, in _sslLogin
proxyuser=username)
File "/usr/lib/python2.4/site-packages/koji/__init__.py", line 1458, in
ssl_login
sinfo = self.callMethod('sslLogin', proxyuser)
File "/usr/lib/python2.4/site-packages/koji/__init__.py", line 1503, in
callMethod
return self._callMethod(name, args, opts)
File "/usr/lib/python2.4/site-packages/koji/__init__.py", line 1548, in
_callMethod
raise err
AuthError: could not verify client: None
I assume this is because I've generated one of my SSL certs incorrectly
(I've tried self-signed, as well as with our in-house CA cert), but I can't
figure it out. I've regenerated all of the certs multiple times, but I
can't get this working.
Any tips on what I may have done wrong?
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
13 years, 7 months
Lazy man's koji setup
by Bryce
I was asked by a few folk off-list about the script I use to setup koji
from scratch (Re: Subtle change in default behaviour or did I miss
something in the docs?)
I've tidied it up so that it uses a defaults file (which is the only
thing you should have to edit) and stuck in a README to explain a few items.
You can find the abomination here:
http://zeniv.linux.org.uk/~bryce/koji/setup-koji-1.0.tar.bz2
I recommend you run it inside a shiney newly installed vm though.
Also someone better qualified than myself should check that the postgres
and firewall rules I used are sensible (well they work but that's not to
say that they're right)
Phil
=--=
13 years, 7 months
Re: newRepo task FAILED
by Pierre Guillet
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(a)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
>
13 years, 7 months
Fwd: Re: dist-git tag question
by Jesse Keating
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I think this should go here for review.
- -------- Original Message --------
Subject: Re: dist-git tag question
Date: Fri, 06 Aug 2010 02:06:07 +0200
From: Karsten Hopp <karsten(a)redhat.com>
To: Development discussions related to Fedora
<devel(a)lists.fedoraproject.org>
CC: Peter Hutterer <peter.hutterer(a)who-t.net>, Jesse Keating
<jkeating(a)redhat.com>
On 04.08.2010 07:05, Peter Hutterer wrote:
>
> I don't think git hashes are an equivalent to the nvr tags though. I may
> have multiple commits for each nvr, a tag that explicitly specifies which
> version ended up as an rpm in koji would be quite helpful. I have
troubles
> remembering hashes long-term, nvr is marginally easier. it also
simplifies
> things like "git diff foo-1.2-1..foo-1.2-2" or the automation of that
> process.
>
> Cheers,
> Peter
I had similar problems identifying the correct git hash for my secondary
arch rebuilds and
complained about in in my blog on http://karstenhopp.livejournal.com/.
The attached patch adds a --commitinfo parameter to koji's buildinfo and
latest-pkg commands.
P.e. koji buildinfo --commitinfo hwdata-0.227-1.fc14 returns
git://pkgs.fedoraproject.org/hwdata?#21d5786ad6701422e71b3952ea3c8103c5ee...
The patch is for koji-1.4.0-2.fc13.noarch, but should be easy to adapt
to latest
Karsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkyBYWYACgkQ4v2HLvE71NVl/QCdGjHMG5q6ILMPEQ0p/lQNJ4UC
VVcAmwZr22Jeb+DeYtJHOvNGo0q32Kkl
=RMPS
-----END PGP SIGNATURE-----
13 years, 7 months
newRepo task FAILED
by Pierre Guillet
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
13 years, 7 months