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 07-01-2011, 09:41 AM
Aditya Patawari
 
Default Koji not able to parse SCM url

Hi,

I am running a personal Koji server and personal git. When I try to do
a "git clone git://172.16.31.180/public/kfilefactory.git/" I am able
to clone the repo successfully.

Now when I tried doing "koji build --scratch centos5
git://172.16.31.180/public/kfilefactory.git" I got an error saying
"FAILED: GenericError: Unable to parse SCM URL:
git://172.16.31.180/public/kfilefactory.git"

The /etc/kojid/kojid.conf has the following line
allowed_scms=172.16.31.184:/*:no 172.16.31.180:/*:no

Am I doing something wrong? Please help

--
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-01-2011, 02:30 PM
Mike McLean
 
Default Koji not able to parse SCM url

On 07/01/2011 05:41 AM, Aditya Patawari wrote:
> Now when I tried doing "koji build --scratch centos5
> git://172.16.31.180/public/kfilefactory.git" I got an error saying
> "FAILED: GenericError: Unable to parse SCM URL:
> git://172.16.31.180/public/kfilefactory.git"

You did not include a tag or ref.

in koji/daemon.py...
> def __init__(self, url):
> """
> Initialize the SCM object using the specified url.
> The expected url format is:
>
> scheme://[user@]host/path/to/repo?path/to/module#revision_or_tag_identifier

You could also have just looked at some example build tasks on koji.fp.o
to see the sort of git urls that are used.
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-01-2011, 03:20 PM
Aditya Patawari
 
Default Koji not able to parse SCM url

Hi,

> You did not include a tag or ref.
That helped a little

But now things got more weird. When I do the build from SCM the mock
fails but builds fine when I use srpm.

mock_output.log

INFO: mock.py version 1.1.10 starting...
State Changed: init plugins
INFO: selinux enabled
State Changed: start
State Changed: lock buildroot
State Changed: clean
State Changed: unlock buildroot
State Changed: init
State Changed: lock buildroot
Mock Version: 1.1.10
INFO: Mock Version: 1.1.10
State Changed: running yum
ERROR: Could not find useradd in chroot, maybe the install failed?

--
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-01-2011, 10:13 PM
Mike McLean
 
Default Koji not able to parse SCM url

On 07/01/2011 11:20 AM, Aditya Patawari wrote:
> But now things got more weird. When I do the build from SCM the mock
> fails but builds fine when I use srpm.
..
> ERROR: Could not find useradd in chroot, maybe the install failed?

I take it this is your own koji instance then?

An error like this usually indicates that the base install set for your
buildroot is empty or insufficient. Did you set up a build group for
your build tag?

I have no idea how your tags are set up, but most likely you need to
follow the steps outlined in either:
https://fedoraproject.org/wiki/Koji/ServerBootstrap
or
https://fedoraproject.org/wiki/Koji/ExternalRepoServerBootstrap
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-01-2011, 10:28 PM
Anthony Messina
 
Default Koji not able to parse SCM url

On 07/01/2011 04:41 AM, Aditya Patawari wrote:
> The /etc/kojid/kojid.conf has the following line
> allowed_scms=172.16.31.184:/*:no 172.16.31.180:/*:no

You probably need:
172.16.31.184:/public/*:no

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-04-2011, 04:35 AM
Yanchuan Nian
 
Default Koji not able to parse SCM url

On 07/01/2011 11:20 AM, Aditya Patawari wrote:
> But now things got more weird. When I do the build from SCM the mock
> fails but builds fine when I use srpm.
..
> ERROR: Could not find useradd in chroot, maybe the install failed?

Is there a srpm-build group in your build tag?Koji uses srpm-build group but not build group when building from SCM.--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-04-2011, 06:46 AM
Aditya Patawari
 
Default Koji not able to parse SCM url

> Is there a srpm-build group in your build tag?Koji uses srpm-build group but
> not build group when building from SCM.

It is there with the following packages:

bash bzip2 coreutils cpio diffutils findutils gawk gcc grep sed
gcc-c++ gzip info patch redhat-rpm-config rpm-build shadow-utils tar
unzip util-linux-ng which

Did I missed something?

--
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-04-2011, 07:42 AM
Aditya Patawari
 
Default Koji not able to parse SCM url

Okay. So I just restarted kojid after adding the packages to
srpm-build group again and the koji moved a little further this time
but again gave me an error. It is expecting some kind of permission
which is not there:

mock_output.log

Traceback (most recent call last):
File "/usr/sbin/mock", line 858, in <module>
main(retParams)
File "/usr/sbin/mock", line 750, in main
uid=chroot.chrootuid, gid=chroot.chrootgid, cwd=options.cwd)
File "/usr/lib/python2.6/site-packages/mock/backend.py", line 449, in doChroot
shell=shell, *args, **kargs )
File "<peak.util.decorators.rewrap wrapping mock.util.do at
0x01804500>", line 3, in do
File "/usr/lib/python2.6/site-packages/mock/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mock/util.py", line 292, in do
preexec_fn = preexec,
File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1220, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

Permission for relevant dirs:

drwxrws--x. 8 mock mock /var/lib/mock

and /mnt/koji/

drwxrwxr-x. 2 apache kojiadmin packages
drwxrwxr-x. 9 apache kojiadmin repos
drwxrwxr-x. 5 apache kojiadmin scratch
drwxrwxr-x. 5 apache kojiadmin work

Please keep in mind that it is building fine using SRPM.

--
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India



On Mon, Jul 4, 2011 at 12:16 PM, Aditya Patawari
<aditya@adityapatawari.com> wrote:
>> Is there a srpm-build group in your build tag?Koji uses srpm-build group but
>> not build group when building from SCM.
>
> It is there with the following packages:
>
> bash bzip2 coreutils cpio diffutils findutils gawk gcc grep sed
> gcc-c++ gzip info patch redhat-rpm-config rpm-build shadow-utils tar
> unzip util-linux-ng which
>
> Did I missed something?
>
> --
> Aditya Patawari
> http://blog.adityapatawari.com/
> https://fedoraproject.org/wiki/User:Adimania
> India
>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 07-04-2011, 11:07 AM
Aditya Patawari
 
Default Koji not able to parse SCM url

Hi,

I have made some more progress. I added make package in the srpm-build
group and this time there was no permission error and finally the
build started and terminated almost immediately saying "FAILED:
BuildError: No srpms found in
/var/lib/mock/centos5-mail-hosting-testing-build-71-1406/root/tmp/scmroot/kfilefactory".
I have a Makefile in my SCM which reads

sources:
curl http://kde-apps.org/CONTENT/content-files/105900-kfilefactory-0.1.1.tar.bz2
-o 105900-kfilefactory-0.1.1.tar.bz2


build.log:
ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64
--nodeps builddir/build/SPECS/kfilefactory.spec'], False,
'/var/lib/mock/centos5-mail-hosting-testing-build-71-1406/root/',
None, 86400, True, 0, 498, 496, None,
logger=<mock.trace_decorator.getLog object at 0x1795a90>)

Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target
x86_64 --nodeps builddir/build/SPECS/kfilefactory.spec']

error: File /builddir/build/SOURCES/105900-kfilefactory-0.1.1.tar.bz2:
No such file or directory

Building target platforms: x86_64

Building for target x86_64

Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps
builddir/build/SPECS/kfilefactory.spec']
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mock/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mock/util.py", line 328, in do
raise mock.exception.Error, ("Command failed. See logs for
output.
# %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps
builddir/build/SPECS/kfilefactory.spec']
LEAVE do --> EXCEPTION RAISED.

--
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 07:43 AM.

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