truecharts / public

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

[valheim] valheim app fails to install - no ports enabled #1325

Closed hugocowan closed 2 years ago

hugocowan commented 2 years ago

INSTALLATION FAILED: execution error at (valheim/templates/common.yaml:16:3): No ports are enabled for service "%!s()"!

SCALE version TrueNAS-SCALE-22.02-RC.1-1

App Version 1.0.7

Application Events

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 382, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 418, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1131, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1263, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 553, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1310, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1278, 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 1182, 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 674, 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: execution error at (valheim/templates/common.yaml:16:3): No ports are enabled for service "%!s(<nil>)"!

Application Configuration

Application Name: valheim
Version: 1.0.7
:
Show Advanced Controller Settings: false
Show Expert Configuration Options: false
Image Environment:
Timezone: 'Europe/London' timezone
UMASK: 002
SERVER_PUBLIC: true
SUPERVISOR_HTTP: true
SUPERVISOR_HTTP_USER: admin
SUPERVISOR_HTTP_PASS: mysecretpassword
SERVER_NAME: My Server
WORLD_NAME: Dedicated
SERVER_PASS: myothersecretpassword
SERVER_PUBLIC: true
UPDATE_INTERVAL: 10800
BACKUPS: true
BACKUPS_INTERVAL: 43200
BACKUPS_DIRECTORY: /backups
BACKUPS_MAX_AGE: 3
Show Expert Config: false
Configure Service(s):
Main Service:
Service Type: Simple
Service's Port(s) Configuration:
Main Service Port Configuration:
Show Advanced settings: false
Container Port: 9010
supervisor Service:
Service Type: Simple
Service's Port(s) Configuration:
supervisor Service Port Configuration:
Show Advanced settings: false
Container Port: 9011
valheim Service:
Service Type: Simple
Service's Port(s) Configuration:
valheim-1 Service Port Configuration:
Show Advanced settings: false
Container Port: 2456
valheim-2 Service Port Configuration:
Show Advanced settings: false
Container Port: 2457
valheim-3 Service Port Configuration:
Show Advanced settings: false
Container Port: 2458
Show Expert Config: false
Integrated Persistent Storage:
App Config Storage:
Type of Storage: PVC (simple)
readOnly: false
Show Advanced Options: false
App backups Storage:
Type of Storage: PVC (simple)
readOnly: false
Show Advanced Options: false
:
Main Ingress:
Enable Ingress: false
Show Expert Configuration Options: false
supervisor Ingress:
Enable Ingress: false
Show Expert Configuration Options: false
Show Advanced Security Settings: false
Pod Security Context:
runAsUser: 0
runAsGroup: 0
fsGroup: 568
When should we take ownership?: OnRootMismatch
GPU Configuration:
GPU Resource (gpu.intel.com/i915): Allocate 0 gpu.intel.com/i915 GPU
GPU Resource (nvidia.com/gpu): Allocate 0 nvidia.com/gpu GPU
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

Describe the bug Attempting to install the valheim server app with above settings results in an error, also shown above

To Reproduce Attempt to install the valheim app. Add a server password and an admin password and leave everything else at default values.

Expected behavior It should install with the required values filled and all other values left as default.

PrivatePuffin commented 2 years ago

Should already be fixed on master, fix should be available on patch tuesday.

hugocowan commented 2 years ago

Thanks for the info and for your hard work!

hugocowan commented 2 years ago

Hi @Ornias1993 , this issue appears to still be happening with the 1.0.8 release of valheim server. All settings default, passwords filled. You can see the config used in the first post.

PrivatePuffin commented 2 years ago

@hugocowan Indeed, I assummed it was on the to-do list of @stavros-k for this weekend, but it seems to still be on the to-do list for one of the following cleanup-weeks

stavros-k commented 2 years ago

Yea it will take couple more days for sure. Sorry for the delay.

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