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
07-01-2011, 02:30 PM
Mike McLean
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
07-01-2011, 03:20 PM
Aditya Patawari
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
07-01-2011, 10:13 PM
Mike McLean
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
07-01-2011, 10:28 PM
Anthony Messina
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
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
07-04-2011, 04:35 AM
Yanchuan Nian
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
07-04-2011, 06:46 AM
Aditya Patawari
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
07-04-2011, 07:42 AM
Aditya Patawari
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
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
07-04-2011, 11:07 AM
Aditya Patawari
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