Result: GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.an8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'}
[root@iZbp17zxxxxx92kdavZ bak]# uname -r 4.18.0-448.el8.x86_64 [root@iZbp17zxxxxx92kdavZ bak]# cat /etc/redhat-release CentOS Stream release 8 [root@iZbp17zxxxxx92kdavZ bak]# rpm -qa | grep koji python3-koji-1.32.0-1.el8.noarch koji-utils-1.32.0-1.el8.noarch koji-builder-1.32.0-1.el8.noarch koji-1.32.0-1.el8.noarch [root@iZbp17zxxxxx92kdavZ bak]# [root@iZbp17zxxxxx92kdavZ bak]# rpm -qa | grep mock mock-core-configs-38.3-1.el8.noarch mock-filesystem-3.5-1.el8.noarch mock-3.5-1.el8.noarch
[kojiadmin@koji-server ~]$ koji --debug build --scratch dist-centos6 fio-3.33-2.el8.src.rpm 2023-04-17 15:22:42,595 [DEBUG] koji: Opening new requests session 2023-04-17 15:22:42,596 [DEBUG] koji: Opening new requests session successfully connected to hub Uploading srpm: fio-3.33-2.el8.src.rpm 2023-04-17 15:22:42,649 [DEBUG] koji: Fast upload: fio-3.33-2.el8.src.rpm to cli-build/1681716162.6490142.gZsYhsrw/fio-3.33-2.an23.src.rpm 2023-04-17 15:22:43,832 [DEBUG] koji: Fast upload: fio-3.33-2el8.src.rpm complete. 6085549 bytes in 1.2 seconds
Created task: 134 Task info: http://112.1x6.xx.197/koji/taskinfo?taskID=134 Watching tasks (this may be safely interrupted)... 134 build (dist-centos6, fio-3.33-2.el8.src.rpm): free 134 build (dist-centos6, fio-3.33-2.el8.src.rpm): free -> open (builder02) 135 rebuildSRPM (noarch): free 135 rebuildSRPM (noarch): free -> open (builder02) 135 rebuildSRPM (noarch): open (builder02) -> FAILED: GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.el8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'} Relevant logs: http://112.1x6.xx.197/kojifiles/work/tasks/135/135/hw_info.log http://112.1x6.xx.197/kojifiles/work/tasks/135/135/state.log http://112.1x6.xx.197/kojifiles/work/tasks/135/135/root.log http://112.1x6.xx.197/kojifiles/work/tasks/135/135/mock_output.log http://112.1x6.xx.197/kojifiles/work/tasks/135/135/build.log 0 free 1 open 0 done 1 failed Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2988, in _callMethod return self._sendCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2885, in _sendCall raise e File "/usr/lib/python3.6/site-packages/koji/init.py", line 2881, in _sendCall return self._sendOneCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2931, in _sendOneCall ret = self._read_xmlrpc_response(r) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2943, in _read_xmlrpc_response result = u.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault:
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/bin/koji", line 331, in rv = locals()[command].call(options, session, args) File "/usr/lib/python3.6/site-packages/koji_cli/commands.py", line 649, in handle_build poll_interval=options.poll_interval, topurl=options.topurl) File "/usr/lib/python3.6/site-packages/koji_cli/lib.py", line 361, in watch_tasks for child in session.getTaskChildren(task_id): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2406, in call return self.func(self.__name, args, opts) File "/usr/lib/python3.6/site-packages/koji/__init.py", line 2963, in _renew_expired_session return func(self, args, *kwargs) File "/usr/lib/python3.6/site-packages/koji/init.py", line 3007, in _callMethod raise err koji.ServerOffline: database outage
It is probably what the error message says: Either is database server down or unreachable from hub. If both are running and pingable, maybe there is misconfiguration between number of apache threads and allowed max connection in postgres.
Metadata Update from @tkopecek: - Custom field Size adjusted to None
151 rebuildSRPM (noarch): open (builder02) -> FAILED: GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.el8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'}
[root@iZbp17zqxyvygykdavZ dist-centos8-build-106-5]# ls buildroot.lock result root [root@iZbp17zqespk45kn92kdavZ dist-centos6-build-106-5]# chroot root bash-4.4# rpm -q crypto-policies crypto-policies-20211116-1.gitae470d6.el8.noarch bash-4.4#
I'm worried about these db errors. Anyway, is there also kojid.log from that point? I'm not sure in which point it is calling this getRPM API call.
thanks for ur help,The following is all the logs in koji server and koji builder
---------- cat /var/log/kojira.log ----------- 2023-04-17 18:16:24,011 [INFO] koji.repo.regen: Repo 5 no longer current 2023-04-17 18:16:32,579 [INFO] koji.repo.regen: Tag needs regen: dist-centos6-build 2023-04-17 18:16:32,621 [INFO] koji.repo.regen: Needed tags count went from 0 to 1 2023-04-17 18:16:34,817 [INFO] koji.repo.regen: Created newRepo task 156 for tag 2 (dist-centos6-build), expired for 10.8 sec 2023-04-17 18:16:47,670 [INFO] koji.repo.regen: Found repo 6, state=INIT 2023-04-17 18:16:47,679 [INFO] koji.repo.regen: Tag dist-centos6-build has a current or in progress repo 2023-04-17 18:16:47,679 [INFO] koji.repo.regen: Needed tags count went from 1 to 0 2023-04-17 18:16:49,855 [INFO] koji.repo.regen: Problem: newRepo task 156 for tag 2 is FAILED
---------- cat /var/log/messages| grep koji | tail -50 -------------- Apr 17 18:16:32 koji-server kojira[161280]: 2023-04-17 18:16:32,621 [INFO] {161280} koji.repo.regen:964 Needed tags count went from 0 to 1 Apr 17 18:16:34 koji-server kojira[161280]: 2023-04-17 18:16:34,817 [INFO] {161280} koji.repo.regen:1046 Created newRepo task 156 for tag 2 (dist-centos6-build), expired for 10.8 sec Apr 17 18:16:47 koji-server kojira[161280]: 2023-04-17 18:16:47,670 [INFO] {161280} koji.repo.regen:450 Found repo 6, state=INIT Apr 17 18:16:47 koji-server kojira[161280]: 2023-04-17 18:16:47,679 [INFO] {161280} koji.repo.regen:911 Tag dist-centos6-build has a current or in progress repo Apr 17 18:16:47 koji-server kojira[161280]: 2023-04-17 18:16:47,679 [INFO] {161280} koji.repo.regen:964 Needed tags count went from 1 to 0 Apr 17 18:16:49 koji-server kojira[161280]: 2023-04-17 18:16:49,855 [INFO] {161280} koji.repo.regen:860 Problem: newRepo task 156 for tag 2 is FAILED Apr 17 18:20:02 koji-server systemd[1]: Starting system activity accounting tool... Apr 17 18:20:02 koji-server systemd[1]: sysstat-collect.service: Succeeded. Apr 17 18:20:02 koji-server systemd[1]: Started system activity accounting tool. Apr 17 18:30:02 koji-server systemd[1]: Starting system activity accounting tool... Apr 17 18:30:02 koji-server systemd[1]: sysstat-collect.service: Succeeded. Apr 17 18:30:02 koji-server systemd[1]: Started system activity accounting tool.
------- httpd log ----------------------- [root@koji-server httpd]# pwd /var/log/httpd [root@koji-server httpd]# cat ssl_error_log | tail -30 [Mon Apr 17 18:26:16.267801 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] return func(args, kwargs) [Mon Apr 17 18:26:16.267802 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.25:40020] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 15033, in setBuildRootList [Mon Apr 17 18:26:16.267804 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.25:40020] return br.setList(rpmlist) [Mon Apr 17 18:26:16.267806 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.25:40020] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 13995, in setList [Mon Apr 17 18:26:16.267807 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.25:40020] self._setList(rpmlist, update=False) [Mon Apr 17 18:26:16.267809 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 13974, in _setList [Mon Apr 17 18:26:16.267811 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] data = get_rpm(an_rpm, strict=True) [Mon Apr 17 18:26:16.267812 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 4716, in get_rpm [Mon Apr 17 18:26:16.267814 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] raise koji.GenericError("No such rpm: %r" % data) [Mon Apr 17 18:26:16.267816 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] koji.GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.an8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'} [Mon Apr 17 18:26:16.267821 2023] [wsgi:error] [pid 1024671:tid 281473349308368] [client 120.27.xxx.255:40020] [Mon Apr 17 18:26:20.283323 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] 2023-04-17 18:26:20,283 [WARNING] m=host.setBuildRootList u=builder02 p=1024671 r=120.27.xxx.255:49472 koji.xmlrpc: Traceback (most recent call last): [Mon Apr 17 18:26:20.283353 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojixmlrpc.py", line 265, in _wrap_handler [Mon Apr 17 18:26:20.283356 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] response = handler(environ) [Mon Apr 17 18:26:20.283358 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojixmlrpc.py", line 292, in handle_rpc [Mon Apr 17 18:26:20.283360 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] return self._dispatch(method, params) [Mon Apr 17 18:26:20.283362 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojixmlrpc.py", line 329, in _dispatch [Mon Apr 17 18:26:20.283363 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] ret = koji.util.call_with_argcheck(func, params, opts) [Mon Apr 17 18:26:20.283365 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/koji/util.py", line 271, in call_with_argcheck [Mon Apr 17 18:26:20.283367 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] return func(args, **kwargs) [Mon Apr 17 18:26:20.283368 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 15033, in setBuildRootList [Mon Apr 17 18:26:20.283370 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] return br.setList(rpmlist) [Mon Apr 17 18:26:20.283372 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 13995, in setList [Mon Apr 17 18:26:20.283373 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] self._setList(rpmlist, update=False) [Mon Apr 17 18:26:20.283375 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 13974, in _setList [Mon Apr 17 18:26:20.283377 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] data = get_rpm(an_rpm, strict=True) [Mon Apr 17 18:26:20.283378 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] File "/usr/lib/python3.6/site-packages/kojihub/kojihub.py", line 4716, in get_rpm [Mon Apr 17 18:26:20.283380 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] raise koji.GenericError("No such rpm: %r" % data) [Mon Apr 17 18:26:20.283382 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] koji.GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.an8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'} [Mon Apr 17 18:26:20.283387 2023] [wsgi:error] [pid 1024671:tid 281472795652048] [client 120.27.xxx.255:49472] [root@koji-server httpd]# [root@koji-server httpd]# cat ssl_request_log | tail -40 [17/Apr/2023:18:32:13 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:13 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 846 [17/Apr/2023:18:32:13 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 114 [17/Apr/2023:18:32:13 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 779 [17/Apr/2023:18:32:20 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 3907 [17/Apr/2023:18:32:20 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 645 [17/Apr/2023:18:32:20 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 312 [17/Apr/2023:18:32:22 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:26 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 129 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 36459 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 26675 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 846 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 114 [17/Apr/2023:18:32:28 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 779 [17/Apr/2023:18:32:36 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 3907 [17/Apr/2023:18:32:36 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 645 [17/Apr/2023:18:32:36 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 312 [17/Apr/2023:18:32:37 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:41 +0800] 112.xxx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 129 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 36459 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 26675 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 846 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.255 5 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 114 [17/Apr/2023:18:32:44 +0800] 120.27.xxx.2555 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 779 [17/Apr/2023:18:32:51 +0800] 112.xx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 3907 [17/Apr/2023:18:32:51 +0800] 112.xx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 645 [17/Apr/2023:18:32:51 +0800] 112.xx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 312 [17/Apr/2023:18:32:52 +0800] 112.xx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:56 +0800] 112.xx.xx.197 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 129 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 36459 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 26675 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 138 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 846 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 114 [17/Apr/2023:18:32:59 +0800] 120.27.xxx.255 TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /kojihub HTTP/1.1" 779 [root@koji-server httpd]#
-------------------- cat /var/log/kojid.log -------------------------- 2023-04-17 18:25:48,876 [INFO] koji.TaskManager: open task: {'id': 166, 'waiting': True, 'weight': 0.2} 2023-04-17 18:25:48,876 [INFO] koji.TaskManager: open task: {'id': 165, 'waiting': True, 'weight': 0.2} 2023-04-17 18:26:04,252 [INFO] koji.TaskManager: pids: {165: 18443, 166: 18444, 167: 18445, 168: 18451} 2023-04-17 18:26:04,294 [INFO] koji.TaskManager: open task: {'id': 168, 'waiting': None, 'weight': 1.0} 2023-04-17 18:26:04,294 [INFO] koji.TaskManager: open task: {'id': 167, 'waiting': None, 'weight': 1.0} 2023-04-17 18:26:04,294 [INFO] koji.TaskManager: open task: {'id': 166, 'waiting': True, 'weight': 0.2} 2023-04-17 18:26:04,294 [INFO] koji.TaskManager: open task: {'id': 165, 'waiting': True, 'weight': 0.2} 2023-04-17 18:26:14,800 [INFO] koji.build.buildroot: /usr/bin/mock -r koji/dist-centos6-build-110-5 --chroot uname -r 2023-04-17 18:26:14,804 [INFO] koji.build.buildroot: Running mock as kojibuilder 2023-04-17 18:26:16,286 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2994, in _callMethod return self._sendCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2891, in _sendCall raise e File "/usr/lib/python3.6/site-packages/koji/init.py", line 2887, in _sendCall return self._sendOneCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2937, in _sendOneCall ret = self._read_xmlrpc_response(r) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2949, in _read_xmlrpc_response result = u.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault:
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/daemon.py", line 1492, in runTask response = (handler.run(),) File "/usr/lib/python3.6/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.6/site-packages/koji/util.py", line 271, in call_with_argcheck return func(args, kwargs) File "/usr/sbin/kojid", line 5104, in handler broot.init() File "/usr/sbin/kojid", line 589, in init self.session.host.setBuildRootList(self.id, self.getPackageList()) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2412, in call return self.func(self.__name, args, opts) File "/usr/lib/python3.6/site-packages/koji/__init.py", line 2969, in _renew_expired_session return func(self, args, **kwargs) File "/usr/lib/python3.6/site-packages/koji/init.py", line 3013, in _callMethod raise err koji.GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.an8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'}
2023-04-17 18:26:17,517 [INFO] koji.build.buildroot: /usr/bin/mock -r koji/dist-centos6-build-111-5 --chroot uname -r 2023-04-17 18:26:17,521 [INFO] koji.build.buildroot: Running mock as kojibuilder 2023-04-17 18:26:19,658 [INFO] koji.TaskManager: pids: {165: 18443, 166: 18444, 167: 18445, 168: 18451} 2023-04-17 18:26:19,702 [INFO] koji.TaskManager: open task: {'id': 168, 'waiting': None, 'weight': 1.0} 2023-04-17 18:26:19,702 [INFO] koji.TaskManager: open task: {'id': 166, 'waiting': True, 'weight': 0.2} 2023-04-17 18:26:19,702 [INFO] koji.TaskManager: open task: {'id': 165, 'waiting': True, 'weight': 0.2, 'alert': True} 2023-04-17 18:26:19,702 [INFO] koji.TaskManager: Waking up task: {'id': 165, 'waiting': True, 'weight': 0.2, 'alert': True} 2023-04-17 18:26:19,702 [INFO] koji.TaskManager: Task 167 (pid 18445) exited with status 0 2023-04-17 18:26:19,708 [INFO] koji.TaskManager: Expiring subsession 558 (task 167) 2023-04-17 18:26:19,862 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2994, in _callMethod return self._sendCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2891, in _sendCall raise e File "/usr/lib/python3.6/site-packages/koji/init.py", line 2887, in _sendCall return self._sendOneCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2937, in _sendOneCall ret = self._read_xmlrpc_response(r) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2949, in _read_xmlrpc_response result = u.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault:
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/daemon.py", line 1492, in runTask response = (handler.run(),) File "/usr/lib/python3.6/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.6/site-packages/koji/util.py", line 271, in call_with_argcheck return func(args, kwargs) File "/usr/sbin/kojid", line 1061, in handler srpm = self.getSRPM(src, build_tag, repo_info['id']) File "/usr/sbin/kojid", line 1136, in getSRPM return self.getSRPMFromSCM(src, build_tag, repo_id) File "/usr/sbin/kojid", line 1176, in getSRPMFromSCM result = self.wait(task_id)[task_id] File "/usr/lib/python3.6/site-packages/koji/tasks.py", line 462, in wait canfail=canfail)) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2412, in call return self.func(self.__name, args, opts) File "/usr/lib/python3.6/site-packages/koji/__init.py", line 2969, in _renew_expired_session return func(self, args, **kwargs) File "/usr/lib/python3.6/site-packages/koji/init.py", line 3013, in _callMethod raise err koji.GenericError: No such rpm: {'name': 'crypto-policies', 'version': '20211116', 'release': '1.gitae470d6.an8', 'epoch': None, 'arch': 'noarch', 'size': 73259, 'buildtime': 1650253754, 'payloadhash': '4cb21a225722a5eb1a13531e97ad7140'}
2023-04-17 18:26:20,306 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2994, in _callMethod return self._sendCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2891, in _sendCall raise e File "/usr/lib/python3.6/site-packages/koji/init.py", line 2887, in _sendCall return self._sendOneCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2937, in _sendOneCall ret = self._read_xmlrpc_response(r) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2949, in _read_xmlrpc_response result = u.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault:
2023-04-17 18:26:34,991 [INFO] koji.TaskManager: Expiring buildroot: 110/dist-centos6-build/x86_64 2023-04-17 18:26:35,143 [INFO] koji.TaskManager: pids: {165: 18443, 166: 18444, 168: 18451} 2023-04-17 18:26:35,180 [INFO] koji.TaskManager: open task: {'id': 166, 'waiting': True, 'weight': 0.2, 'alert': True} 2023-04-17 18:26:35,180 [INFO] koji.TaskManager: Waking up task: {'id': 166, 'waiting': True, 'weight': 0.2, 'alert': True} 2023-04-17 18:26:35,180 [INFO] koji.TaskManager: Task 165 (pid 18443) exited with status 0 2023-04-17 18:26:35,186 [INFO] koji.TaskManager: Expiring subsession 556 (task 165) 2023-04-17 18:26:35,222 [INFO] koji.TaskManager: Task 168 (pid 18451) exited with status 0 2023-04-17 18:26:35,228 [INFO] koji.TaskManager: Expiring subsession 559 (task 168) 2023-04-17 18:26:35,333 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2994, in _callMethod return self._sendCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2891, in _sendCall raise e File "/usr/lib/python3.6/site-packages/koji/init.py", line 2887, in _sendCall return self._sendOneCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2937, in _sendOneCall ret = self._read_xmlrpc_response(r) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2949, in _read_xmlrpc_response result = u.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault:
2023-04-17 18:26:50,499 [INFO] koji.TaskManager: Expiring buildroot: 111/dist-centos6-build/x86_64 2023-04-17 18:26:50,651 [INFO] koji.TaskManager: pids: {166: 18444} 2023-04-17 18:26:50,690 [INFO] koji.TaskManager: Task 166 (pid 18444) exited with status 0 2023-04-17 18:26:50,696 [INFO] koji.TaskManager: Expiring subsession 557 (task 166) 2023-04-17 18:31:42,651 [INFO] koji.TaskManager: Removing buildroot: 33/dist-centos6-build/x86_64
thanks again~
Is it rpm from koji or from external repo? What "koji buildinfo crypto-policies-20211116-1.gitae470d6.an8" says? And "koji rpminfo crypto-policies-20211116-1.gitae470d6.an8.noarch.rpm"?
[kojiadmin@koji-server ~]$ yum info koji Last metadata expiration check: 0:05:44 ago on Mon 17 Apr 2023 07:42:21 PM CST. Installed Packages Name : koji Version : 1.32.0 Release : 1.el8 Architecture : noarch Size : 804 k Source : koji-1.32.0-1.el8.src.rpm Repository : @System From repo : epel Summary : Build system tools URL : https://pagure.io/koji/ License : LGPLv2 and GPLv2+ Description : Koji is a system for building and tracking RPMS. The base package : contains shared libraries and the command-line interface.
[kojiadmin@koji-server ~]$ yum repolist -v | grep epel Last metadata expiration check: 0:07:24 ago on Mon 17 Apr 2023 07:42:21 PM CST. Repo-id : epel Repo-metalink : https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=aarch64&infra=$infra&content=$contentdir Repo-baseurl : http://mirror.hostart.az/fedora-epel/8/Everything/aarch64/ (19 more) Repo-filename : /etc/yum.repos.d/epel.repo Repo-id : epel-modular Repo-metalink : https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=aarch64&infra=$infra&content=$contentdir Repo-baseurl : https://mirrors.tuna.tsinghua.edu.cn/epel/8/Modular/aarch64/ (50 more) Repo-filename : /etc/yum.repos.d/epel-modular.repo
[root@iZbp17zqespk45kn92kdavZ dist-centos6-build-106-5]# bash [root@koji-builder2 dist-centos6-build-106-5]# yum info koji-builder Last metadata expiration check: 2:52:35 ago on Mon 17 Apr 2023 04:56:15 PM CST. Installed Packages Name : koji-builder Version : 1.32.0 Release : 1.el8 Architecture : noarch Size : 291 k Source : koji-1.32.0-1.el8.src.rpm Repository : @System From repo : epel Summary : Koji RPM builder daemon URL : https://pagure.io/koji/ License : LGPLv2 Description : koji-builder is the daemon that runs on build machines and executes : tasks that come through the Koji system.
[root@koji-builder2 dist-centos6-build-106-5]# yum repolist -v | grep epel Last metadata expiration check: 2:54:04 ago on Mon 17 Apr 2023 04:56:15 PM CST. Repo-id : epel Repo-name : epel Repo-baseurl : https://mirrors.aliyun.com/epel/8/Everything/x86_64/ Repo-filename : /etc/yum.repos.d/epel.repo
[kojiadmin@koji-server ~]$ koji rpminfo crypto-policies-20211116-1.gitae470d6.an8.noarch.rpm No such rpm: crypto-policies-20211116-1.gitae470d6.an8.noarch.rpm
And buildinfo about that build? "koji buildinfo crypto-policies-20211116-1.gitae470d6.an8" It seems that that build itself is somehow weird.
oh~ . i try to build srpm,more times,but The same error occurred. "GenericError: No such rpm: {'name': 'crypto-policies', 'xxx" ,from buid log to see ,package:crypto-policies is just to be dependency package installed in mock init steps,here is my build link: http://112.126.77.197/koji/taskinfo?taskID=176,could u help more?
That buildroot/repo is empty. How you ended with downloading any content into the buildroot? Is it modified code somehow? These rpms have never been seen by koji.
Yes, this koji system has just been created, and it doesn't have its own repo. I introduced the Repos from other systems as BuildRepo to build the first package. I mainly modified this code:
/usr/lib/Python3.6/site-packages/Koji/ _ init _ . py.
Ah, that makes sense - don't do that - it is against basic koji principles (polluting buildroot with unknown content). Solution for similar situation is to use external repos. So, in your case (with vanilla koji code) something like this:
$ koji add-external-repo -t dist-centos6-build openanlois-latest "http://koji.openanolis.cn/kojifiles/repos/dist-an8.7-build/latest/$arch/" $ koji regen-repo dist-centos6-build # or wait on kojira if it is running to regenerate it automatically
Wow ,Thank you very much. I solved the previous problem with your help, when i run command:"koji build dist-centos6 --scratch --nowait git+https://gitee.com/xxx/tar.git#origin/master" But new problems have arisen.
DEBUG util.py:443: make: *** No rule to make target 'sources'. Stop.
2023-04-18 09:41:59,166 [INFO] koji.TaskManager: Attempting to take task 233 2023-04-18 09:41:59,445 [INFO] koji.TaskManager: pids: {233: 39001} 2023-04-18 09:41:59,482 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': None, 'weight': 0.2} 2023-04-18 09:42:14,887 [INFO] koji.TaskManager: pids: {233: 39001} 2023-04-18 09:42:14,930 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2} 2023-04-18 09:42:15,048 [INFO] koji.TaskManager: Attempting to take task 234 2023-04-18 09:42:15,412 [INFO] koji.TaskManager: pids: {233: 39001, 234: 39004} 2023-04-18 09:42:15,454 [INFO] koji.TaskManager: open task: {'id': 234, 'waiting': None, 'weight': 1.0} 2023-04-18 09:42:15,455 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2} 2023-04-18 09:42:15,538 [INFO] koji.build.BaseTaskHandler: Valid arches: x86_64, using: x86_64 2023-04-18 09:42:15,641 [INFO] koji.build.buildroot: /usr/bin/mock -r koji/dist-centos6-build-132-17 --init 2023-04-18 09:42:15,644 [INFO] koji.build.buildroot: Running mock as kojibuilder 2023-04-18 09:42:30,882 [INFO] koji.TaskManager: pids: {233: 39001, 234: 39004} 2023-04-18 09:42:30,919 [INFO] koji.TaskManager: open task: {'id': 234, 'waiting': None, 'weight': 1.0} 2023-04-18 09:42:30,919 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2} 2023-04-18 09:42:46,310 [INFO] koji.TaskManager: pids: {233: 39001, 234: 39004} 2023-04-18 09:42:46,346 [INFO] koji.TaskManager: open task: {'id': 234, 'waiting': None, 'weight': 1.0} 2023-04-18 09:42:46,346 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2} 2023-04-18 09:43:01,704 [INFO] koji.TaskManager: pids: {233: 39001, 234: 39004} 2023-04-18 09:43:01,736 [INFO] koji.TaskManager: open task: {'id': 234, 'waiting': None, 'weight': 1.0} 2023-04-18 09:43:01,736 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2} 2023-04-18 09:43:15,631 [INFO] koji.build.buildroot: /usr/bin/mock -r koji/dist-centos6-build-132-17 --chroot uname -r 2023-04-18 09:43:15,635 [INFO] koji.build.buildroot: Running mock as kojibuilder 2023-04-18 09:43:17,122 [INFO] koji.TaskManager: pids: {233: 39001, 234: 39004} 2023-04-18 09:43:17,164 [INFO] koji.TaskManager: open task: {'id': 234, 'waiting': None, 'weight': 1.0} 2023-04-18 09:43:17,164 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2} 2023-04-18 09:43:23,898 [INFO] koji.build.buildroot: /usr/bin/mock -r koji/dist-centos6-build-132-17 --no-clean --unpriv --cwd \ /chroot_tmpdir/scmroot/tar --chroot make sources 2023-04-18 09:43:23,901 [INFO] koji.build.buildroot: Running mock as kojibuilder 2023-04-18 09:43:25,248 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/daemon.py", line 1492, in runTask response = (handler.run(),) File "/usr/lib/python3.6/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.6/site-packages/koji/util.py", line 271, in call_with_argcheck return func(args, *kwargs) File "/usr/sbin/kojid", line 5172, in handler broot.build_srpm(spec_file, sourcedir, scm.source_cmd) File "/usr/sbin/kojid", line 646, in build_srpm raise koji.BuildError("error retrieving sources, %s" % self._mockResult(rv)) koji.BuildError: error retrieving sources, mock exited with status 2; see root.log for more information
2023-04-18 09:43:32,551 [INFO] koji.TaskManager: pids: {233: 39001, 234: 39004} 2023-04-18 09:43:32,590 [INFO] koji.TaskManager: open task: {'id': 233, 'waiting': True, 'weight': 0.2, 'alert': True} 2023-04-18 09:43:32,590 [INFO] koji.TaskManager: Waking up task: {'id': 233, 'waiting': True, 'weight': 0.2, 'alert': True} 2023-04-18 09:43:32,590 [INFO] koji.TaskManager: Task 234 (pid 39004) exited with status 0 2023-04-18 09:43:32,596 [INFO] koji.TaskManager: Expiring subsession 682 (task 234) 2023-04-18 09:43:32,733 [WARNING] koji.TaskManager: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/init.py", line 2990, in _callMethod return self._sendCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2887, in _sendCall raise e File "/usr/lib/python3.6/site-packages/koji/init.py", line 2883, in _sendCall return self._sendOneCall(handler, headers, request) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2933, in _sendOneCall ret = self._read_xmlrpc_response(r) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2945, in _read_xmlrpc_response result = u.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault:
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/koji/daemon.py", line 1492, in runTask response = (handler.run(),) File "/usr/lib/python3.6/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.6/site-packages/koji/util.py", line 271, in call_with_argcheck return func(args, kwargs) File "/usr/sbin/kojid", line 1061, in handler srpm = self.getSRPM(src, build_tag, repo_info['id']) File "/usr/sbin/kojid", line 1136, in getSRPM return self.getSRPMFromSCM(src, build_tag, repo_id) File "/usr/sbin/kojid", line 1176, in getSRPMFromSCM result = self.wait(task_id)[task_id] File "/usr/lib/python3.6/site-packages/koji/tasks.py", line 462, in wait canfail=canfail)) File "/usr/lib/python3.6/site-packages/koji/init.py", line 2408, in call return self.func(self.__name, args, opts) File "/usr/lib/python3.6/site-packages/koji/__init.py", line 2965, in _renew_expired_session return func(self, args, **kwargs) File "/usr/lib/python3.6/site-packages/koji/init.py", line 3009, in _callMethod raise err koji.BuildError: error retrieving sources, mock exited with status 2; see root.log for more information
2023-04-18 09:43:47,997 [INFO] koji.TaskManager: pids: {233: 39001} 2023-04-18 09:43:48,033 [INFO] koji.TaskManager: Task 233 (pid 39001) exited with status 0 2023-04-18 09:43:48,039 [INFO] koji.TaskManager: Expiring subsession 681 (task 233)
You probably have not configured allowed sources and default srpm build method. If it is based on centos, you're probably using some centpkg variant, but it really depends on your/openanolis system.
centpkg
All the problems have been solved. thanks all. The issues i closed.
Metadata Update from @zhiqifeiyang: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/3774
Please continue any further discussion there.