Bug 1007600 - [abrt] mock-1.1.33-1.fc19: subprocess.py:1308:_execute_child:OSError: [Errno 2] No such file or directory
[abrt] mock-1.1.33-1.fc19: subprocess.py:1308:_execute_child:OSError: [Errno ...
Product: Fedora
Classification: Fedora
Component: mock (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Clark Williams
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-09-12 17:58 EDT by Juan Orti
Modified: 2014-04-02 10:37 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-04-02 10:37:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: backtrace (2.09 KB, text/plain)
2013-09-12 17:58 EDT, Juan Orti
no flags Details
File: environ (2.23 KB, text/plain)
2013-09-12 17:58 EDT, Juan Orti
no flags Details

  None (edit)
Description Juan Orti 2013-09-12 17:58:13 EDT
Version-Release number of selected component:

Additional info:
reporter:       libreport-2.1.6
cmdline:        /usr/bin/python -tt /sbin/mock -r fedora-19-x86_64 --shell 'yum install -y /tmp/openssl*rpm'
dso_list:       python-libs-2.7.5-4.fc19.x86_64
executable:     /sbin/mock
kernel:         3.10.10-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
subprocess.py:1308:_execute_child:OSError: [Errno 2] No such file or directory

Traceback (most recent call last):
  File "/sbin/mock", line 305, in <module>
    def do_buildsrpm(config_opts, chroot, options, args):
  File "/sbin/mock", line 571, in main
    sys.exit(chroot.shell(options, cmd))
  File "/usr/lib/python2.7/site-packages/mockbuild/backend.py", line 764, in shell
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 411, in doshell
    return subprocess.call(cmdstr, preexec_fn=preexec, env=environ, shell=True)
  File "/usr/lib64/python2.7/subprocess.py", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Local variables in innermost frame:
errread: None
c2pread: None
gc_was_enabled: True
errwrite: None
shell: True
errpipe_write: 6
executable: '/bin/sh'
close_fds: False
self: <subprocess.Popen object at 0x2086510>
env: {'LANG': 'es_ES.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
cwd: None
child_exception: OSError(2, 'No such file or directory')
args: ['/bin/sh', '-c', '/bin/bash -c "yum install -y /tmp/openssl*rpm"']
c2pwrite: None
data: 'cexceptions\nOSError\np0\n(I2\nS\'No such file or directory\'\np1\ntp2\nRp3\n(dp4\nS\'child_traceback\'\np5\nS\'Traceback (most recent call last):\\n  File "/usr/lib64/python2.7/subprocess.py", line 1265, in _execute_child\\n    os.execvpe(executable, args, env)\\n  File "/usr/lib64/python2.7/os.py", line 353, in execvpe\\n    _execvpe(file, args, env)\\n  File "/usr/lib64/python2.7/os.py", line 368, in _execvpe\\n    func(file, *argrest)\\nOSError: [Errno 2] No such file or directory\\n\'\np6\nsb.'
creationflags: 0
errpipe_read: 5
preexec_fn: <mockbuild.util.ChildPreExec object at 0x2086390>
p2cread: None
startupinfo: None
p2cwrite: None
universal_newlines: False

Potential duplicate: bug 957992
Comment 1 Juan Orti 2013-09-12 17:58:18 EDT
Created attachment 797038 [details]
File: backtrace
Comment 2 Juan Orti 2013-09-12 17:58:20 EDT
Created attachment 797039 [details]
File: environ
Comment 3 Miroslav Suchý 2014-04-02 09:56:23 EDT
Is it possible that you did not have bash installed on that system?
Comment 4 Juan Orti 2014-04-02 10:11:51 EDT
(In reply to Miroslav Suchý from comment #3)
> Is it possible that you did not have bash installed on that system?

I might not have installed bash in the chroot. It was part of a script I did to compile some software, and now it works alright.
For me, you can close this bug.
Comment 5 Miroslav Suchý 2014-04-02 10:37:13 EDT
OK. Bash should be always installed and should not be specified in requirements.


Note You need to log in before you can comment on or make changes to this bug.