truecharts / public

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

automatic-music-downloader "can't evaluate field ports in type string" #1917

Closed brothergomez closed 2 years ago

brothergomez commented 2 years ago

App Name

automatic-music-downloader

SCALE Version

22.02-RC2

App Version

0.01

Application Events

App doesn't install, so no events.

Application Logs

The app doesn't install so I'm unable to access logs via the gui. I'm also unsure how to view the kubernetes logs?

Application Configuration

Version: 0.0.1
:
Show Advanced Controller Settings: false
Show Expert Configuration Options: false
Image Environment:
Timezone: 'Europe/London' timezone
UMASK: 002
PUID: 568
Auto Start: true
Script Interval: 1h
Download Mode: Only missing/cutoff
Fallback Search: true
LIST: missing + cutoff
Search Type: Artist + fuzzy searching.
Concurrency: 1
Embedded Cover Quality: 80
Format: MP3
Bit Rate: 128
Enable Postprocessing: true
Force Convert: true
Require Quality: true
Match Distance: 10
Replay Gain: true
Folder Permissions: 766
File Permissions: 666
Mbrainz Mirror: https://musicbrainz.org
Mb Rate Limit: 1
Lidarr Url: <my-lidarr-url>
Lidarr Api Key: <my-lidarr-api-key>
ARL Token: <my-arltoken>
Notify PLEX: false
Album Type Filter: COMPILE
Post Process Threads: 1
Show Expert Config: false
Show Expert Config: false
Integrated Persistent Storage:
App Config Storage:
Type of Storage: PVC (simple)
readOnly: false
Show Advanced Options: false
App Data Storage:
Type of Storage: PVC (simple)
readOnly: false
Show Advanced Options: false
Additional app storage: 1
Show Advanced Security Settings: false
Pod Security Context:
runAsUser: 0
runAsGroup: 0
fsGroup: 568
When should we take ownership?: OnRootMismatch
Set Custom Resource Limits/Requests (Advanced): false
:
VPN:
Type: disabled
Codeserver:
enabled: false
Promtail:
enabled: false
Netshoot:
enabled: false
(Advanced) Horizontal Pod Autoscaler:
enabled: false
(Advanced) Network Policy:
enabled: false
Confirm these settings.

Describe the bug

On confirming the application options, the following error is thrown:

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 409, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 445, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1137, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1269, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 567, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1324, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1292, 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 1192, 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/chart_release.py", line 690, 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: template: automatic-music-downloader/templates/common.yaml:1:3: executing "automatic-music-downloader/templates/common.yaml" at <include "common.all" .>: error calling include: template: automatic-music-downloader/charts/common/templates/_all.tpl:9:6: executing "common.all" at <include "common.postSetup" .>: error calling include: template: automatic-music-downloader/charts/common/templates/_postSetup.tpl:60:5: executing "common.postSetup" at <include "common.configmap.portal" .>: error calling include: template: automatic-music-downloader/charts/common/templates/configmaps/_portal.tpl:6:39: executing "common.configmap.portal" at <$primaryService.ports>: can't evaluate field ports in type string

I don't know what this means, but appears to be some problem with including common.yaml?

To Reproduce

  1. Add incubator train.
  2. Find automatic-music-downloader
  3. Fill out relevant app info
  4. Try to install.

Expected Behavior

The app installs successfully

Screenshots

error

Additional Context

I made this PR and am testing for the first time since merge to master, however I have come across this error and am not familiar enough with the system to know what is happening / what the error is. I have managed to build and install the docker image with the same settings, so don't know how to proceed.

brothergomez commented 2 years ago

Fixed by #1918

PrivatePuffin commented 2 years ago

👍

PrivatePuffin commented 2 years ago

@all-contributors please add @brothergomez for bugs and code

allcontributors[bot] commented 2 years ago

@Ornias1993

I've put up a pull request to add @brothergomez! :tada:

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