Bug 1266034

Summary: [abrt] mock: shutil.py:107:copyfile:FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/mock/fedora-22-x86_64/result/zbackup-1.4.4-1.fc22.src.rpm'
Product: [Fedora] Fedora Reporter: Davide Repetto <red>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jdisnard, mebrown, msimacek, msuchy, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5e288e2eb9fd8a52f7d5979b0f5ddc6f0c7e49f7
Whiteboard: abrt_hash:e4f7c353a9ac059a3cd611caa506503aad03a459
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:00:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Davide Repetto 2015-09-24 10:59:24 UTC
Version-Release number of selected component:
mock-1.2.12-1.fc22

Additional info:
reporter:       libreport-2.6.2
cmdline:        /usr/bin/python3 -tt /sbin/mock /var/lib/mock/fedora-22-x86_64/result/zbackup-1.4.4-1.fc22.src.rpm
executable:     /sbin/mock
kernel:         4.1.6-201.fc22.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
shutil.py:107:copyfile:FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/mock/fedora-22-x86_64/result/zbackup-1.4.4-1.fc22.src.rpm'

Traceback (most recent call last):
  File "/sbin/mock", line 832, in <module>
    main()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/sbin/mock", line 649, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/sbin/mock", line 729, in run_command
    do_rebuild(config_opts, commands, buildroot, args)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/sbin/mock", line 495, in do_rebuild
    post=post_build, clean=clean)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/sbin/mock", line 440, in rebuild_generic
    ret = cmd(item)
  File "/sbin/mock", line 475, in build
    check=config_opts['check'])
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/backend.py", line 207, in build
    srpm = self.copy_srpm_into_chroot(srpm)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/backend.py", line 364, in copy_srpm_into_chroot
    shutil.copy2(srpm_path, dest)
  File "/usr/lib64/python3.4/shutil.py", line 244, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib64/python3.4/shutil.py", line 107, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/mock/fedora-22-x86_64/result/zbackup-1.4.4-1.fc22.src.rpm'

Local variables in innermost frame:
dst: '/var/lib/mock/fedora-22-x86_64/root/builddir/build/originals/zbackup-1.4.4-1.fc22.src.rpm'
follow_symlinks: True
fn: '/var/lib/mock/fedora-22-x86_64/root/builddir/build/originals/zbackup-1.4.4-1.fc22.src.rpm'
src: '/var/lib/mock/fedora-22-x86_64/result/zbackup-1.4.4-1.fc22.src.rpm'

Comment 1 Davide Repetto 2015-09-24 10:59:32 UTC
Created attachment 1076466 [details]
File: backtrace

Comment 2 Davide Repetto 2015-09-24 10:59:34 UTC
Created attachment 1076467 [details]
File: environ

Comment 3 Fedora End Of Life 2016-07-19 18:00:27 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.