Bug 1007600 - [abrt] mock-1.1.33-1.fc19: subprocess.py:1308:_execute_child:OSError: [Errno 2] No such file or directory
Summary: [abrt] mock-1.1.33-1.fc19: subprocess.py:1308:_execute_child:OSError: [Errno ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a1d02c0dfe1558f2e7678baed61...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-12 21:58 UTC by Juan Orti
Modified: 2014-04-02 14:37 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-02 14:37:13 UTC
Type: ---
Embargoed:


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

Description Juan Orti 2013-09-12 21:58:13 UTC
Version-Release number of selected component:
mock-1.1.33-1.fc19

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
    cmd=cmd)
  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 21:58:18 UTC
Created attachment 797038 [details]
File: backtrace

Comment 2 Juan Orti 2013-09-12 21:58:20 UTC
Created attachment 797039 [details]
File: environ

Comment 3 Miroslav Suchý 2014-04-02 13:56:23 UTC
Is it possible that you did not have bash installed on that system?

Comment 4 Juan Orti 2014-04-02 14:11:51 UTC
(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 14:37:13 UTC
OK. Bash should be always installed and should not be specified in requirements.

Closing.


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