Truenas 404 Client Error for http+docker://localhost/v1.52/containers/

When I go to my apps after the upgrade to 26.0.0-BETA.1

VM in proxmox, host, the apps are running, I can access them but can not see them in the apps or refresh the catalog.
What do I do first?

Validation Error

404 Client Error for http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json: Not Found (“No such container: 2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d”)

View Details

Error Name: EINVAL
Error Code: 22
Reason: 404 Client Error for http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json: Not Found (“No such container: 2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d”)
Error Class: NotFound

|

Error Name: EINVAL
Error Code: 22
Reason: 404 Client Error for http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json: Not Found (“No such container: 2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d”)
Error Class: NotFound
Trace: Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 275, in _raise_for_status
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “/usr/lib/python3/dist-packages/requests/models.py”, line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py”, line 387, in process_method_call
result = await method.call(app, id_, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py”, line 57, in call
result = await self.middleware.call_with_audit(self.name, self.serviceobj, methodobj, params, app,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
message_id=id_)
^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1118, in call_with_audit
result = await self._call(method, serviceobj, methodobj, params, app=app,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
audit_callback=audit_callback_messages.append, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 945, in _call
return await self.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<4 lines>…
)
^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 798, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py”, line 217, in wrapped
result = func(*args)
File “/usr/lib/python3/dist-packages/middlewared/plugins/catalog/apps.py”, line 45, in available
for app in self.middleware.call_sync(‘app.query’)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1307, in call_sync
return methodobj(*prepared_call.args)
File “/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py”, line 217, in wrapped
result = func(*args)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 73, in query
apps = list_apps(available_apps_mapping, **kwargs)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/query.py”, line 97, in list_apps
for app_name, app_resources in list_resources_by_project(
~~~~~~~~~~~~~~~~~~~~~~~~~^
project_name=f’{PROJECT_PREFIX}{specific_app}’ if specific_app else None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
).items():
^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/docker/query.py”, line 13, in list_resources_by_project
return list_resources_by_project_internal(project_name)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/docker/query.py”, line 23, in list_resources_by_project_internal
containers = client.containers.list(all=True, filters=label_filter, sparse=False)
File “/usr/lib/python3/dist-packages/docker/models/containers.py”, line 1018, in list
containers.append(self.get(r[‘Id’]))
~~~~~~~~^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/models/containers.py”, line 954, in get
resp = self.client.api.inspect_container(container_id)
File “/usr/lib/python3/dist-packages/docker/utils/decorators.py”, line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File “/usr/lib/python3/dist-packages/docker/api/container.py”, line 793, in inspect_container
return self._result(
~~~~~~~~~~~~^
self._get(self._url(“/containers/{0}/json”, container)), True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 281, in _result
self._raise_for_status(response)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 277, in _raise_for_status
raise create_api_error_from_http_exception(e) from e
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
File “/usr/lib/python3/dist-packages/docker/errors.py”, line 39, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation) from e
docker.errors.NotFound: 404 Client Error for http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json: Not Found (“No such container: 2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d”)

Sounds like the .ix-apps dataset didn’t mount. You may need to reselect the apps pool.

2 Likes

I think i got further, its not saying failed to start anymore, However I have this still. and none of my apps show as installed. But they are still running. via docker ps

[code]
404 Client Error for http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json: Not Found (“No such container: 2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d”)
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 275, in _raise_for_status
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “/usr/lib/python3/dist-packages/requests/models.py”, line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py”, line 387, in process_method_call
result = await method.call(app, id_, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py”, line 57, in call
result = await self.middleware.call_with_audit(self.name, self.serviceobj, methodobj, params, app,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
message_id=id_)
^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1118, in call_with_audit
result = await self._call(method, serviceobj, methodobj, params, app=app,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
audit_callback=audit_callback_messages.append, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 945, in _call
return await self.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<4 lines>…
)
^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 798, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py”, line 217, in wrapped
result = func(*args)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 73, in query
apps = list_apps(available_apps_mapping, **kwargs)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/query.py”, line 97, in list_apps
for app_name, app_resources in list_resources_by_project(
~~~~~~~~~~~~~~~~~~~~~~~~~^
project_name=f’{PROJECT_PREFIX}{specific_app}’ if specific_app else None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
).items():
^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/docker/query.py”, line 13, in list_resources_by_project
return list_resources_by_project_internal(project_name)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/docker/query.py”, line 23, in list_resources_by_project_internal
containers = client.containers.list(all=True, filters=label_filter, sparse=False)
File “/usr/lib/python3/dist-packages/docker/models/containers.py”, line 1018, in list
containers.append(self.get(r[‘Id’]))
~~~~~~~~^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/models/containers.py”, line 954, in get
resp = self.client.api.inspect_container(container_id)
File “/usr/lib/python3/dist-packages/docker/utils/decorators.py”, line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File “/usr/lib/python3/dist-packages/docker/api/container.py”, line 793, in inspect_container
return self._result(
~~~~~~~~~~~~^
self._get(self._url(“/containers/{0}/json”, container)), True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 281, in _result
self._raise_for_status(response)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 277, in _raise_for_status
raise create_api_error_from_http_exception(e) from e
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
File “/usr/lib/python3/dist-packages/docker/errors.py”, line 39, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation) from e
docker.errors.NotFound: 404 Client Error for http+docker://localhost/v1.52/containers/2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d/json: Not Found (“No such container: 2672d0c3ad162f90e555dfe6d00221bbbed2bf178e2cc9d44f889c562618181d”)
[/code]

Have you tried just redeploying?

What do you mean? I have working apps, that are running via cli, but not showing in the webUI,

I have rebooted the system, same error and now Available Apps is 0 Refresh Catalog gives the pop up error again.

Eh, it’s a beta. Go ahead and submit a bug report.

2 Likes

It seems to be network settings related, but I’m not 100 as to what I did tat made the catalog show more than 0 at one point. But even then the apps are hidden in the UI but are active in the background.

I got the 404 issue fixed, but the ui still doesnt show my running docker apps. they are running via sudo docker ps

the UI doesnt know they are installed.

I did another reboot after that 404 thing stopped. I had to manually move my non active/ dead containers to home folder and then it stopped the 404 thing, The 404 fix also fixed the catalog showing 0 instead of the 300+ apps.

But after waiting another hour or more I checked the web apps UI and all my apps are back.