advancedtelematic/ota-community-edition

make start fail

Opened this issue · 0 comments

hi,I deploy this project with minikube,but It was failed by pod/director-649f886886-4cq5g。

kubectl get all

NAME                                        READY   STATUS             RESTARTS        AGE
pod/app-6b7d5ff9c5-cbc9r                    1/1     Running            0               2d11h
pod/campaigner-5678dd69b9-xhgp5             1/1     Running            1 (2d10h ago)   2d11h
pod/campaigner-daemon-849cb74666-qr6xg      1/1     Running            0               2d11h
pod/device-registry-daemon-f95ccd6b-qjqsm   1/1     Running            0               2d11h
pod/device-registry-dff7dc4c9-pqhtz         1/1     Running            5               2d11h
pod/director-649f886886-4cq5g               0/1     CrashLoopBackOff   684 (2m ago)    2d11h
pod/director-daemon-875988b4f-4ms55         1/1     Running            1 (2d10h ago)   2d11h
pod/gateway-deployment-688b4f64fc-jcz7d     1/1     Running            0               2d10h
pod/kafka-0                                 1/1     Running            0               2d11h
pod/mysql-0                                 1/1     Running            0               2d11h
pod/treehub-0                               1/1     Running            0               2d10h
pod/tuf-keyserver-7ffd8d7988-xrsm9          1/1     Running            1 (2d10h ago)   2d10h
pod/tuf-keyserver-daemon-585dbd8684-zhtk8   1/1     Running            0               2d10h
pod/tuf-reposerver-7dcbbcf54b-9s7lv         1/1     Running            0               2d10h
pod/web-events-646b84cd7f-ptjxt             1/1     Running            0               2d10h
pod/zookeeper-0                             1/1     Running            0               2d11h

kubectl describe pod director-649f886886-4cq5g

Name:         director-649f886886-4cq5g
Namespace:    default
Priority:     0
Node:         minikube/192.168.49.2
Start Time:   Fri, 27 May 2022 23:05:32 +0800
Labels:       app=director
              pod-template-hash=649f886886
Annotations:  <none>
Status:       Running
IP:           172.17.0.13
IPs:
  IP:           172.17.0.13
