Hi guys.

I've just upgrade to Centos 10, from 9, I wonder if this might be unique to & an issue in C10.

-> $ mock -r centos-stream+epel-9-x86_64 --tmp_prefix= --addrepo=http://ctrl.mine.priv/repo/el9/{{target_arch}}/ --rootdir=/devs/var/mock --resultdir=/00-REPOs/dnf.repo/repo/"{{dist}}"/"{{target_arch}}"/Packages --sources=/home/appmgr/rpmbuild/SOURCES --spec /home/appmgr/rpmbuild/SPECS/postfix.spec | tee ~/rpmbuild/_logs/last_mock_build.log
...
Finish: installing minimal buildroot with dnf
ERROR: Exception(/home/appmgr/rpmbuild/SPECS/postfix.spec) Config(centos-stream+epel-9-x86_64) 0 minutes 11 seconds INFO: Results and/or logs in: /00-REPOs/dnf.repo/repo/el9/x86_64/Packages
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed:
 # useradd mockbuild -o -u 1000 -g 135 -N -d /builddir --prefix /devs/var/mock


in 'root.log'
...
DEBUG file_util.py:18:  ensuring that dir exists: /devs/var/mock/builddir
DEBUG util.py:634:  child environment: None
DEBUG util.py:556:  Executing command: ['userdel', '-f', 'mockbuild', '--prefix', '/devs/var/mock'] with env {'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'C.UTF-8'} and shell False
DEBUG util.py:459:  userdel: user 'mockbuild' does not exist
DEBUG util.py:608:  Child return code was: 6
DEBUG util.py:634:  child environment: None
DEBUG util.py:556:  Executing command: ['groupdel', 'mock', '--prefix', '/devs/var/mock'] with env {'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'C.UTF-8'} and shell False
DEBUG util.py:459:  groupdel: group 'mock' does not exist
DEBUG util.py:608:  Child return code was: 6
DEBUG util.py:634:  child environment: None
DEBUG util.py:556:  Executing command: ['groupadd', 'mock', '-g', '135', '--prefix', '/devs/var/mock'] with env {'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'C.UTF-8'} and shell False
DEBUG util.py:608:  Child return code was: 0
DEBUG util.py:634:  child environment: None
DEBUG util.py:556:  Executing command: ['useradd', 'mockbuild', '-o', '-u', '1000', '-g', '135', '-N', '-d', '/builddir', '--prefix', '/devs/var/mock'] with env {'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'C.UTF-8'} and shell False DEBUG util.py:459:  useradd: failed to prepare the new /devs/var/mock//etc/subuid entry
DEBUG util.py:608:  Child return code was: 16
DEBUG util.py:183:  kill orphans in chroot /devs/var/mock
DEBUG util.py:634:  child environment: None
DEBUG util.py:556:  Executing command: ['/bin/umount', '-n', '/devs/var/mock/var/cache/dnf'] with env {'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'C.UTF-8'} and shell False

when I use: --no-cleanup-after then it fails complaining that home dir; builddir already exist
mock-6.6-1.el10_2

Seems like that stage is breaking up - has to do with mock itself rather than env, chroot or spec - no?
thanks, L.
-- 
_______________________________________________
buildsys mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to