truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.15k stars 618 forks source link

Traefik will not install due to CRDs error #9540

Closed kqmaverick closed 1 year ago

kqmaverick commented 1 year ago

App Name

Traefik

SCALE Version

22.12.2

App Version

2.10.1_18.0.11

Application Events

N/A

Application Logs

M/A

Application Configuration

All configurations default except changing ports to 80/443 for entry. I have tried with Prometheus Metrics both enabled and disabled. I have installed prometheus operator to confirm that is not cause of error.

Describe the bug

[EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "traefik-dashboard" namespace: "" from "": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1" ensure CRDs are installed first

To Reproduce

  1. Start new TrueNAS System (I am using a VM)
  2. Attempt to install Traefik

Expected Behavior

Traefik installation completes without error.

Screenshots

image

Additional Context

I have completed other applications installs as suggested and they are fine but the CRDs error remains.

 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: unable to build kubernetes objects from release manifest: resource mapping not found for name: "traefik-dashboard" namespace: "" from "": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1"
ensure CRDs are installed first

I've read and agree with the following

PrivatePuffin commented 1 year ago

Fixed, caused by traefik changing CRD api name

Mic12321 commented 1 year ago

I have the same issue with the version 2.10.1_18.0.15. May I ask what I should do? Error messages are stated below.

Error [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "traefik" namespace: "" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" ensure CRDs are installed first

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: unable to build kubernetes objects from release manifest: resource mapping not found for name: "traefik" namespace: "" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" ensure CRDs are installed first

PrivatePuffin commented 1 year ago

This is a completely different and unrelated error. Don't bump old closed issues unless you at least completely read them