Truecharts - Xen-orchestra - template issue

Hi All,

Im trying to install the latest truecharts version of Xen Orchestra on TrueNAS-SCALE-22.12.3.2.
The version of the application is: 5.132.0_7.2.0
When i install with host paths or PVC i get the following error:

 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 428, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 463, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1246, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1378, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 486, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1395, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1355, 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 1258, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action
    raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: template: xen-orchestra/templates/common.yaml:1:3: executing "xen-orchestra/templates/common.yaml" at <include "tc.v1.common.loader.all" .>: error calling include: template: xen-orchestra/charts/common/templates/loader/_all.tpl:6:6: executing "tc.v1.common.loader.all" at <include "tc.v1.common.loader.apply" .>: error calling include: template: xen-orchestra/charts/common/templates/loader/_apply.tpl:47:6: executing "tc.v1.common.loader.apply" at <include "tc.v1.common.spawner.pvc" .>: error calling include: template: xen-orchestra/charts/common/templates/spawner/_pvc.tpl:25:10: executing "tc.v1.common.spawner.pvc" at <include "tc.v1.common.lib.persistence.validation" (dict "rootCtx" $ "objectData" $objectData)>: error calling include: template: xen-orchestra/charts/common/templates/lib/storage/_validation.tpl:18:43: executing "tc.v1.common.lib.persistence.validation" at <$objectData.static.mode>: nil pointer evaluating interface {}.mode

Has anyone got any insights how i can fix this?

I used truecharts in the beginning and it was nothing but a headache and constantly breaking. If it were me I’d install the container manually from docker.

https://hub.docker.com/r/ronivay/xen-orchestra

1 Like

Thanks. Will have a go at installing it manually. Not touched Kubernetes so should be a learning curve for me

It isn’t too bad.

  1. Create datasets for persistent storage
    a. xoserver dataset
    b. redis dataset
  2. Navigate to https://(host)/ui/apps/available/TRUENAS/charts/ix-chart/install
    a. Application Name = xen-orchestra
    b. Image repository = ronivay/xen-orchestra
    c. port forward -
    container port = 80
    node port = (insert available port from host)
    protocol = TCP protocol
    d. Storage - host path volume
    host path = /path/to/xoserver Mount path = /var/lib/xo-server
    host path = /path/to/redis Mount path = /var/lib/redis
    e. Portal Configuration
    Enable WebUI Portal = :white_check_mark:
    Port = (insert available port from earlier)
1 Like

Perfect. Thank you. This worked a treat