Controlled By:  ReplicaSet/director-649f886886
Containers:
  director:
    Container ID:   docker://63782e99a5be7f283e4e2926b05a87e306ac5019412eec1d2821115de4e87ba8
    Image:          advancedtelematic/director-v2:eb75c8bd21b36e7809397cecf9fc652d611e49d3
    Image ID:       docker-pullable://advancedtelematic/director-v2@sha256:0edac8633c73084e6a03029a6c2c950224f87d460f76bcfe9e8316cbaf9af67e
    Port:           9001/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Mon, 30 May 2022 09:58:23 +0800
      Finished:     Mon, 30 May 2022 09:58:25 +0800
    Ready:          False
    Restart Count:  683
    Requests:
      cpu:     80m
      memory:  300Mi
    Liveness:  http-get http://:9001/health delay=10s timeout=1s period=30s #success=1 #failure=3
    Environment Variables from:
      kafka-shared     ConfigMap  Optional: false
      director-config  ConfigMap  Optional: false
      director-secret  Secret     Optional: false
    Environment:       <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-9dg8j (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  kube-api-access-9dg8j:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason   Age                       From     Message
  ----     ------   ----                      ----     -------
  Warning  BackOff  3m1s (x16176 over 2d10h)  kubelet  Back-off restarting failed container

kubectl logs -f director-649f886886-4cq5g

I|2022-05-30 01:58:24,207|akka.event.slf4j.Slf4jLogger|Slf4jLogger started
I|2022-05-30 01:58:24,584|com.zaxxer.hikari.HikariDataSource|database - Started.
I|2022-05-30 01:58:24,858|o.f.c.i.license.VersionPrinter|Flyway Community Edition 6.0.8 by Redgate
I|2022-05-30 01:58:24,872|o.f.c.i.database.DatabaseFactory|Database: jdbc:mariadb://mysql:3306/director (MariaDB 10.3)
E|2022-05-30 01:58:24,891|c.a.libats.slick.db.RunMigrations$|3 migrations pending
E|2022-05-30 01:58:24,891|com.advancedtelematic.director.Boot$|Outdated migrations, terminating
I|2022-05-30 01:58:24,906|com.advancedtelematic.director.Boot$|Starting director-v2/eb75c8bd21b36e7809397cecf9fc652d611e49d3 on http://0.0.0.0:9001
I|2022-05-30 01:58:24,906|c.a.libats.messaging.MessageBus$|Starting messaging mode: Kafka
I|2022-05-30 01:58:24,925|o.a.k.c.producer.ProducerConfig|ProducerConfig values:
        acks = 1
        batch.size = 16384
        bootstrap.servers = [kafka:9092]
        buffer.memory = 33554432
        client.dns.lookup = default
        client.id =
        compression.type = none
        connections.max.idle.ms = 540000
        delivery.timeout.ms = 120000
        enable.idempotence = false
        interceptor.classes = []
        key.serializer = class org.apache.kafka.common.serialization.ByteArraySerializer
        linger.ms = 0
        max.block.ms = 60000
        max.in.flight.requests.per.connection = 5
        max.request.size = 1048576
        metadata.max.age.ms = 300000
        metric.reporters = []
        metrics.num.samples = 2
        metrics.recording.level = INFO
        metrics.sample.window.ms = 30000
        partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner
        receive.buffer.bytes = 32768
        reconnect.backoff.max.ms = 1000
        reconnect.backoff.ms = 50
        request.timeout.ms = 30000
        retries = 2147483647
        retry.backoff.ms = 100
        sasl.client.callback.handler.class = null
        sasl.jaas.config = null
        sasl.kerberos.kinit.cmd = /usr/bin/kinit
        sasl.kerberos.min.time.before.relogin = 60000
        sasl.kerberos.service.name = null
        sasl.kerberos.ticket.renew.jitter = 0.05
        sasl.kerberos.ticket.renew.window.factor = 0.8
        sasl.login.callback.handler.class = null
        sasl.login.class = null
        sasl.login.refresh.buffer.seconds = 300
        sasl.login.refresh.min.period.seconds = 60
        sasl.login.refresh.window.factor = 0.8
        sasl.login.refresh.window.jitter = 0.05
        sasl.mechanism = GSSAPI
        security.protocol = PLAINTEXT
        security.providers = null
        send.buffer.bytes = 131072
        ssl.cipher.suites = null
        ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
        ssl.endpoint.identification.algorithm = https
        ssl.key.password = null
        ssl.keymanager.algorithm = SunX509
        ssl.keystore.location = null
        ssl.keystore.password = null
        ssl.keystore.type = JKS
        ssl.protocol = TLS
        ssl.provider = null
        ssl.secure.random.implementation = null
        ssl.trustmanager.algorithm = PKIX
        ssl.truststore.location = null
        ssl.truststore.password = null
        ssl.truststore.type = JKS
        transaction.timeout.ms = 60000
        transactional.id = null
        value.serializer = class org.apache.kafka.common.serialization.StringSerializer

I|2022-05-30 01:58:24,988|o.a.kafka.common.utils.AppInfoParser|Kafka version: 2.4.1
I|2022-05-30 01:58:24,988|o.a.kafka.common.utils.AppInfoParser|Kafka commitId: c57222ae8cd7866b
I|2022-05-30 01:58:24,988|o.a.kafka.common.utils.AppInfoParser|Kafka startTimeMs: 1653875904987
Exception in thread "main" java.lang.IllegalStateException: cannot create children while terminating or terminated
        at akka.actor.dungeon.Children.makeChild(Children.scala:291)
        at akka.actor.dungeon.Children.attachChild(Children.scala:53)
        at akka.actor.dungeon.Children.attachChild$(Children.scala:52)
        at akka.actor.ActorCell.attachChild(ActorCell.scala:410)
        at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:887)
        at com.advancedtelematic.libats.http.LogDirectives$.logResponseMetrics(LogDirectives.scala:32)
        at com.advancedtelematic.director.Boot$.delayedEndpoint$com$advancedtelematic$director$Boot$1(Boot.scala:49)
        at com.advancedtelematic.director.Boot$delayedInit$body.apply(Boot.scala:24)
        at scala.Function0.apply$mcV$sp(Function0.scala:39)
        at scala.Function0.apply$mcV$sp$(Function0.scala:39)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
        at scala.App.$anonfun$main$1$adapted(App.scala:80)
        at scala.collection.immutable.List.foreach(List.scala:392)
        at scala.App.main(App.scala:80)
        at scala.App.main$(App.scala:78)
        at com.advancedtelematic.director.Boot$.main(Boot.scala:24)
        at com.advancedtelematic.director.Boot.main(Boot.scala)

how can I fix this problem