NeMo-bil / setup

0 stars 0 forks source link

Build failure Local cluster #2

Open unru-jo opened 2 weeks ago

unru-jo commented 2 weeks ago

I now used a github token, so the issue I had before is resolved. Now I get a new issue:

$ mvn clean deploy -Plocal
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for bil.nemo:it:jar:0.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 192, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 215, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ bil.nemo:local-setup:0.0.1, /github/NeMo-bil/setup/pom.xml, line 110, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for bil.nemo:local-setup:pom:0.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 118, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ line 110, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] local-setup                                                        [pom]
[INFO] it                                                                 [jar]
[INFO] 
[INFO] ------------------------< bil.nemo:local-setup >------------------------
[INFO] Building local-setup 0.0.1                                         [1/2]
[INFO] --------------------------------[ pom ]---------------------------------

[...]
[INFO] Update Complete. ⎈Happy Helming!⎈
[INFO] Saving 6 charts
[INFO] Downloading grafana from repo https://grafana.github.io/helm-charts
[INFO] Downloading scorpio-broker-aaio from repo https://fiware.github.io/helm-charts
[INFO] Downloading postgresql from repo oci://registry-1.docker.io/bitnamicharts
[ERROR] Pulled: registry-1.docker.io/bitnamicharts/postgresql:13.1.5
[ERROR] Digest: sha256:b4c742976290356be9c3483f1abddbc4c7ed8a16d80692901a07385133ff0899
[INFO] Downloading wiremock from repo https://pulledtim.github.io/helm-charts
[INFO] Downloading ngsild-subscriber from repo https://pulledtim.github.io/helm-charts
[INFO] Already downloaded ngsild-subscriber from repo https://pulledtim.github.io/helm-charts
[INFO] Deleting outdated charts
[INFO] 
[INFO] --- helm-maven-plugin:6.13.0:template (template-nemobil) @ local-setup ---
[INFO] 

