#354 On failure, wrong error log file is pointed to
Opened by ankursinha. Modified

I recently ran into https://bugzilla.redhat.com/show_bug.cgi?id=1694411 that was causing fedora-review to fail. Instead of directing to root.log where this would be caught (failing dnf installs), fedora-review always directs to results/build.log. Could this be updated to correctly identify the log file where the failure occurred please?


As a immediate workaround, the error should say:

ERROR: 'mock build failed, see .../1672047-smoldyn/results/*.log'"

Instead of build.log.

There's also a build.log in the top-level directory which seems to be the main mock build.log file?

1672047-smoldyn/build.log:

INFO: mock.py version 1.4.14 starting (python version = 3.7.2)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(/home/asinha/dump/fedora-reviews/1672047-smoldyn/srpm/smoldyn-2.58-1.fc29.src.rpm)  Config(fedora-rawhide-x86_64)
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled dnf cache
Start: cleaning dnf metadata
Finish: cleaning dnf metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.14
INFO: Mock Version: 1.4.14
Finish: chroot init
Start: build phase for smoldyn-2.58-1.fc29.src.rpm
Start: build setup for smoldyn-2.58-1.fc29.src.rpm
ERROR: Exception(/home/asinha/dump/fedora-reviews/1672047-smoldyn/srpm/smoldyn-2.58-1.fc29.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 8 seconds
INFO: Results and/or logs in: /home/asinha/dump/fedora-reviews/1672047-smoldyn/results
ERROR: Command failed: 
 # /usr/bin/dnf builddep --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 31 --disableplugin=local --setopt=deltarpm=False /var/lib/mock/fedora-rawhide-x86_64/root//builddir/build/SRPMS/smoldyn-2.58-1.fc30.src.rpm
fedora                                           20 kB/s |  17 kB     00:00    

This is 1672047-smoldyn/results/build.log:

Mock Version: 1.4.14
Mock Version: 1.4.14
Mock Version: 1.4.14
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/smoldyn.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_GB.utf8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f7fd1b60b38>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.urj2jxuk:/etc/resolv.conf']unshare_net=TrueprintOutput=False)
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0a8e5ab8097f48d59f2a2b25b6a0849e', '-D', '/var/lib/mock/fedora-rawhide-x86_64/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.urj2jxuk:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=en_GB.utf8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/smoldyn.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_GB.utf8'} and shell False
BUILDSTDERR: perl: warning: Setting locale failed.
BUILDSTDERR: perl: warning: Please check that your locale settings:
BUILDSTDERR:    LANGUAGE = (unset),
BUILDSTDERR:    LC_ALL = (unset),
BUILDSTDERR:    LANG = "en_GB.utf8"
BUILDSTDERR:     are supported and installed on your system.
BUILDSTDERR: perl: warning: Falling back to the standard locale ("C").
BUILDSTDERR: perl: warning: Setting locale failed.
BUILDSTDERR: perl: warning: Please check that your locale settings:
BUILDSTDERR:    LANGUAGE = (unset),
BUILDSTDERR:    LC_ALL = (unset),
BUILDSTDERR:    LANG = "en_GB.utf8"
BUILDSTDERR:     are supported and installed on your system.
BUILDSTDERR: perl: warning: Falling back to the standard locale ("C").
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/smoldyn-2.58-1.fc30.src.rpm
Child return code was: 0
Mock Version: 1.4.14
Metadata