crashloopbackoff in pods for gerrit

11/5/2019

I am trying to spin a pod for gerrit, but the status showing as Crashloopbackoff. Here is the log.

6 errors
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
        at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:237)
        at com.google.gerrit.pgm.Daemon.createSshInjector(Daemon.java:529)
        at com.google.gerrit.pgm.Daemon.initSshd(Daemon.java:510)
        at com.google.gerrit.pgm.Daemon.start(Daemon.java:338)
        at com.google.gerrit.pgm.Daemon.run(Daemon.java:251)
        at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:224)
        at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:120)
        at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:65)
        at Main.main(Main.java:28)

here is my deployment.yaml

kind: Deployment
metadata:
  annotations:
    kompose.cmd: kompose convert
    kompose.version: 1.16.0 (0c01309)
  creationTimestamp: null
  labels:
    io.kompose.service: gerrit
  name: gerrit
spec:
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      creationTimestamp: null
      labels:
        io.kompose.service: gerrit
    spec:
      containers:
      - image: gerritcodereview/gerrit
        name: gerrit
        ports:
        - containerPort: 29418
        - containerPort: 8080
        resources: {}
        volumeMounts:
        - mountPath: /var/gerrit/git
          name: git-volume
        - mountPath: /var/gerrit/db
          name: db-volume
        - mountPath: /var/gerrit/index
          name: index-volume
        - mountPath: /var/gerrit/cache
          name: cache-volume
      restartPolicy: Always
      volumes:
      - name: git-volume
        persistentVolumeClaim:
          claimName: git-volume-claim
      - name: db-volume
        persistentVolumeClaim:
          claimName: db-volume-claim
      - name: index-volume
        persistentVolumeClaim:
          claimName: index-volume-claim
      - name: cache-volume
        persistentVolumeClaim:
          claimName: cache-volume-claim
status: {}
-- Brati Acharya
docker
kubernetes

0 Answers