Bug 15492 - Exception: asyncio.exceptions.TimeoutError during grep-3.11-r0's do_packagedata task
Summary: Exception: asyncio.exceptions.TimeoutError during grep-3.11-r0's do_packageda...
Status: RESOLVED OBSOLETE
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 arm64
: Undecided normal
Target Milestone: 0.0.0
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-05-24 09:41 UTC by João Marcos Costa
Modified: 2024-05-30 14:34 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Marcos Costa 2024-05-24 09:41:08 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6441/steps/11/logs/stdio

ERROR: grep-3.11-r0 do_packagedata: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_report_unihash(d)
     0003:
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/classes-global/sstate.bbclass', lineno: 933, function: sstate_report_unihash
     0929:    report_unihash = getattr(bb.parse.siggen, 'report_unihash', None)
     0930:
     0931:    if report_unihash:
     0932:        ss = sstate_state_fromvars(d)
 *** 0933:        report_unihash(os.getcwd(), ss['task'], d)
     0934:}
     0935:
     0936:#
     0937:# Shell function to decompress and prepare a package for installation
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/siggen.py', lineno: 831, function: report_unihash
     0827:                if tid in self.extramethod:
     0828:                    method = method + self.extramethod[tid]
     0829:
     0830:                with self.client() as client:
 *** 0831:                    data = client.report_unihash(taskhash, method, outhash, unihash, extra_data)
     0832:
     0833:                new_unihash = data['unihash']
     0834:
     0835:                if new_unihash != unihash:
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py', lineno: 225, function: wrapper
     0221:        pass
     0222:
     0223:    def _get_downcall_wrapper(self, downcall):
     0224:        def wrapper(*args, **kwargs):
 *** 0225:            return self.loop.run_until_complete(downcall(*args, **kwargs))
     0226:
     0227:        return wrapper
     0228:
     0229:    def _add_methods(self, *methods):
File: '/usr/lib/python3.10/asyncio/base_events.py', lineno: 649, function: run_until_complete
     0645:            future.remove_done_callback(_run_until_complete_cb)
     0646:        if not future.done():
     0647:            raise RuntimeError('Event loop stopped before Future completed.')
     0648:
 *** 0649:        return future.result()
     0650:
     0651:    def stop(self):
     0652:        """Stop running the event loop.
     0653:
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/hashserv/client.py', lineno: 103, function: report_unihash
     0099:        m["taskhash"] = taskhash
     0100:        m["method"] = method
     0101:        m["outhash"] = outhash
     0102:        m["unihash"] = unihash
 *** 0103:        return await self.invoke({"report": m})
     0104:
     0105:    async def report_unihash_equiv(self, taskhash, method, unihash, extra={}):
     0106:        m = extra.copy()
     0107:        m["taskhash"] = taskhash
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/hashserv/client.py', lineno: 51, function: invoke
     0047:    async def invoke(self, *args, **kwargs):
     0048:        # It's OK if connection errors cause a failure here, because the mode
     0049:        # is also reset to normal on a new connection
     0050:        await self._set_mode(self.MODE_NORMAL)
 *** 0051:        return await super().invoke(*args, **kwargs)
     0052:
     0053:    async def _set_mode(self, new_mode):
     0054:        async def stream_to_normal():
     0055:            await self.socket.send("END")
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py', lineno: 188, function: invoke
     0184:        async def proc():
     0185:            await self.socket.send_message(msg)
     0186:            return await self.socket.recv_message()
     0187:
 *** 0188:        result = await self._send_wrapper(proc)
     0189:        self.check_invoke_error(result)
     0190:        return result
     0191:
     0192:    async def ping(self):
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py', lineno: 162, function: _send_wrapper
     0158:    async def _send_wrapper(self, proc):
     0159:        count = 0
     0160:        while True:
     0161:            try:
 *** 0162:                await self.connect()
     0163:                return await proc()
     0164:            except (
     0165:                OSError,
     0166:                ConnectionError,
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py', lineno: 147, function: connect
     0143:        return self.server_headers.get(tag, default)
     0144:
     0145:    async def connect(self):
     0146:        if self.socket is None:
 *** 0147:            self.socket = await self._connect_sock()
     0148:            await self.setup_connection()
     0149:
     0150:    async def disconnect(self):
     0151:        if self.socket is not None:
File: '/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py', lineno: 114, function: connect_sock
     0110:                f"Websockets version {websockets.__version__} is less than minimum required version {min_ver_str}"
     0111:            )
     0112:
     0113:        async def connect_sock():
 *** 0114:            websocket = await websockets.connect(uri, ping_interval=None)
     0115:            return WebsocketConnection(websocket, self.timeout)
     0116:
     0117:        self._connect_sock = connect_sock
     0118:
File: '/home/pokybuild/buildbot-venv/lib/python3.10/site-packages/websockets/legacy/client.py', lineno: 646, function: __await_impl_timeout__
     0642:        # Create a suitable iterator by calling __await__ on a coroutine.
     0643:        return self.__await_impl_timeout__().__await__()
     0644:
     0645:    async def __await_impl_timeout__(self) -> WebSocketClientProtocol:
 *** 0646:        async with asyncio_timeout(self.open_timeout):
     0647:            return await self.__await_impl__()
     0648:
     0649:    async def __await_impl__(self) -> WebSocketClientProtocol:
     0650:        for redirects in range(self.MAX_REDIRECTS_ALLOWED):
File: '/home/pokybuild/buildbot-venv/lib/python3.10/site-packages/websockets/legacy/async_timeout.py', lineno: 169, function: __aexit__
     0165:        exc_type: Optional[Type[BaseException]],
     0166:        exc_val: Optional[BaseException],
     0167:        exc_tb: Optional[TracebackType],
     0168:    ) -> Optional[bool]:
 *** 0169:        self._do_exit(exc_type)
     0170:        return None
     0171:
     0172:    @property
     0173:    def expired(self) -> bool:
File: '/home/pokybuild/buildbot-venv/lib/python3.10/site-packages/websockets/legacy/async_timeout.py', lineno: 252, function: _do_exit
     0248:
     0249:    def _do_exit(self, exc_type: Optional[Type[BaseException]]) -> None:
     0250:        if exc_type is asyncio.CancelledError and self._state == _State.TIMEOUT:
     0251:            self._timeout_handler = None
 *** 0252:            raise asyncio.TimeoutError
     0253:        # timeout has not expired
     0254:        self._state = _State.EXIT
     0255:        self._reject()
     0256:        return None
Exception: asyncio.exceptions.TimeoutError

qemuarm64-ptest ubuntu2204-arm-1
Comment 1 Trevor Gamblin 2024-05-30 14:34:02 UTC
This was an infrastructure issue (related to hashequiv server), so marking as obsolete.