#3386 FAILED: BuildrootError: could not init mock buildroot
Closed: Fixed 2 years ago by weijiangang. Opened 2 years ago by weijiangang.

Hi, all

I met the following error when building one source package in my own koji environment.
And I check the work directory of mock, It looks ok and I can run chroot normally on xx-bootstrap dir. There's no errors in root.log.

[root@koji.pandaos.org Packages]$ koji build dist-foo zip-3.0-29.oe2203.src.rpm --scratch
Uploading srpm: zip-3.0-29.oe2203.src.rpm
[====================================] 100% 00:00:00 1.08 MiB 52.48 MiB/sec
Created task: 57
Task info: http://koji.pandaos.org/koji/taskinfo?taskID=57
Watching tasks (this may be safely interrupted)...
57 build (dist-foo, zip-3.0-29.oe2203.src.rpm): free
57 build (dist-foo, zip-3.0-29.oe2203.src.rpm): free -> open (kojid1)
58 rebuildSRPM (noarch): open (kojid1)
58 rebuildSRPM (noarch): open (kojid1) -> FAILED: BuildrootError: could not init mock buildroot, mock exited with status 20; see root.log for more information
Relevant logs:
http://kojipkgs.pandaos.org/packages/work/tasks/58/58/mock_output.log
http://kojipkgs.pandaos.org/packages/work/tasks/58/58/hw_info.log
http://kojipkgs.pandaos.org/packages/work/tasks/58/58/state.log
http://kojipkgs.pandaos.org/packages/work/tasks/58/58/build.log
http://kojipkgs.pandaos.org/packages/work/tasks/58/58/root.log
0 free 1 open 0 done 1 failed
57 build (dist-foo, zip-3.0-29.oe2203.src.rpm): open (kojid1) -> FAILED: BuildrootError: could not init mock buildroot, mock exited with status 20; see root.log for more information
0 free 0 open 0 done 2 failed

57 build (dist-foo, zip-3.0-29.oe2203.src.rpm) failed

The kojid log as following ,

2022-06-04 21:17:54,326 [WARNING] koji.TaskManager: dist-pandaos-2206-build-36-67: not in db
2022-06-04 21:17:54,326 [WARNING] koji.TaskManager: dist-pandaos-2206-build-37-171: not in db
2022-06-04 21:17:54,327 [INFO] koji.TaskManager: pids: {57: 2823656, 58: 2823657}
2022-06-04 21:17:54,337 [INFO] koji.TaskManager: open task: {'id': 57, 'waiting': True, 'weight': 0.2, 'alert': True}
2022-06-04 21:17:54,337 [INFO] koji.TaskManager: Waking up task: {'id': 57, 'waiting': True, 'weight': 0.2, 'alert': True}
2022-06-04 21:17:54,338 [INFO] koji.TaskManager: Task 58 (pid 2823657) exited with status 0
2022-06-04 21:17:54,362 [INFO] koji.TaskManager: Expiring subsession 145 (task 58)
2022-06-04 21:17:54,380 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/koji/init.py", line 2813, in _callMethod
return self._sendCall(handler, headers, request)
File "/usr/lib/python3.10/site-packages/koji/init.py", line 2719, in _sendCall
return self._sendOneCall(handler, headers, request)
File "/usr/lib/python3.10/site-packages/koji/init.py", line 2777, in _sendOneCall
ret = self._read_xmlrpc_response(r)
File "/usr/lib/python3.10/site-packages/koji/init.py", line 2789, in _read_xmlrpc_response
result = u.close()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 662, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 1012: 'could not init mock buildroot, mock exited with status 20; see root.log for more information'>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/koji/daemon.py", line 1468, in runTask
response = (handler.run(),)
File "/usr/lib/python3.10/site-packages/koji/tasks.py", line 335, in run
return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
File "/usr/lib/python3.10/site-packages/koji/util.py", line 271, in call_with_argcheck
return func(args, *kwargs)
File "/usr/sbin/kojid", line 1041, in handler
self.event_id = self.session.getLastEvent()['id']
File "/usr/sbin/kojid", line 1123, in getSRPM
if rebuild:
File "/usr/sbin/kojid", line 1139, in getSRPMFromSRPM
# wait for subtask to finish
File "/usr/lib/python3.10/site-packages/koji/tasks.py", line 455, in wait
return dict(self.session.host.taskWaitResults(self.id, finished,
File "/usr/lib/python3.10/site-packages/koji/init.py", line 2369, in call
return self.func(self.__name, args, opts)
File "/usr/lib/python3.10/site-packages/koji/__init
.py", line 2832, in _callMethod
raise err
koji.BuildrootError: could not init mock buildroot, mock exited with status 20; see root.log for more information

What is the reason?
I have no idea about it , please give me some help.


I fixed the problem,the reason is shadow-utils package name,which is called shadow in my repo.
Close this issue now
Thanks

Metadata Update from @weijiangang:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata