When we access the “machines” interface, an error is raised: “(‘Connection aborted.’, FileNotFoundError(2, ‘No such file or directory’))”.
This is a new installation of MAAS 3.5.
Looking at logs, we get this stack trace:
Jul 18 13:17:31 maas-regiond01 regiond[7023]: Traceback (most recent call last):
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3.10/threading.py", line 953, in run
Jul 18 13:17:31 maas-regiond01 regiond[7023]: self._target(*self._args, **self._kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 821, in worker
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return target()
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 47, in work
Jul 18 13:17:31 maas-regiond01 regiond[7023]: task()
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 182, in doWork
Jul 18 13:17:31 maas-regiond01 regiond[7023]: task()
Jul 18 13:17:31 maas-regiond01 regiond[7023]: --- <exception caught here> ---
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 244, in inContext
Jul 18 13:17:31 maas-regiond01 regiond[7023]: result = inContext.theWork() # type: ignore[attr-defined]
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 260, in <lambda>
Jul 18 13:17:31 maas-regiond01 regiond[7023]: inContext.theWork = lambda: context.call( # type: ignore[attr-defined]
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return func(*args, **kw)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 856, in callInContext
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return func(*args, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
Jul 18 13:17:31 maas-regiond01 regiond[7023]: result = func(*args, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 771, in call_within_transaction
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return func_outside_txn(*args, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 574, in retrier
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return func(*args, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3.10/contextlib.py", line 79, in inner
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return func(*args, **kwds)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 431, in prep_user_execute
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return self._call_method_track_queries(
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 477, in _call_method_track_queries
Jul 18 13:17:31 maas-regiond01 regiond[7023]: result = method(params)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 359, in list
Jul 18 13:17:31 maas-regiond01 regiond[7023]: res = self._list_sqlalchemy(params)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 356, in _list_sqlalchemy
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return self.api_client.post("machines", json=res).json()
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasapiserver/client.py", line 32, in post
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return self.request("POST", path, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/maasapiserver/client.py", line 26, in request
Jul 18 13:17:31 maas-regiond01 regiond[7023]: return self.session.request(verb, url, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 544, in request
Jul 18 13:17:31 maas-regiond01 regiond[7023]: resp = self.send(prep, **send_kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 657, in send
Jul 18 13:17:31 maas-regiond01 regiond[7023]: r = adapter.send(request, **kwargs)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send
Jul 18 13:17:31 maas-regiond01 regiond[7023]: raise ConnectionError(err, request=request)
Jul 18 13:17:31 maas-regiond01 regiond[7023]: requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
Which file is not found? The error message is not clear.