Bug 783964

Summary: [abrt] mock-1.1.19-2.fc16: subprocess.py:1228:_execute_child:OSError: [Errno 2] No such file or directory: '/home/leigh/fedora-16-i386/root/'
Product: [Fedora] Fedora Reporter: leigh scott <leigh123linux>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: mebrown, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6af4a37dbdbf3c98a0f988906b043bae2db46da6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-14 02:29:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
fedora-16-i386.cfg none

Description leigh scott 2012-01-23 11:35:46 UTC
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

Comment 1 Clark Williams 2012-01-30 19:10:42 UTC
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?

Comment 2 leigh scott 2012-01-30 20:54:44 UTC
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.

Comment 3 Clark Williams 2012-01-30 22:43:46 UTC
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.

Comment 4 Clark Williams 2012-08-18 15:23:26 UTC
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.

Comment 5 Fedora End Of Life 2013-02-14 02:29:45 UTC
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.