Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors
Filter by Categories

ACI

AI

Business

Edu

health

homelab

kids

Python

spon

Tech Blogs

Uncategorized

voip

VXLAN

Work Notes

truenas Apps fail to start after restoring a pool or hardware change

If you get a message like this when you unset and set your app pool, this is your lucky day:

image658×649 18.7 KB

Symptom: You get “Apps Service Stopped” message and all your apps have disappeared. You try to unset the pool and set the pool for the apps and same problem. If you mouse over the error message, it shows something like: “Application(s) have failed to start: Command ‘(‘mount’, ‘-t’, ‘zfs’, ‘main/ix-applications/k3s/kubelet’, ‘/var/lib/kubelet’)’ returned non-zero exit status”

Cause: is that for some weird reason the mountpoint property for /ix-applications/k3s/kubelet was set to something other than legacy. So a command to mount kubelet on /var/lib/kubelet will fail. Could be you changed your ethernet port for example.

Code fix
The fix in the code is simply to set the mountpoint property to legacy before calling the mount. So it’s a one line code fix to a problem that has been affecting people for at least two years now (for example see this post 6). I reported this and the workaround fix in Bug NAS-128555 10

Workaround in meantime
In the meantime, here’s the fast and easy fix for users that survives reboot:

  1. CLI: sudo zfs set mountpoint=legacy main/ix-applications/k3s/kubelet
  2. GUI: Unset pool. Then set it back to your normal pool for apps.
  3. You will see “App service starting” instead of the error.
  4. Then you will wait and see NO apps! But that is a head fake.
  5. Refresh the web page and you will see all your apps are back!

Save your config now that it works

ref: https://forums.truenas.com/t/solved-apps-fail-to-start-after-restoring-a-pool-or-hardware-change/2756


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *