<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15492</bug_id>
          
          <creation_ts>2024-05-24 09:41:08 +0000</creation_ts>
          <short_desc>Exception: asyncio.exceptions.TimeoutError during grep-3.11-r0&apos;s do_packagedata task</short_desc>
          <delta_ts>2024-05-30 14:34:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="João Marcos Costa">joaomarcos.costa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>tgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99076</commentid>
    <comment_count>0</comment_count>
    <who name="João Marcos Costa">joaomarcos.costa</who>
    <bug_when>2024-05-24 09:41:08 +0000</bug_when>
    <thetext>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: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:sstate_report_unihash(d)
     0003:
File: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/classes-global/sstate.bbclass&apos;, lineno: 933, function: sstate_report_unihash
     0929:    report_unihash = getattr(bb.parse.siggen, &apos;report_unihash&apos;, None)
     0930:
     0931:    if report_unihash:
     0932:        ss = sstate_state_fromvars(d)
 *** 0933:        report_unihash(os.getcwd(), ss[&apos;task&apos;], d)
     0934:}
     0935:
     0936:#
     0937:# Shell function to decompress and prepare a package for installation
File: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/siggen.py&apos;, 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[&apos;unihash&apos;]
     0834:
     0835:                if new_unihash != unihash:
File: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py&apos;, 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: &apos;/usr/lib/python3.10/asyncio/base_events.py&apos;, lineno: 649, function: run_until_complete
     0645:            future.remove_done_callback(_run_until_complete_cb)
     0646:        if not future.done():
     0647:            raise RuntimeError(&apos;Event loop stopped before Future completed.&apos;)
     0648:
 *** 0649:        return future.result()
     0650:
     0651:    def stop(self):
     0652:        &quot;&quot;&quot;Stop running the event loop.
     0653:
File: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/hashserv/client.py&apos;, lineno: 103, function: report_unihash
     0099:        m[&quot;taskhash&quot;] = taskhash
     0100:        m[&quot;method&quot;] = method
     0101:        m[&quot;outhash&quot;] = outhash
     0102:        m[&quot;unihash&quot;] = unihash
 *** 0103:        return await self.invoke({&quot;report&quot;: m})
     0104:
     0105:    async def report_unihash_equiv(self, taskhash, method, unihash, extra={}):
     0106:        m = extra.copy()
     0107:        m[&quot;taskhash&quot;] = taskhash
File: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/hashserv/client.py&apos;, lineno: 51, function: invoke
     0047:    async def invoke(self, *args, **kwargs):
     0048:        # It&apos;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(&quot;END&quot;)
File: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py&apos;, 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: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py&apos;, 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: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py&apos;, 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: &apos;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/bitbake/lib/bb/asyncrpc/client.py&apos;, lineno: 114, function: connect_sock
     0110:                f&quot;Websockets version {websockets.__version__} is less than minimum required version {min_ver_str}&quot;
     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: &apos;/home/pokybuild/buildbot-venv/lib/python3.10/site-packages/websockets/legacy/client.py&apos;, 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) -&gt; WebSocketClientProtocol:
 *** 0646:        async with asyncio_timeout(self.open_timeout):
     0647:            return await self.__await_impl__()
     0648:
     0649:    async def __await_impl__(self) -&gt; WebSocketClientProtocol:
     0650:        for redirects in range(self.MAX_REDIRECTS_ALLOWED):
File: &apos;/home/pokybuild/buildbot-venv/lib/python3.10/site-packages/websockets/legacy/async_timeout.py&apos;, lineno: 169, function: __aexit__
     0165:        exc_type: Optional[Type[BaseException]],
     0166:        exc_val: Optional[BaseException],
     0167:        exc_tb: Optional[TracebackType],
     0168:    ) -&gt; Optional[bool]:
 *** 0169:        self._do_exit(exc_type)
     0170:        return None
     0171:
     0172:    @property
     0173:    def expired(self) -&gt; bool:
File: &apos;/home/pokybuild/buildbot-venv/lib/python3.10/site-packages/websockets/legacy/async_timeout.py&apos;, lineno: 252, function: _do_exit
     0248:
     0249:    def _do_exit(self, exc_type: Optional[Type[BaseException]]) -&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99098</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-05-30 14:34:02 +0000</bug_when>
    <thetext>This was an infrastructure issue (related to hashequiv server), so marking as obsolete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>