Why can't I install any apps?

alieg

Dabbler
Joined
Jul 12, 2013
Messages
44
I am trying to install some apps but they keep failing.

[EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: timed out waiting for the condition

My System:
Version: TrueNAS-13.0-U4
Version: TrueNAS-SCALE-22.12.1
CPU: Intel(R) Core(TM) i5-3470T CPU @ 2.90GHz
RAM: 12GB
Disk: 1TB
Available Space: 871.76GiB
 
Last edited:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Are you running Core or Scale? You posted in the Scale section of the forum, but your version appears to be Core, which doesn't run TrueCharts apps.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Further, even if you are using SCALE, (or will change to SCALE), your memory is a bit tight. The more or less minimum is 16GBs not taking into account any Apps, VMs, (or CORE jails).
 

alieg

Dabbler
Joined
Jul 12, 2013
Messages
44
Sorry, I copied over my info from another thread. My version is TrueNAS-SCALE-22.12.1

Tbh, I just want to run HomeAssistant, I'm not too bothered by much else. I just want to get that working and go from there.

This is the error with more info:

[EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition

Code:
 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 426, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 461, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1186, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1318, 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 1386, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1346, 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 1249, 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: failed pre-install: timed out waiting for the condition
 
Last edited:

alieg

Dabbler
Joined
Jul 12, 2013
Messages
44
Call it a stab in the dark, but could this be caused by anything network related, specifically ipv6?
I have AdguardHome on my router and something I struggled with at first was trying to stop some of my devices from using their inbuilt DNS (google's, hence still seeing ads) because they fell back/preferred using ipv6. I say this because I seem to be having issues that hint at external networking even though it can ping to the outside world.

(see my other post about not being able to download the update)

I think anything that tries to connect via ipv4 is fine and gets through but as soon as it tries with ipv6 it isn't set up quite right and fails, hence why I'm seeing errors with downloads and by extension installation failure - that's my theory anyway.

I tried changing to Angelfish and I'm getting this error:

Code:
Failed to configure kubernetes cluster for Applications: [EFAULT] Docker service is not running

NTP health check failed - No Active NTP peers: [{'193.150.34.2': 'REJECT'}, {'129.250.35.250': 'REJECT'}, {'81.130.79.209': 'REJECT'}, {'103.214.44.30': 'REJECT'}, {'176.58.109.199': 'REJECT'}, {'162.159.200.123': 'REJECT'}, {'178.79.143.32': 'REJECT'}]
 
Last edited:

alieg

Dabbler
Joined
Jul 12, 2013
Messages
44
Back on Bluefin, I'm trying to remove IPV6 from the equation if that is part of the issue (removed as a default gateway in global networking and unchecked auto configure IPV6)

These are all of my networking settings for the nas and apps, which I think are how they're supposed to be. The app install gets to 75% and then fails.

I managed to install Plex but I left it overnight and it was still stuck Deploying in the morning so I deleted it, but still no further progress on the Home Assistant app, which I'm installing with default settings.

I cant find a way to find any more detail on why it's failing and how to fix it.

I've submitted a ticket on Jira.


Screenshot_20230411-102131.jpg
Screenshot_20230411-102559.jpg
Screenshot_20230411-105906.jpg
Screenshot_20230411-110256.jpg
Screenshot_20230411-151735.jpg
 

Attachments

  • Screenshot_20230411-151735.jpg
    Screenshot_20230411-151735.jpg
    45.8 KB · Views: 204
Last edited:
Joined
May 8, 2023
Messages
2
Found this answer by @alugowski on this thread while searching for an answer to this same problem. Definitely not a hadrware issue for me, I have 64 GB of RAM and an i7-8700, which generally sit at about 67.7 GB free and 1% average usage respectively. I eventually found this answer on a different thread which solved the issue. Basically, you have to go to Apps > Settings > Advanced Settings and configure Kubernetes by entering the Node IP (the default 0.0.0.0 worked for me), the Route v4 Interface (choose whichever NIC you want the apps to use from the list), and Route v4 Gateway (generally, the IP address for the same router as your NAS system itself). You'd think these would get set automatically, but for some reason they do not and nothing in the error or anything else seems to explain the problem.

1683593302091.png

1683593334856.png
 

alieg

Dabbler
Joined
Jul 12, 2013
Messages
44
I already have those as my settings (as in a screenshot above)
 

Mosq1to

Cadet
Joined
Apr 5, 2023
Messages
5
i checked the Container Application Events while installing and got this:

Failed to pull image "tccr.io/truecharts/kubectl:v1.26.0@sha256:323ab7aa3e7ce84c024df79d0f364282c1135499298f54be2ade46508a116c4b": rpc error: code = Unknown desc = error pulling image configuration: download failed after attempts=6: x509: certificate has expired or is not yet valid: current time 2023-07-25T19:39:32+02:00 is after 2023-07-24T17:18:17Z

Then i checked my system time and it was off, fixed it and reboot.
After reboot i hade issues with kubernetes not running so i fixed with:
  • Pool unset and reset
  • Reboot
according to: https://www.truenas.com/community/threads/solved-kubernetes-service-is-not-running.107377/

issue resolved
 
Top