Bug 1745123 - ERROR: Could not find useradd in chroot, maybe the install failed?
Summary: ERROR: Could not find useradd in chroot, maybe the install failed?
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: backend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-23 16:06 UTC by Pavel Valena
Modified: 2019-08-23 17:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-08-23 17:09:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Pavel Valena 2019-08-23 16:06:53 UTC
Description of problem:
The build fails (any fedora-rawhide-x68_64 build, but it happened for rhelbeta-8 BR too).

mock, locally, gives me the same error. Using `--old-chroot` and ommiting `--bootstrap-chroot` fixed that(not sure which one of those).

I probably have boostrap-chroot `on` for my repos- I'll try disabling.

How reproducible:
fedora-rawhide-x86_64 buildroot, but it could be random

Steps to Reproduce:
1. submit a build to fedora-rawhide-x86_64

Actual results:
https://copr-be.cloud.fedoraproject.org/results/pvalena/vagrant/fedora-rawhide-x86_64/01016139-vagrant/
https://copr-be.cloud.fedoraproject.org/results/pvalena/vagrant/rhelbeta-8-x86_64/01016139-vagrant/
https://copr-be.cloud.fedoraproject.org/results/pvalena/rubygems/fedora-rawhide-x86_64/01016393-rubygem-puma/

```
Finish(bootstrap): dnf install
ERROR: Exception(/tmp/tmpkin4y4va/vagrant.spec) Config(1016139-fedora-rawhide-x86_64) 0 minutes 57 seconds
INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
INFO: unmounting tmpfs.
Finish: clean chroot
ERROR: Could not find useradd in chroot, maybe the install failed?
WARNING: Could not find required logging config file: /var/lib/copr-rpmbuild/results/configs/logging.ini. Using default...
INFO: mock.py version 1.4.16 starting (python version = 3.7.4)...
Start(bootstrap): init plugins
INFO: tmpfs initialized
INFO: selinux disabled
INFO: chroot_scan: initialized
INFO: compress_logs: initialized
Finish(bootstrap): init plugins
Start: init plugins
INFO: tmpfs initialized
INFO: selinux disabled
INFO: chroot_scan: initialized
INFO: compress_logs: initialized
Finish: init plugins
Start: run
Start: scrub ['cache']
INFO: scrubbing cache for child
Finish: scrub ['cache']
Finish: run

Traceback (most recent call last):
  File "/usr/bin/copr-rpmbuild", line 129, in main
    action(args, config)
  File "/usr/bin/copr-rpmbuild", line 254, in build_rpm
    builder.run()
  File "/usr/lib/python3.7/site-packages/copr_rpmbuild/builders/mock.py", line 39, in run
    self.produce_srpm(spec, self.sourcedir, configdir, self.resultdir)
  File "/usr/lib/python3.7/site-packages/copr_rpmbuild/builders/mock.py", line 98, in produce_srpm
    raise RuntimeError("Build failed")
RuntimeError: Build failed
```

Comment 1 Pavel Raiskup 2019-08-23 17:09:23 UTC
https://gitlab.cee.redhat.com/internal-copr/mock-profiles/commit/ee07add482a63ecdfea0b3a1aeb68f647c340428

Please apply the same patch against site-defaults.cfg locally, before we have new
mock release.

Comment 2 Pavel Raiskup 2019-08-23 17:12:12 UTC
Of course you can disable bootstrap_chroot feature in copr as well.  Thanks for the report btw.!

Comment 3 Pavel Raiskup 2019-08-23 17:17:57 UTC
No, this was Fedora Copr bug report, sorry.  Here is the fix:
https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=35aba8d2134201b1c3d1a9c9cb915ce5236fdbc0

It will take some time till the builders get respawned.

Comment 4 Pavel Valena 2019-08-23 17:25:26 UTC
Thanks!


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