Hide Forgot
libreport version: 2.0.8 abrt_version: 2.0.7 cmdline: /usr/bin/python -tt /usr/sbin/mock -r fedora-16-i386 rebuild /home/leigh/rpmbuild/SRPMS/cinnamon-1.1.4-0.4.gitab6b04e.fc16.src.rpm comment: just using it executable: /usr/sbin/mock kernel: 3.2.1-1.fc16.x86_64 reason: subprocess.py:1228:_execute_child:OSError: [Errno 2] No such file or directory: '/home/leigh/fedora-16-i386/root/' time: Mon 23 Jan 2012 11:33:20 AM GMT uid: 1000 username: leigh backtrace: :subprocess.py:1228:_execute_child:OSError: [Errno 2] No such file or directory: '/home/leigh/fedora-16-i386/root/' : :Traceback (most recent call last): : File "/usr/sbin/mock", line 520, in <module> : def do_buildsrpm(config_opts, chroot, options, args): : File "/usr/sbin/mock", line 817, in main : do_rebuild(config_opts, chroot, args) : File "<peak.util.decorators.rewrap wrapping __main__.do_rebuild at 0x00C3C488>", line 3, in do_rebuild : def do_rebuild(config_opts, chroot, srpms): return __decorated(config_opts, chroot, srpms) : File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 70, in trace : result = func(*args, **kw) : File "/usr/sbin/mock", line 507, in do_rebuild : chroot.doChroot(cmd) : File "/usr/lib/python2.7/site-packages/mockbuild/backend.py", line 486, in doChroot : printOutput=printOutput, *args, **kargs) : File "<peak.util.decorators.rewrap wrapping mockbuild.util.do at 0x00BE7CF8>", line 3, in do : def do(command, shell, chrootPath, cwd, timeout, raiseExc, returnOutput, uid, gid, personality, printOutput, env, *args, **kargs): return __decorated(command, shell, chrootPath, cwd, timeout, raiseExc, returnOutput, uid, gid, personality, printOutput, env, *args, **kargs) : File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 70, in trace : result = func(*args, **kw) : File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 316, in do : preexec_fn = preexec, : File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__ : errread, errwrite) : File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child : raise child_exception :OSError: [Errno 2] No such file or directory: '/home/leigh/fedora-16-i386/root/' : :Local variables in innermost frame: :errread: 13 :c2pread: 11 :gc_was_enabled: True :errwrite: 14 :shell: True :errpipe_write: 16 :executable: '/bin/sh' :close_fds: True :self: <subprocess.Popen object at 0x115d850> :env: {'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} :cwd: None :child_exception: OSError(2, 'No such file or directory') :args: ['/bin/sh', '-c', '/usr/bin/createrepo', '-d', '-q', '-x', '*.src.rpm', '/var/lib/mock/fedora-16-i386'] :fd: 13 :c2pwrite: 12 :data: 'cexceptions\nOSError\np0\n(I2\nS\'No such file or directory\'\np1\nS\'/home/leigh/fedora-16-i386/root/\'\np2\ntp3\nRp4\n(dp5\nS\'child_traceback\'\np6\nS\'Traceback (most recent call last):\\n File "/usr/lib64/python2.7/subprocess.py", line 1177, in _execute_child\\n preexec_fn()\\n File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 372, in __call__\\n condChroot(self.chrootPath)\\n File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 195, in condChroot\\n os.chdir(chrootPath)\\nOSError: [Errno 2] No such file or directory: \\\'/home/leigh/fedora-16-i386/root/\\\'\\n\'\np7\nsb.' :creationflags: 0 :errpipe_read: 15 :preexec_fn: <mockbuild.util.ChildPreExec object at 0xc66f10> :p2cread: 4 :startupinfo: None :p2cwrite: None :universal_newlines: False
Odd, it should be looking in /var/lib/mock/fedora-16-i386 for a root directory. The abrt output is kinda confusing, so I have a couple of clarification questions: 1. Did you add yourself to the mock group? 2. What command line did you use to start mock?
Created attachment 558451 [details] fedora-16-i386.cfg Yes I did add myself to the mock group, I used this command to build mock -r fedora-16-i386 rebuild /home/leigh/rpmbuild/SRPMS/cinnamon-1.1.4-0.4.gitab6b04e.fc16.src.rpm I have / on a SSD drive and don't use /var/lib/mock to build as it would cause excessive wear and so on. Here's my mock config used on my buildsystem.
This looks like a problem in deriving directories from the basedir. Not sure if it's easily fixable. Try adding the --resultdir= command line option and pointing it to /home/leigh as well. I think that will work around this while I try and figure out what's actually going wrong.
just noticed this comment in site-defaults.cfg: # Note: the path pointed to by basedir and cache_topdir must be owned # by group 'mock' and must have mode: g+rws Try creating a directory on your SSD that's group mock with g+rws mode and then pointing basedir at that directory in your config.
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.