truecharts / public

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

[Soft-serve] - Expected the key [enabled] in [persistence.repo] to exist upon installation #21461

Closed jkatsaros closed 6 months ago

jkatsaros commented 6 months ago

chart Name

Soft-serve

Operating System

TrueNAS SCALE 24.04.0

Deployment Method

TrueNAS SCALE charts

Chart Version

7.0.4

Kubernetes Events

This error occurs upon installation, so I'm unable to obtain these events.

chartlication Logs

This error occurs upon installation, though here's a copy of the information provided in the error dialog:

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 469, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 511, in __run_body
    rv = await self.method(*args)
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 210, in nf
    rv = await func(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 47, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 187, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 495, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1564, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1428, 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 1321, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 49, in helm_action
    raise CallError(f'Failed to {tn_action} App: {errmsg}')
middlewared.service_exception.CallError: [EFAULT] Failed to install App: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /etc/rancher/k3s/k3s.yaml
Error: INSTALLATION FAILED: execution error at (soft-serve/templates/common.yaml:11:3): Pod Security Context - Expected the key [enabled] in [persistence.repo] to exist


### Chart Configuration

I left all the configuration as the default values when installing this application.

### Describe the bug

Upon trying to install the `Soft-serve` application for the first time, I receive the error: `Expected the key [enabled] in [persistence.repo] to exist`, which prevents the application from being installed.

### To Reproduce

1. Navigate to your TrueNAS SCALE dashboard
2. Select "Apps"
3. Select "Discover Apps"
4. Use the search bar to search the `Soft-serve` applciation in the `stable` train
5. Select the `Soft-serve` application
6. Select "Install"
7. Scroll down to the bottom of the installation wizard page, leaving all the settings as their default values
8. Select "Install"
9. The installation should fail with the `Expected the key [enabled] in [persistence.repo] to exist` error, preventing installation of the `Soft-serve` application

### Expected Behavior

I haven't encountered this issue with any of my other applications before, so the default values provided in the installation wizard page should be valid, not result in an error, and allow me to install the application.

### Screenshots

Screenshots provided in the configuration portion of this issue since I am unable to install the application, and the error occurs during installation.

### Additional Context

I tried installing this application in previous versions of TrueNAS SCALE with the same result. This appears to be similar to other issues about a mismatch in questions.yaml and values.yaml.

### I've read and agree with the following

- [X] I've checked all open and closed issues and my issue is not there.
- [X] I've prefixed my issue title with `[Chart-Name]`
truecharts-admin commented 3 weeks 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