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

Erlang cookie not the same on all nodes #97

Closed
fritzfranzke opened this issue Oct 21, 2022 · 3 comments
Closed

Erlang cookie not the same on all nodes #97

fritzfranzke opened this issue Oct 21, 2022 · 3 comments

Comments

@fritzfranzke
Copy link

Installation of v3.6.1 of the couchdb helm chart in a k8s cluster managed by Rancher fails. Pods enter a CrashLoopBackOff state with the log message

Monster detected ohno!, aborting startup.
Please change the Erlang cookie in vm.args to the same 
securely generated random value on all nodes of this cluster. 

I created a secret my-release-couchdb in the same namespace:

  • adminUsername: admin
  • adminPassword: myPassword
  • cookieAuthSecret: mySecret
  • erlangCookie: monster

I tried with and without the erlangCookie key, also I tried setting the erlangFlags.setcookie=monster in the values.yaml, both to no avail. The values.yaml is shown below. They are mostly the defaults.

adminUsername: admin
affinity: {}
allowAdminParty: false
annotations: {}
clusterSize: 3
couchdbConfig:
  chttpd:
    bind_address: any
    require_valid_user: false
  couchdb:
    uuid: bbeb004f-11ad-44bd-8300-900fcb9600a2
createAdminSecret: false
dns:
  clusterDomainSuffix: cluster.local
enableSearch: false
erlangFlags:
  name: couchdb
image:
  pullPolicy: IfNotPresent
  repository: couchdb
  tag: 3.2.2
ingress:
  annotations: []
  enabled: false
  hosts:
    - chart-example.local
  path: /
  tls: null
initImage:
  pullPolicy: Always
  repository: busybox
  tag: latest
livenessProbe:
  enabled: true
  failureThreshold: 3
  initialDelaySeconds: 0
  periodSeconds: 10
  successThreshold: 1
  timeoutSeconds: 1
networkPolicy:
  enabled: true
persistentVolume:
  accessModes:
    - ReadWriteOnce
  enabled: true
  size: 10Gi
placementConfig:
  enabled: false
  image:
    repository: caligrafix/couchdb-autoscaler-placement-manager
    tag: 0.1.0
podManagementPolicy: Parallel
prometheusPort:
  bind_address: 0.0.0.0
  enabled: false
  port: 17986
readinessProbe:
  enabled: true
  failureThreshold: 3
  initialDelaySeconds: 0
  periodSeconds: 10
  successThreshold: 1
  timeoutSeconds: 1
resources: {}
searchImage:
  pullPolicy: IfNotPresent
  repository: kocolosk/couchdb-search
  tag: 0.2.0
service:
  enabled: true
  externalPort: 5984
  type: ClusterIP
serviceAccount:
  create: true
  enabled: true
sidecars: {}
tolerations: []
topologySpreadConstraints: {}
@big-r81
Copy link

big-r81 commented Oct 21, 2022

The value of the erlang cookie CANNOT be monster!

@fritzfranzke
Copy link
Author

Hi, thanks for the quick reply! Indeed setting the erlangCookie value in the secret to some arbitrary value worked. Is this some common knowledge I was missing? Tbh I don't even know what the erlangCookie does...
Anyhow, thanks again!

@big-r81
Copy link

big-r81 commented Oct 21, 2022

Hi,

this cookie is used for inter-node communication between the nodes in a cluster.

Maybe we can improve the error message not to use monster as an erlang cookie value. It's a bit hidden here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants