Mock: Permission denied
by Eric Zhong
What's wrong?
=========================================================
[eric@wenjia ~]$ ll -d /var/lib/mock/dist-foo-build-42-21/root/builddir/
drwx------ 2 torrent mock 4096 03-29 11:08
/var/lib/mock/dist-foo-build-42-21/root/builddir/
=========================================================
[root.log]
......
DEBUG util.py:60: creating dir:
/var/lib/mock/dist-foo-build-42-21/root/builddir/build/RPMS
ERROR util.py:63: Could not create dir
/var/lib/mock/dist-foo-build-42-21/root/builddir/build/RPMS. Error:
[Errno 13] Permission denied:
'/var/lib/mock/dist-foo-build-42-21/root/builddir/build'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mock/util.py", line 61, in
mkdirIfAbsent
os.makedirs(dirName)
File "/usr/lib/python2.6/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied:
'/var/lib/mock/dist-foo-build-42-21/root/builddir/build'
DEBUG util.py:98: kill orphans
14 years
mock patch proposal: unmount everything mounted under chroot
by Alan Franzoni
Hello,
after getting some errors about unmount in mock, most probably caused
by binfmt_misc issues - somewhere some package I was building did
indeed trigger some "automagic" binfmt_misc mount under /proc/sys, I
decided to patch mock to just unmount *all* directories that have been
mounted under such chroot, no matter who mounted them or how they got
mounted.
The patch is attached. I'd open a ticket here:
https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20Hosted%20Proje...
but even though I registered I get this message:
Sorry, entering a bug into the product Fedora Hosted Projects has been disabled.
--
Alan Franzoni
--
contact me at public(a)[mysurname].eu
14 years, 1 month
hash changed for external rpm
by Connie Sieh
I recently installed koji and had successfully built rpms from src.rpm's
for Fedora 12 and Scientific Linux(RHEL 5 rebuild).
I then started getting "hash changed for external rpm" errors while trying
to build a different src.rpm for the Scientific Linux repository.
-----------------------------------------------------------------------
5329 build (dist-sl5, bash-3.2-24.el5.src.rpm): open (sl6) -> FAILED:
GenericError: hash changed for external rpm:
termcap-5.5-1.20060701.1.noarch@dist-sl5-external-repo-base
(dbb20448cc979898c065cc4e551a926c -> 586d659bf4699215a13ba57a4422bb34)
-------------------------------------------------------------------------
[root@]# rpm -qp --queryformat "%{name}\t%{sigmd5}\n" termcap-5.5-1.20060701.1.noarch.rpm
termcap dbb20448cc979898c065cc4e551a926c
----------------------------------------------------------------------------
I do not understand where the "586d659bf4699215a13ba57a4422bb34" hash is
coming from. How do I fix this?
Thanks
-Connie Sieh
14 years, 1 month
where and how are you using koji
by Dennis Gilmore
Hi all,
i just setup a wiki page https://fedoraproject.org/wiki/Koji/RunsHere
id appreciate if you use koji at work, for fun, or some other reason outside
of the fedora instances, that you would take some time and fill in the table.
If you don't have a fas account you can send your info here and ill add it to
the wiki for you.
Just after basic info
who you or your group is, a url to your instance if its public, and why and
how you use it.
Thanks
Dennis
14 years, 1 month
mock config per tag
by Michael Cronenworth
Is it possible to attach a mock config to a particular tag?
Scenario: Fedora host and build system. I am attempting to build a SPEC
that checks if it's building under Fedora or not (can be if %rhel
exists, or /etc/fedora-release exists, etc) but it currently fails for
my RHEL 5 build tag (i386, x86_64) as it thinks its on Fedora. The SPEC
is setting ExclusiveArch for i686 for Fedora and i386 for RHEL. This
works fine if I build natively on a RHEL box and Fedora box, but I'd
rather build it under Koji.
Would setting a mock config even help? Is there a more appropriate way
of handling this scenario? Google searching and wiki searching hasn't
turned up much.
Thanks,
Michael
14 years, 1 month
"koji build" return error !!!
by Eric Zhong
koji build fails!!!
Host (kojibuilder1) is ready!
I have do all steps from <ServerHowTo> and <ServerBootstrap> !!!
What hanppen? Lack of packages at building ?
========================================================================
[eric@wenjia SRPMS]$ koji build dist-foo zip-2.31-2.el5.src.rpm
Uploading srpm: zip-2.31-2.el5.src.rpm
[====================================] 100% 00:00:00 795.13 KiB 1.08
MiB/sec
Created task: 31
Task info: http://10.3.0.96/koji/taskinfo?taskID=31
None
Watching tasks (this may be safely interrupted)...
31 build (dist-foo, zip-2.31-2.el5.src.rpm): free
31 build (dist-foo, zip-2.31-2.el5.src.rpm): free -> open (kojibuilder1)
31 build (dist-foo, zip-2.31-2.el5.src.rpm): open (kojibuilder1) -> FAILED:
GenericError: Build already exists (id=1120, state=COMPLETE): {'name':
'zip', 'task_id': 31, 'pkg_id': 1120, 'epoch': None, 'completion_time':
None, 'state': 0, 'version': '2.31', 'owner': 1, 'release': '2.el5', 'id':
1120}
0 free 0 open 0 done 1 failed
31 build (dist-foo, zip-2.31-2.el5.src.rpm) failed
14 years, 1 month
local koji, yum FTP errors randomly on F11
by Michael Cronenworth
When I send builds to my local koji, I sometimes get failures just
because yum failed to download the initial build root. I'll get messages
like this:
ftp://localhost/pub/fedora/updates/12/x86_64/unzip-5.52-12.fc12.x86_64.rpm: [Errno 4] IOError: [Errno ftp error] 500 OOPS: child died
It can be any random package, not just unzip. It seems my builds are failing more of the time than succeeding lately. Any ideas on what this means?
I've tried everything from turning off SELinux to changing settings with vsftpd. The koji server and external repo are both on the same, fully updated F11 install.
Thanks,
Michael
14 years, 1 month