Stuck Initializing Apps Service after updating to Dragonfish-24.04.2

I just updated to Dragonfish 24.04.2 the other day and ever since when I go to “Apps” it shows “Applications are not running” and in the top right shows “Initializing App Service.” This just sticks there indefinitely. I did see a post about a bug in a previous version about descriptions on the network interface causing an issue. I did remove a description I had on my interface and then reboot my server but that doesn’t seem to have fixed anything. Has anyone seen something similar before? I’m a bit lost and any help would be greatly appreciated.

Working through the same issue, but only because my system ended up doing several reboots with the electrical system going on and off after Hurricane Beryl.

First, ,go to your Apps page, and in Settings, choose Unset Pool. Let it do it’s thing, then go back to Settings and select Choose Pool, and select from the pool that you have your apss located. Let it do it’s thing. From here, I was able to get the “Apps Service Running” status.

If the pool didn’t correct your issues, you might have to restart your server several times. I’ve tried both of these in the past, and both have worked at various times.

I just used a combination of both to get my system back up.

Thanks for the suggestion! I am giving this a shot but when going back to settings and choosing my pool iI get another error: ‘NoneType’ object is not subscriptable

 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 469, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 511, in __run_body
    rv = await self.method(*args)
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 47, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 187, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/update.py", line 525, in do_update
    await self.middleware.call('kubernetes.status_change')
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1564, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1428, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1321, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/lifecycle.py", line 272, in status_change
    self.middleware.call_sync('kubernetes.setup_pool')
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1589, in call_sync
    return self.run_coroutine(methodobj(*prepared_call.args))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1629, in run_coroutine
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/lifecycle.py", line 298, in setup_pool
    await self.middleware.call('kubernetes.update_server_credentials', config['dataset'])
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1564, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1428, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1321, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/migrate.py", line 123, in update_server_credentials
    lambda d: 'cluster' in d and 'certificate-authority' in d['cluster'], kubeconfig['clusters']
                                                                          ~~~~~~~~~~^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Is this something you saw by chance and got past?

I just read some of the stuff about Truecharts nuking the repo for apps for Truenas Scale. Could this have something to do with this problem? I was running a number of Truecharts apps.

Is there an option to turn off the Truecharts apps, temporarily, and see? I don’t run apps so I don’t know if that is possible

Not that I can tell. I did try removing the Truecharts repo but so far that hasn’t helped.

Go to Discover apps, click on Manage Catalogs and you can disable or remove the catalog.

Thanks bella, that is what I tried and it did at least clear up a warning about cloning the TrueCharts repo. Unfortunately it didn’t help with apps starting. At this point I’m rebuilding my whole server on another newer piece of hardware and going to try either copying the data over or just bringing the drives / pool into the new system. I’ll have to set my apps back up from scratch but that’s ok at this point.