Perform template for chart /github/NeMo-bil/setup/target/charts/nemobil...
[WARNING] NOTE: <additionalArguments> option will be removed in future major release.
[ERROR] coalesce.go:286: warning: cannot overwrite table with non table for nemobil.importData.data (map[])
[ERROR] coalesce.go:286: warning: cannot overwrite table with non table for nemobil.importData.data (map[])
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/serviceaccount.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/reisewitz/templates/serviceaccount.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/secret.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/context-broker-secrets.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/grafana-secrets.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/configmap-dashboard-provider.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/configmap.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/postgis/templates/primary/initialization-configmap.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/reisewitz/templates/configmap-mappings.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/reisewitz/templates/configmap-responses.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/rw-request-subscription/templates/configmap-mappings.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/rw-trip-subscription/templates/configmap-mappings.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/context-file.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/grafana-dashboards.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/importData.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/clusterrole.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/clusterrolebinding.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/role.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/rolebinding.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/service.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/postgis/templates/primary/svc-headless.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/postgis/templates/primary/svc.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/reisewitz/templates/service.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/scorpio/templates/service.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/context-file.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/importData.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/deployment.yaml
[INFO] 
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/reisewitz/templates/deployment.yaml
[INFO] --- helm-maven-plugin:6.13.0:init (template-observability) @ local-setup ---
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/scorpio/templates/deployment.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/templates/context-file.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/postgis/templates/primary/statefulset.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/rw-request-subscription/templates/init-job.yaml
[INFO] Initializing Helm...
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/rw-trip-subscription/templates/init-job.yaml
[INFO] Found helm executable, skip init.
[INFO] Adding repo [HelmRepository(name=stable, url=https://charts.helm.sh/stable, forceUpdate=false)]
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/grafana/templates/ingress.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/reisewitz/templates/ingress.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/nemobil/nemobil/charts/scorpio/templates/ingress.yaml
[INFO] 
[INFO] "stable" already exists with the same configuration, skipping
[INFO] 
[INFO] --- helm-maven-plugin:6.13.0:dependency-update (template-observability) @ local-setup ---
[INFO] Updating chart dependencies for /github/NeMo-bil/setup/target/charts/observability ...
[INFO] Getting updates for unmanaged Helm repositories...
[INFO] ...Successfully got an update from the "https://headlamp-k8s.github.io/headlamp/" chart repository
[INFO] Hang tight while we grab the latest from your chart repositories...
[INFO] ...Successfully got an update from the "tractusx" chart repository
[INFO] ...Successfully got an update from the "stable" chart repository
[INFO] Update Complete. ⎈Happy Helming!⎈
[INFO] Saving 1 charts
[INFO] Downloading headlamp from repo https://headlamp-k8s.github.io/headlamp/
[INFO] Deleting outdated charts
[INFO] 
[INFO] --- helm-maven-plugin:6.13.0:template (template-observability) @ local-setup ---
[INFO] 

Perform template for chart /github/NeMo-bil/setup/target/charts/observability...
[WARNING] NOTE: <additionalArguments> option will be removed in future major release.
[INFO] wrote /github/NeMo-bil/setup/target/k3s/observability/observability/charts/kubernetes-dashboard/templates/serviceaccount.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/observability/observability/charts/kubernetes-dashboard/templates/secret.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/observability/observability/charts/kubernetes-dashboard/templates/clusterrolebinding.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/observability/observability/charts/kubernetes-dashboard/templates/service.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/observability/observability/charts/kubernetes-dashboard/templates/deployment.yaml
[INFO] wrote /github/NeMo-bil/setup/target/k3s/observability/observability/charts/kubernetes-dashboard/templates/ingress.yaml
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:3.0.0:integration-test (test) @ local-setup ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-failsafe-plugin:3.0.0:verify (verify) @ local-setup ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-install-plugin:3.1.1:install (default-install) @ local-setup ---
[INFO] Installing /github/NeMo-bil/setup/pom.xml to /.m2/repository/bil/nemo/local-setup/0.0.1/local-setup-0.0.1.pom
[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ local-setup ---
[INFO] Skipping artifact deployment
[INFO] 
[INFO] --- k3s-maven-plugin:1.2.4:run (create-namespaces) @ local-setup ---
[WARNING] Container with id 'a6deefa2c616' found, skip creating
[INFO] k3s ready: KUBECONFIG=/github/NeMo-bil/setup/target/k3s.yaml kubectl get all --all-namespaces
[INFO] 
[INFO] --- k3s-maven-plugin:1.2.4:image (create-namespaces) @ local-setup ---
[INFO] 
[INFO] --- k3s-maven-plugin:1.2.4:apply (create-namespaces) @ local-setup ---
[INFO] kubectl apply --filename=/tmp/manifests --recursive
[INFO] deployment observability-kubernetes-dashboard ... ready
[INFO] statefulset local/context-broker-postgis ... ready
[INFO] job local/local-rw-request-subscription ... ready
[INFO] deployment infra/traefik ... ready
[INFO] deployment local/context-broker-scorpio ... ready
[INFO] deployment kube-system/coredns ... ready
[INFO] job local/local-rw-trip-subscription ... ready
[INFO] Still waiting for: [local/context-file, local/import-file, local/local-grafana, local/local-reisewitz]
[ERROR] >>> docker exec k3s-maven-plugin kubectl rollout status deployment local-grafana --namespace=local --timeout=300s (timeout: PT5M10S)
[ERROR] <<< Waiting for deployment "local-grafana" rollout to finish: 0 of 1 updated replicas are available...
[ERROR] <<< error: deployment "local-grafana" exceeded its progress deadline
[ERROR] >>> docker exec k3s-maven-plugin kubectl rollout status deployment local-reisewitz --namespace=local --timeout=300s (timeout: PT5M10S)
[ERROR] <<< Waiting for deployment "local-reisewitz" rollout to finish: 0 of 1 updated replicas are available...
[ERROR] <<< error: deployment "local-reisewitz" exceeded its progress deadline
[ERROR] >>> docker exec k3s-maven-plugin kubectl rollout status deployment context-file --namespace=local --timeout=300s (timeout: PT5M10S)
[ERROR] <<< Waiting for deployment "context-file" rollout to finish: 0 of 1 updated replicas are available...
[ERROR] <<< error: deployment "context-file" exceeded its progress deadline
[INFO] Still waiting for: [local/import-file]
[ERROR] >>> docker exec k3s-maven-plugin kubectl wait --for=condition=ready pod import-file --namespace=local --timeout=300s (timeout: PT5M10S)
[ERROR] <<< error: timed out waiting for the condition on pods/import-file
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for local-setup 0.0.1:
[INFO] 
[INFO] local-setup ........................................ FAILURE [05:31 min]
[INFO] it ................................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:31 min
[INFO] Finished at: 2024-10-20T12:01:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.kokuwa.maven:k3s-maven-plugin:1.2.4:apply (create-namespaces) on project local-setup: Failed to wait for resources, see previous log -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
pulledtim commented 1 week ago

Hey sorry for the delay, I didn't get notified. Could you have a look why the deployments fail to start? The following command should give moire details: KUBECONFIG=$(pwd)/target/k3s.yaml kubectl describe deployment local-grafana -nlocal