haraka pod helm cannot read properties of undefined (reading 'hosts') #523

Closed
opened 2026-04-05 16:20:17 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @paulmena-pulpo on 3/25/2025

Describe the bug
I needed to apply the Slack configuration to my OneUpTime setup with Helm Chart, and now the OneUpTime-Haraka pod keeps restarting.

error code:

.....+.....+.+..+...+....+.................+......+...+....+..+.........+.+......+++++++++++++++++++++++++++++++++++++++*......+..+..........+.....+....+++++++++++++++++++++++++++++++++++++++*............+....+..+...+.........+............................+...+..+............+............+.+........................+...+...+.................+..........+.....+.+..+....+..............+....+..+....+...........+..................+.......+...+...+...+..+...+......+.+..++++++
...+++++++++++++++++++++++++++++++++++++++*..+....+.....+.+...+..+......+...+++++++++++++++++++++++++++++++++++++++*.............+.+..+...+.........++++++
-----
req warning: No value provided for subject name attribute "CN", skipped
IMPORTANT: Add this to your DNS
You need to add this to DNS
Type: TXT
Key: oneuptime._domainkey
v=DKIM1;p=
loaded TLD files:
  1=1445
  2=7548
  3=3661
loaded 9696 Public Suffixes
/usr/local/lib/node_modules/Haraka/connection.js:40
for (const ip of cfg.haproxy.hosts) {
                             ^

TypeError: Cannot read properties of undefined (reading 'hosts')
    at Object.<anonymous> (/usr/local/lib/node_modules/Haraka/connection.js:40:30)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)
    at Object..js (node:internal/modules/cjs/loader:1899:10)
    at Module.load (node:internal/modules/cjs/loader:1469:32)
    at Function._load (node:internal/modules/cjs/loader:1286:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/Haraka/server.js:14:21)

Node.js v23.8.0

To Reproduce
Steps to reproduce the behavior:

  1. Go to just update helm chart

Expected behavior
no errors

Screenshots

Image

Additional context

values.yaml

host: one.mydomain.com

# If hosted on non-ssl server then change this to http
httpProtocol: https

global:
  storageClass: gp3

nodeSelector:
  provisioner-name: monitoring-tools-group
oneuptimeIngress:
  enabled: true
  annotations:
    konghq.com/protocol: 'https'
    konghq.com/ssl-redirect: 'false'
    konghq.com/https-redirect-status-code: "308"
  hosts:
    - one.mydomain.com
    - status.mydomain.com
  className: kong-internal

notifications:
  webhooks:
    slack: 
      # This is the webhook that will be called when a user is created or signs up.
      onCreateUser: loremipsun
      onDeleteProject: loremipsun
      onCreateProject: loremipsun
      onSubscriptionUpdate: loremipsun

statusPage:
  cnameRecord: "one.mydomain.com"

# Please add this information if you want to generate SSL certificates for your status page custom domains. 
# This is only required if you're using custom domains for status pages.
# NOTE: SSL is not necesary if you have AWS NLB with Certificate Manager, SSL have already.
#letsEncrypt:

slackApp: 
  clientId: "loremipsun"
  clientSecret: "loremipsun"
  signingSecret: "loremipsun"
*Originally created by @paulmena-pulpo on 3/25/2025* **Describe the bug** I needed to apply the Slack configuration to my OneUpTime setup with Helm Chart, and now the OneUpTime-Haraka pod keeps restarting. error code: ``` .....+.....+.+..+...+....+.................+......+...+....+..+.........+.+......+++++++++++++++++++++++++++++++++++++++*......+..+..........+.....+....+++++++++++++++++++++++++++++++++++++++*............+....+..+...+.........+............................+...+..+............+............+.+........................+...+...+.................+..........+.....+.+..+....+..............+....+..+....+...........+..................+.......+...+...+...+..+...+......+.+..++++++ ...+++++++++++++++++++++++++++++++++++++++*..+....+.....+.+...+..+......+...+++++++++++++++++++++++++++++++++++++++*.............+.+..+...+.........++++++ ----- req warning: No value provided for subject name attribute "CN", skipped IMPORTANT: Add this to your DNS You need to add this to DNS Type: TXT Key: oneuptime._domainkey v=DKIM1;p= loaded TLD files: 1=1445 2=7548 3=3661 loaded 9696 Public Suffixes /usr/local/lib/node_modules/Haraka/connection.js:40 for (const ip of cfg.haproxy.hosts) { ^ TypeError: Cannot read properties of undefined (reading 'hosts') at Object.<anonymous> (/usr/local/lib/node_modules/Haraka/connection.js:40:30) at Module._compile (node:internal/modules/cjs/loader:1734:14) at Object..js (node:internal/modules/cjs/loader:1899:10) at Module.load (node:internal/modules/cjs/loader:1469:32) at Function._load (node:internal/modules/cjs/loader:1286:12) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) at Module.require (node:internal/modules/cjs/loader:1491:12) at require (node:internal/modules/helpers:135:16) at Object.<anonymous> (/usr/local/lib/node_modules/Haraka/server.js:14:21) Node.js v23.8.0 ``` **To Reproduce** Steps to reproduce the behavior: 1. Go to just update helm chart **Expected behavior** no errors **Screenshots** ![Image](https://github.com/user-attachments/assets/958c0108-9082-40ba-a1c7-fef22f67503f) **Additional context** values.yaml ``` host: one.mydomain.com # If hosted on non-ssl server then change this to http httpProtocol: https global: storageClass: gp3 nodeSelector: provisioner-name: monitoring-tools-group oneuptimeIngress: enabled: true annotations: konghq.com/protocol: 'https' konghq.com/ssl-redirect: 'false' konghq.com/https-redirect-status-code: "308" hosts: - one.mydomain.com - status.mydomain.com className: kong-internal notifications: webhooks: slack: # This is the webhook that will be called when a user is created or signs up. onCreateUser: loremipsun onDeleteProject: loremipsun onCreateProject: loremipsun onSubscriptionUpdate: loremipsun statusPage: cnameRecord: "one.mydomain.com" # Please add this information if you want to generate SSL certificates for your status page custom domains. # This is only required if you're using custom domains for status pages. # NOTE: SSL is not necesary if you have AWS NLB with Certificate Manager, SSL have already. #letsEncrypt: slackApp: clientId: "loremipsun" clientSecret: "loremipsun" signingSecret: "loremipsun" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#523