Skip to main content
NetApp Knowledge Base

XCP Error: RuntimeWarning: coroutine '_scandir_tree' was never awaited

Last Updated:

Applies to

  • XCP SMB 1.9.2


 The following error can be seen in xcp.log

--- Logging error ---
Traceback (most recent call last):
  File "multiprocessing\", line 802, in _callmethod
AttributeError: 'ForkAwareLocal' object has no attribute 'connection'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "xcp\", line 280, in emit
  File "xcp\", line 260, in addMsgToQueue
  File "<string>", line 2, in put_nowait
  File "multiprocessing\", line 806, in _callmethod
  File "multiprocessing\", line 793, in _connect
  File "multiprocessing\", line 505, in Client
  File "multiprocessing\", line 707, in PipeClient
FileNotFoundError: [WinError 2] The system cannot find the file specified
Call stack:
  File "", line 506, in _warn_unawaited_coroutine
  File "", line 109, in _showwarnmsg
  File "logging\", line 2204, in _showwarning
  File "logging\", line 1458, in warning
  File "logging\", line 1589, in _log
  File "logging\", line 1599, in handle
  File "logging\", line 1661, in callHandlers
  File "logging\", line 952, in handle
  File "xcp\", line 288, in emit
Message: "sys:1: RuntimeWarning: coroutine '_scandir_tree' was never awaited\n"

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.


  • Was this article helpful?