Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik fails to deploy #391

Closed
natewalck opened this issue Apr 23, 2021 · 2 comments
Closed

Traefik fails to deploy #391

natewalck opened this issue Apr 23, 2021 · 2 comments
Assignees

Comments

@natewalck
Copy link
Contributor

Describe the bug
When attempting to deploy Traefik chart using a iX Cert issued by Let's Encrypt, an error occurs.
To Reproduce
Steps to reproduce the behavior:

  1. Go to Apps
  2. Click on Install under Traefik
  3. Select "Enable Web Reverse Proxy"
  4. Select "TrueNAS SCALE Certificate"
  5. Select a Let's Encrypt Certificate
  6. Click next and leave the rest default.

Expected behavior
This should deploy.

Here is the summary before clicking submit:

Application Name: traefik
Version: 3.1.2
Timezone: 'America/New_York' timezone
Enable Web Reverse Proxy: true
Select Entrypoint: Websecure: HTTPS/TLS port 443
Select Certificate Type: TrueNAS SCALE Certificate
Select TrueNAS SCALE Certificate: 'mydomain' Certificate
Expose to Outside: true
Outside Port: 8080
Protocol: TCP
Enable Redirect: true
Target Entrypoint: websecure
UMASK: 002
runAsNonRoot: true
runAsUser: 568
runAsGroup: 568
fsGroup: 568
When should we take ownership?: OnRootMismatch
I understand above warning and its consequences: true
Confirm these settings.

And the error:

[2021/04/22 20:06:16] (ERROR) libzfs.<listcomp>():470 - Failed to retrieve dataset handle for ssd/ix-applications/releases/traefik: dataset does not exist
[2021/04/22 20:06:16] (ERROR) libzfs.<listcomp>():470 - Failed to retrieve dataset handle for ssd/ix-applications/releases/traefik/charts: dataset does not exist
[2021/04/22 20:06:16] (ERROR) libzfs.<listcomp>():470 - Failed to retrieve dataset handle for ssd/ix-applications/releases/traefik/volumes: dataset does not exist
[2021/04/22 20:06:16] (ERROR) libzfs.<listcomp>():470 - Failed to retrieve dataset handle for ssd/ix-applications/releases/traefik/volumes/ix_volumes: dataset does not exist
[2021/04/22 20:06:18] (ERROR) middlewared.job.run():390 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.chart_releases_linux.chart_release.ChartReleaseService object at 0x7ff33073dd30>> failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 378, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 414, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1001, in nf
    return await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 479, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1239, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1207, 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 1111, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/lib/python3/dist-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 603, in helm_action
    raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: W0422 20:06:17.112187  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.116209  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.121074  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.124555  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.128934  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.132969  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.137204  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.140565  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.144690  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.148076  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.152315  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.156407  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.160600  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.164616  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.169415  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0422 20:06:17.173283  978401 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Error: template: traefik/templates/common.yaml:1:3: executing "traefik/templates/common.yaml" at <include "common.ingress" .>: error calling include: template: traefik/charts/common/templates/_ingress.tpl:28:12: executing "common.ingress" at <include "common.classes.ingressRoute" $>: error calling include: template: traefik/charts/common/templates/classes/ingress/_ingressRoute.tpl:73:21: executing "common.classes.ingressRoute" at <index $values.hosts 0>: error calling index: reflect: slice index out of range

@natewalck natewalck added the bug Something isn't working label Apr 23, 2021
@Ornias1993
Copy link
Member

Hostnames are always required gor reverse proxy. (Which afaik is stated in the manual, but also basic knowhow about reverse proxies)
You do not seem to have one added, hence it fails.

Sadly enough we cannot make the hostname field required atm due to issues at iX’s side of things.

@Ornias1993
Copy link
Member

Moving to support discussion, as this is not a bug.

@Ornias1993 Ornias1993 removed the bug Something isn't working label Apr 23, 2021
@Ornias1993 Ornias1993 self-assigned this Apr 23, 2021
@truecharts truecharts locked and limited conversation to collaborators Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants