hi, after i upgrade our mock build env the first build always works, but all of other build with fail with such error (if i clean all mock cache and i will work again once, and i was working with 1.1.22):
---------------------------------- Starting at Sun Mar 23 14:33:07 CET 2014: mock -r epel-6-x86_64 --define "rhel 6" --define ".el6 1" --define "ver 1.1.31" --define "svn 21" --define "dist .el6" --rebuild ./yum-utils-1.1.31-21.el6.src.rpm INFO: mock.py version 1.1.36 starting... Start: init plugins INFO: tmpfs initialized INFO: selinux disabled Finish: init plugins Start: run INFO: Start(./yum-utils-1.1.31-21.el6.src.rpm) Config(epel-6-x86_64) Start: lock buildroot Start: clean chroot INFO: chroot (/var/lib/mock/epel-6-x86_64) unlocked and deleted Finish: clean chroot Finish: lock buildroot Start: chroot init Start: lock buildroot Mock Version: 1.1.36 INFO: Mock Version: 1.1.36 INFO: calling preinit hooks INFO: mounting tmpfs at /var/lib/mock/epel-6-x86_64/root/. INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled yum cache Start: cleaning yum metadata Finish: cleaning yum metadata INFO: enabled ccache Start: device setup Finish: device setup Start: yum update Start: Outputting list of available packages Finish: Outputting list of available packages Finish: yum update Finish: lock buildroot Finish: chroot init INFO: Installed packages: Start: build phase for yum-utils-1.1.31-21.el6.src.rpm Start: device setup Finish: device setup Start: build setup for yum-utils-1.1.31-21.el6.src.rpm INFO: unmounting tmpfs. ERROR: Exception(./yum-utils-1.1.31-21.el6.src.rpm) Config(epel-6-x86_64) 0 minutes 4 seconds INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result ERROR: [Errno 2] No such file or directory: './yum-utils-1.1.31-21.el6.src.rpm' Traceback (most recent call last): File "/usr/sbin/mock", line 697, in <module> main(retParams) File "/usr/sbin/mock", line 631, in main do_rebuild(config_opts, chroot, args) File "<peak.util.decorators.rewrap wrapping __main__.do_rebuild at 0x010D9668>", line 3, in do_rebuild def do_rebuild(config_opts, chroot, srpms): return __decorated(config_opts, chroot, srpms) File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 279, in do_rebuild chroot.build(srpm, timeout=config_opts['rpmbuild_timeout'], check=config_opts['check']) File "<peak.util.decorators.rewrap wrapping mockbuild.backend.build at 0x010D40C8>", line 3, in build def build(self, srpm, timeout, check): return __decorated(self, srpm, timeout, check) File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line 688, in build srpmChrootFilename = self._copySrpmIntoChroot(srpm) File "<peak.util.decorators.rewrap wrapping mockbuild.backend._copySrpmIntoChroot at 0x010DBA28>", line 3, in _copySrpmIntoChroot def _copySrpmIntoChroot(self, srpm): return __decorated(self, srpm) File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line 1091, in _copySrpmIntoChroot shutil.copy2(srpm, dest) File "/usr/lib64/python2.6/shutil.py", line 95, in copy2 copyfile(src, dst) File "/usr/lib64/python2.6/shutil.py", line 50, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: './yum-utils-1.1.31-21.el6.src.rpm' ---------------------------------- any tips?
On Sun, 23 Mar 2014 14:40:26 +0100 Farkas Levente lfarkas@lfarkas.org wrote:
hi, after i upgrade our mock build env the first build always works, but all of other build with fail with such error (if i clean all mock cache and i will work again once, and i was working with 1.1.22):
Starting at Sun Mar 23 14:33:07 CET 2014: mock -r epel-6-x86_64 --define "rhel 6" --define ".el6 1" --define "ver 1.1.31" --define "svn 21" --define "dist .el6" --rebuild ./yum-utils-1.1.31-21.el6.src.rpm INFO: mock.py version 1.1.36 starting... Start: init plugins INFO: tmpfs initialized INFO: selinux disabled Finish: init plugins Start: run INFO: Start(./yum-utils-1.1.31-21.el6.src.rpm) Config(epel-6-x86_64) Start: lock buildroot Start: clean chroot INFO: chroot (/var/lib/mock/epel-6-x86_64) unlocked and deleted Finish: clean chroot Finish: lock buildroot Start: chroot init Start: lock buildroot Mock Version: 1.1.36 INFO: Mock Version: 1.1.36 INFO: calling preinit hooks INFO: mounting tmpfs at /var/lib/mock/epel-6-x86_64/root/. INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled yum cache Start: cleaning yum metadata Finish: cleaning yum metadata INFO: enabled ccache Start: device setup Finish: device setup Start: yum update Start: Outputting list of available packages Finish: Outputting list of available packages Finish: yum update Finish: lock buildroot Finish: chroot init INFO: Installed packages: Start: build phase for yum-utils-1.1.31-21.el6.src.rpm Start: device setup Finish: device setup Start: build setup for yum-utils-1.1.31-21.el6.src.rpm INFO: unmounting tmpfs. ERROR: Exception(./yum-utils-1.1.31-21.el6.src.rpm) Config(epel-6-x86_64) 0 minutes 4 seconds INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result ERROR: [Errno 2] No such file or directory: './yum-utils-1.1.31-21.el6.src.rpm' Traceback (most recent call last): File "/usr/sbin/mock", line 697, in <module> main(retParams) File "/usr/sbin/mock", line 631, in main do_rebuild(config_opts, chroot, args) File "<peak.util.decorators.rewrap wrapping __main__.do_rebuild at 0x010D9668>", line 3, in do_rebuild def do_rebuild(config_opts, chroot, srpms): return __decorated(config_opts, chroot, srpms) File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 279, in do_rebuild chroot.build(srpm, timeout=config_opts['rpmbuild_timeout'], check=config_opts['check']) File "<peak.util.decorators.rewrap wrapping mockbuild.backend.build at 0x010D40C8>", line 3, in build def build(self, srpm, timeout, check): return __decorated(self, srpm, timeout, check) File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line 688, in build srpmChrootFilename = self._copySrpmIntoChroot(srpm) File "<peak.util.decorators.rewrap wrapping mockbuild.backend._copySrpmIntoChroot at 0x010DBA28>", line 3, in _copySrpmIntoChroot def _copySrpmIntoChroot(self, srpm): return __decorated(self, srpm) File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line 1091, in _copySrpmIntoChroot shutil.copy2(srpm, dest) File "/usr/lib64/python2.6/shutil.py", line 95, in copy2 copyfile(src, dst) File "/usr/lib64/python2.6/shutil.py", line 50, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: './yum-utils-1.1.31-21.el6.src.rpm'
any tips?
First I've seen of this. What OS is your host environment? F20 or EL6?
Oh and would you send me the config files involved?
Clark
buildsys@lists.fedoraproject.org