truecharts / public

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

Traefik install namepsaces "tc-system" not found #9538

Closed AndyW22 closed 1 year ago

AndyW22 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

N/A

Application Configuration

Default configuration

Describe the bug

When trying to install traefik with default config, gives error: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: namespaces "tc-system" not found

To Reproduce

  1. Delete any installation of Traefik
  2. Install latest version (0.11) with default config

Expected Behavior

It installs without an error

Screenshots

image

Additional Context

Error logs:

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: namespaces "tc-system" not found

Tried running:

k3s kubectl apply --server-side --force-conflicts -k https://github.com/truecharts/manifests/manifests

After a restart, the issue still persisted.

I've read and agree with the following

PrivatePuffin commented 1 year ago

Fixed. Update, edit or install of any chart other than traefik should apply the fix for traefik install.

truecharts-admin commented 1 year ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists