hi i am installting the zamamd on the gcp kubenretes and can you please let me know why the zaamad init pod is getting restarted

hi i am installting the zamamd on the gcp kubenretes and can you please let me know why the zaamad init pod is getting restarted

find the logs here

error: error from server (NotFound): namespaces “zammad-poc2s” not found in namespace “zammad-poc2s”
jitendra_yadav@cloudshell:~ (id-84c077437459ebd4)$ kubectl logs zammad-init-pod-7975564db9-bd9vh -n zammad-poc2
Defaulted container “zammad-init-container” out of: zammad-init-container, gke-gcsfuse-sidecar (init), wait-for-postgres (init)
initialising / updating database…
Clearing cache…
I, [2024-10-15T05:26:01.735529 #22] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:26:01.751927#22-5980] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:26:01.752141#22-5980] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:26:01.954344#22-5980] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
Executing migrations…
I, [2024-10-15T05:26:08.443409 #31] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:26:08.458367#31-6780] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:26:08.458664#31-6780] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:26:08.655340#31-6780] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
Synchronizing locales…
I, [2024-10-15T05:26:14.412079 #40] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:26:14.426704#40-5980] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:26:14.427073#40-5980] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:26:14.622451#40-5980] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
Synchronizing translations…
I, [2024-10-15T05:26:21.497828 #49] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:26:21.512861#49-5980] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:26:21.513053#49-5980] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:26:21.708654#49-5980] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
changing settings…
I, [2024-10-15T05:27:05.487184 #58] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:27:05.506546#58-5980] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:27:05.506761#58-5980] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:27:05.707949#58-5980] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
I, [2024-10-15T05:27:09.047017#58-5980] INFO – : Setting.set(‘es_url’, “http://zammad-elasticsearch:9200”)
I, [2024-10-15T05:27:12.417523 #67] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:27:12.433986#67-5980] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:27:12.434332#67-5980] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:27:12.646047#67-5980] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
I, [2024-10-15T05:27:15.984068#67-5980] INFO – : Setting.set(‘es_index’, “zammad”)

and also there is another podis restarting the rail server

jitendra_yadav@cloudshell:~ (id-84c077437459ebd4)$ kubectl get pods -n zammad-poc2
NAME READY STATUS RESTARTS AGE
elasticsearch-cluster-deployment-655cb4b9f9-9bgnk 2/2 Running 0 2d20h
memcache-cluster-deployment-74c9cf85f9-7sfch 1/1 Running 0 2d20h
nginx-cluster-deployment-5cf4f575b5-wxdv5 2/2 Running 0 2d19h
railsserver-cluster-deployment-7b754dfdf4-jrxz4 1/2 CrashLoopBackOff 134 (3m47s ago) 14h
redis-cluster-deployment-795865b4-rn5bk 2/2 Running 0 40h
scheduler-cluster-deployment-b8b4657b-s87jw 2/2 Running 0 2d20h
websocket-cluster-deployment-7745df949d-g9rw6 2/2 Running 0 2d20h
zammad-init-pod-7975564db9-bd9vh 1/2 CrashLoopBackOff 136 (4m22s ago) 14h
jitendra_yadav@cloudshell:~ (id-84c077437459ebd4)$ ^C
jitendra_yadav@cloudshell:~ (id-84c077437459ebd4)$ kubectl logs railsserver-cluster-deployment-7b754dfdf4-jrxz4 -n zammad-poc2
Defaulted container “zammad-railsserver-container” out of: zammad-railsserver-container, gke-gcsfuse-sidecar (init), wait-for-postgres (init), wait-for-memcache (init), wait-for-redis (init)
waiting for init container to finish install or update…
waiting for init container to finish install or update…
waiting for init container to finish install or update…
waiting for init container to finish install or update…
waiting for init container to finish install or update…
waiting for init container to finish install or update…
starting railsserver… with WEB_CONCURRENCY=0
Puma starting in single mode…

  • Puma version: 6.4.2 (ruby 3.1.3-p185) (“The Eagle of Durango”)
  • Min threads: 5
  • Max threads: 30
  • Environment: production
  •      PID: 1
    

I, [2024-10-15T05:27:46.538154 #1] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-10-15T05:27:46.623330#1-6780] INFO – : Using memcached as Rails cache store.
I, [2024-10-15T05:27:46.623919#1-6780] INFO – : Using the Redis back end for Zammad’s web socket session store.
W, [2024-10-15T05:27:46.896903#1-6780] WARN – : Setting “timezone_default” is empty. Using UTC instead. Please set system timezone.
bundler: failed to load command: puma (/usr/local/bundle/bin/puma)
/usr/local/bundle/gems/uri-0.13.0/lib/uri/rfc3986_parser.rb:130:in split': bad URI(is not URI?): "tcp://[::]:tcp://172.16.6.146:3000" (URI::InvalidURIError) from /usr/local/bundle/gems/uri-0.13.0/lib/uri/rfc3986_parser.rb:135:in parse’
from /usr/local/bundle/gems/uri-0.13.0/lib/uri/common.rb:185:in parse' from /usr/local/bundle/gems/puma-6.4.2/lib/puma/binder.rb:147:in block in parse’
from /usr/local/bundle/gems/puma-6.4.2/lib/puma/binder.rb:146:in each' from /usr/local/bundle/gems/puma-6.4.2/lib/puma/binder.rb:146:in parse’
from /usr/local/bundle/gems/puma-6.4.2/lib/puma/runner.rb:168:in load_and_bind' from /usr/local/bundle/gems/puma-6.4.2/lib/puma/single.rb:44:in run’
from /usr/local/bundle/gems/puma-6.4.2/lib/puma/launcher.rb:194:in run' from /usr/local/bundle/gems/puma-6.4.2/lib/puma/cli.rb:75:in run’
from /usr/local/bundle/gems/puma-6.4.2/bin/puma:10:in <top (required)>' from /usr/local/bundle/bin/puma:25:in load’
from /usr/local/bundle/bin/puma:25:in <top (required)>' from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/cli/exec.rb:58:in load’
from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/cli/exec.rb:58:in kernel_load' from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/cli/exec.rb:23:in run’
from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/cli.rb:491:in exec' from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run’
from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch’
from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/cli.rb:34:in dispatch' from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start’
from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/cli.rb:28:in start' from /usr/local/bundle/gems/bundler-2.4.1/exe/bundle:45:in block in <top (required)>’
from /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/friendly_errors.rb:117:in with_friendly_errors' from /usr/local/bundle/gems/bundler-2.4.1/exe/bundle:33:in <top (required)>’
from /usr/local/bundle/bin/bundle:25:in load' from /usr/local/bundle/bin/bundle:25:in

let me what is the issue

Thanks for contacting me and others via PM. Next time, kindly refrain from doing this and show patience. If you need commercial grade support, get a support contract.

Your log actually indicates the issue. Your config might help here. Without passwords please.

hello find the yaml file here, attached for the configuration, as this is in env

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: “6”
meta.helm.sh/release-name: zammad
meta.helm.sh/release-namespace: default
creationTimestamp: “2024-10-21T19:55:14Z”
generation: 6
labels:
app.kubernetes.io/component: zammad-railsserver
app.kubernetes.io/instance: zammad
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: zammad
app.kubernetes.io/version: 6.3.1-185
helm.sh/chart: zammad-12.4.1
managedFields:

  • apiVersion: apps/v1
    fieldsType: FieldsV1
    fieldsV1:
    f:metadata:
    f:annotations:
    .: {}
    f:meta.helm.sh/release-name: {}
    f:meta.helm.sh/release-namespace: {}
    f:labels:
    .: {}
    f:app.kubernetes.io/component: {}
    f:app.kubernetes.io/instance: {}
    f:app.kubernetes.io/managed-by: {}
    f:app.kubernetes.io/name: {}
    f:app.kubernetes.io/version: {}
    f:helm.sh/chart: {}
    f:spec:
    f:progressDeadlineSeconds: {}
    f:replicas: {}
    f:revisionHistoryLimit: {}
    f:selector: {}
    f:strategy:
    f:rollingUpdate:
    .: {}
    f:maxSurge: {}
    f:maxUnavailable: {}
    f:type: {}
    f:template:
    f:metadata:
    f:labels:
    .: {}
    f:app.kubernetes.io/component: {}
    f:app.kubernetes.io/instance: {}
    f:app.kubernetes.io/managed-by: {}
    f:app.kubernetes.io/name: {}
    f:app.kubernetes.io/version: {}
    f:helm.sh/chart: {}
    f:spec:
    f:containers:
    k:{“name”:“zammad-railsserver”}:
    .: {}
    f:command: {}
    f:env:
    .: {}
    k:{“name”:“DATABASE_URL”}:
    .: {}
    f:name: {}
    k:{“name”:“MEMCACHE_SERVERS”}:
    .: {}
    f:name: {}
    f:value: {}
    k:{“name”:“POSTGRESQL_PASS”}:
    .: {}
    f:name: {}
    f:valueFrom: {}
    k:{“name”:“RAILS_CHECK_PENDING_MIGRATIONS”}:
    .: {}
    f:name: {}
    f:value: {}
    k:{“name”:“RAILS_TRUSTED_PROXIES”}:
    .: {}
    f:name: {}
    f:value: {}
    k:{“name”:“REDIS_PASSWORD”}:
    .: {}
    f:name: {}
    f:valueFrom:
    .: {}
    f:secretKeyRef: {}
    k:{“name”:“REDIS_URL”}:
    .: {}
    f:name: {}
    f:value: {}
    k:{“name”:“TMP”}:
    .: {}
    f:name: {}
    f:value: {}
    f:image: {}
    f:imagePullPolicy: {}
    f:livenessProbe:
    .: {}
    f:failureThreshold: {}
    f:initialDelaySeconds: {}
    f:periodSeconds: {}
    f:successThreshold: {}
    f:tcpSocket:
    .: {}
    f:port: {}
    f:timeoutSeconds: {}
    f:name: {}
    f:ports:
    .: {}
    k:{“containerPort”:3000,“protocol”:“TCP”}:
    .: {}
    f:containerPort: {}
    f:name: {}
    f:protocol: {}
    f:readinessProbe:
    .: {}
    f:failureThreshold: {}
    f:httpGet:
    .: {}
    f:path: {}
    f:port: {}
    f:scheme: {}
    f:initialDelaySeconds: {}
    f:periodSeconds: {}
    f:successThreshold: {}
    f:timeoutSeconds: {}
    f:resources: {}
    f:securityContext:
    .: {}
    f:allowPrivilegeEscalation: {}
    f:capabilities:
    .: {}
    f:drop: {}
    f:privileged: {}
    f:readOnlyRootFilesystem: {}
    f:terminationMessagePath: {}
    f:terminationMessagePolicy: {}
    f:volumeMounts:
    .: {}
    k:{“mountPath”:“/opt/zammad/tmp”}:
    .: {}
    f:mountPath: {}
    f:name: {}
    k:{“mountPath”:“/tmp”}:
    .: {}
    f:mountPath: {}
    f:name: {}
    f:dnsPolicy: {}
    f:initContainers:
    .: {}
    k:{“name”:“zammad-volume-permissions”}:
    .: {}
    f:command: {}
    f:image: {}
    f:imagePullPolicy: {}
    f:name: {}
    f:resources: {}
    f:securityContext:
    .: {}
    f:capabilities:
    .: {}
    f:drop: {}
    f:privileged: {}
    f:readOnlyRootFilesystem: {}
    f:runAsNonRoot: {}
    f:runAsUser: {}
    f:terminationMessagePath: {}
    f:terminationMessagePolicy: {}
    f:volumeMounts:
    .: {}
    k:{“mountPath”:“/opt/zammad/tmp”}:
    .: {}
    f:mountPath: {}
    f:name: {}
    k:{“mountPath”:“/tmp”}:
    .: {}
    f:mountPath: {}
    f:name: {}
    f:restartPolicy: {}
    f:schedulerName: {}
    f:securityContext:
    .: {}
    f:fsGroup: {}
    f:fsGroupChangePolicy: {}
    f:runAsGroup: {}
    f:runAsNonRoot: {}
    f:runAsUser: {}
    f:seccompProfile:
    .: {}
    f:type: {}
    f:terminationGracePeriodSeconds: {}
    f:volumes:
    .: {}
    k:{“name”:“zammad-tmp”}:
    .: {}
    f:emptyDir:
    .: {}
    f:sizeLimit: {}
    f:name: {}
    manager: helm
    operation: Update
    time: “2024-10-21T19:55:14Z”
  • apiVersion: apps/v1
    fieldsType: FieldsV1
    fieldsV1:
    f:spec:
    f:template:
    f:metadata:
    f:annotations:
    .: {}
    f:kubectl.kubernetes.io/restartedAt: {}
    manager: kubectl-rollout
    operation: Update
    time: “2024-10-25T12:23:35Z”
  • apiVersion: apps/v1
    fieldsType: FieldsV1
    fieldsV1:
    f:spec:
    f:template:
    f:spec:
    f:containers:
    k:{“name”:“zammad-railsserver”}:
    f:env:
    k:{“name”:“DATABASE_URL”}:
    f:value: {}
    k:{“name”:“POSTGRESQL_PASS”}:
    f:valueFrom:
    f:secretKeyRef: {}
    manager: unknown
    operation: Update
    time: “2024-10-26T20:36:50Z”
  • apiVersion: apps/v1
    fieldsType: FieldsV1
    fieldsV1:
    f:metadata:
    f:annotations:
    f:deployment.kubernetes.io/revision: {}
    f:status:
    f:availableReplicas: {}
    f:conditions:
    .: {}
    k:{“type”:“Available”}:
    .: {}
    f:lastTransitionTime: {}
    f:lastUpdateTime: {}
    f:message: {}
    f:reason: {}
    f:status: {}
    f:type: {}
    k:{“type”:“Progressing”}:
    .: {}
    f:lastTransitionTime: {}
    f:lastUpdateTime: {}
    f:message: {}
    f:reason: {}
    f:status: {}
    f:type: {}
    f:observedGeneration: {}
    f:readyReplicas: {}
    f:replicas: {}
    f:unavailableReplicas: {}
    f:updatedReplicas: {}
    manager: kube-controller-manager
    operation: Update
    subresource: status
    time: “2024-10-26T20:46:52Z”
    name: zammad-railsserver
    namespace: default
    resourceVersion: “190187506”
    uid: 2d4c9152-4318-47df-a6b0-9ac7c4843468
    spec:
    progressDeadlineSeconds: 600
    replicas: 1
    revisionHistoryLimit: 10
    selector:
    matchLabels:
    app.kubernetes.io/instance: zammad
    app.kubernetes.io/name: zammad
    strategy:
    rollingUpdate:
    maxSurge: 25%
    maxUnavailable: 25%
    type: RollingUpdate
    template:
    metadata:
    annotations:
    kubectl.kubernetes.io/restartedAt: “2024-10-25T12:23:35Z”
    creationTimestamp: null
    labels:
    app.kubernetes.io/component: zammad-railsserver
    app.kubernetes.io/instance: zammad
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: zammad
    app.kubernetes.io/version: 6.3.1-185
    helm.sh/chart: zammad-12.4.1
    spec:
    containers:
    • command:
      • bundle
      • exec
      • puma
      • -b
      • tcp://[::]:3000
      • -w
      • “0”
      • -e
      • production
        env:
      • name: REDIS_PASSWORD
        valueFrom:
        secretKeyRef:
        key: redis-password
        name: zammad-redis-pass
      • name: MEMCACHE_SERVERS
        value: zammad-memcached:11211
      • name: RAILS_TRUSTED_PROXIES
        value: ‘[’‘127.0.0.1’‘, ‘’::1’‘]’
      • name: REDIS_URL
        value: redis://:$(REDIS_PASSWORD)@zammad-redis-master:6379
      • name: POSTGRESQL_PASS
        valueFrom:
        secretKeyRef:
        key: pw
        name: postgresspw
      • name: DATABASE_URL
        value: postgres://zammad_user:Exelapune@100.64.0.8:5432/zammad?pool=50
      • name: TMP
        value: /opt/zammad/tmp
      • name: RAILS_CHECK_PENDING_MIGRATIONS
        value: “true”
        image: Package zammad · GitHub
        imagePullPolicy: IfNotPresent
        livenessProbe:
        failureThreshold: 5
        initialDelaySeconds: 30
        periodSeconds: 10
        successThreshold: 1
        tcpSocket:
        port: 3000
        timeoutSeconds: 5
        name: zammad-railsserver
        ports:
      • containerPort: 3000
        name: railsserver
        protocol: TCP
        readinessProbe:
        failureThreshold: 5
        httpGet:
        path: /
        port: 3000
        scheme: HTTP
        initialDelaySeconds: 30
        periodSeconds: 10
        successThreshold: 1
        timeoutSeconds: 5
        resources: {}
        securityContext:
        allowPrivilegeEscalation: false
        capabilities:
        drop:
        • ALL
          privileged: false
          readOnlyRootFilesystem: true
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
      • mountPath: /tmp
        name: zammad-tmp
      • mountPath: /opt/zammad/tmp
        name: zammad-tmp
        dnsPolicy: ClusterFirst
        initContainers:
    • command:
      • /bin/sh
      • -cx
      • |
        chmod 770 /opt/zammad/tmp
        image: alpine:3.20.3
        imagePullPolicy: IfNotPresent
        name: zammad-volume-permissions
        resources: {}
        securityContext:
        capabilities:
        drop:
        • ALL
          privileged: true
          readOnlyRootFilesystem: true
          runAsNonRoot: false
          runAsUser: 0
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
      • mountPath: /tmp
        name: zammad-tmp
      • mountPath: /opt/zammad/tmp
        name: zammad-tmp
        restartPolicy: Always
        schedulerName: default-scheduler
        securityContext:
        fsGroup: 1000
        fsGroupChangePolicy: Always
        runAsGroup: 1000
        runAsNonRoot: true
        runAsUser: 1000
        seccompProfile:
        type: RuntimeDefault
        terminationGracePeriodSeconds: 30
        volumes:
    • emptyDir:
      sizeLimit: 100Mi
      name: zammad-tmp
      status:
      availableReplicas: 1
      conditions:
  • lastTransitionTime: “2024-10-21T20:50:49Z”
    lastUpdateTime: “2024-10-21T20:50:49Z”
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: “True”
    type: Available
  • lastTransitionTime: “2024-10-26T20:46:52Z”
    lastUpdateTime: “2024-10-26T20:46:52Z”
    message: ReplicaSet “zammad-railsserver-65758b9d4” has timed out progressing.
    reason: ProgressDeadlineExceeded
    status: “False”
    type: Progressing
    observedGeneration: 6
    readyReplicas: 1
    replicas: 2
    unavailableReplicas: 1
    updatedReplicas: 1