mayurans opened a new issue #736: camel-k-cache crashes on minikube URL: https://github.com/apache/camel-k/issues/736 On minikube environment, camel-k-cache crashes with following error when "kamel install" is run: ``` $ kubectl logs camel-k-cache panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xf13712] goroutine 1 [running]: github.com/GoogleContainerTools/kaniko/pkg/cache.WarmCache(0x1977fe0, 0xf25480, 0xc42034fcd8) /go/src/github.com/GoogleContainerTools/kaniko/pkg/cache/warm.go:47 +0x372 github.com/GoogleContainerTools/kaniko/cmd/warmer/cmd.glob..func2(0x196f140, 0xc4202d5400, 0x0, 0x2) /go/src/github.com/GoogleContainerTools/kaniko/cmd/warmer/cmd/root.go:54 +0x2d github.com/GoogleContainerTools/kaniko/vendor/github.com/spf13/cobra.(*Command).execute(0x196f140, 0xc4200380a0, 0x2, 0x2, 0x196f140, 0xc4200380a0) /go/src/github.com/GoogleContainerTools/kaniko/vendor/github.com/spf13/cobra/command.go:766 +0x2c1 github.com/GoogleContainerTools/kaniko/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x196f140, 0x0, 0x4, 0x116cca9) /go/src/github.com/GoogleContainerTools/kaniko/vendor/github.com/spf13/cobra/command.go:852 +0x30a github.com/GoogleContainerTools/kaniko/vendor/github.com/spf13/cobra.(*Command).Execute(0x196f140, 0xc42034ff78, 0xc420096058) /go/src/github.com/GoogleContainerTools/kaniko/vendor/github.com/spf13/cobra/command.go:800 +0x2b main.main() /go/src/github.com/GoogleContainerTools/kaniko/cmd/warmer/main.go:26 +0x2d ``` When it craches, the following errors are thrown by camel-k-operator: ``` {"level":"error","ts":1560176689.3713505,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"integrationplatform-controller","request":"default/camel-k","error":"failed to warm up Kaniko cache","stacktrace":"github.com/apache/camel-k/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"} ``` <details><summary>EXPAND - kubectl describe pod camel-k-cache</summary> ```c# $ kubectl describe pod camel-k-cache Name: camel-k-cache Namespace: default Priority: 0 PriorityClassName: <none> Node: minikube/192.168.122.123 Start Time: Mon, 10 Jun 2019 14:24:04 +0000 Labels: <none> Annotations: <none> Status: Failed IP: 172.17.0.6 Init Containers: create-kaniko-cache: Container ID: docker://6dcaf166e78abb6afe232958b6646eedc6bb0cf0c7f29db5b61cef87d54acba3 Image: busybox Image ID: docker-pullable://busybox@sha256:4b6ad3a68d34da29bf7c8ccb5d355ba8b4babcad1f99798204e7abb43e54ee3d Port: <none> Host Port: <none> Command: mkdir -p /workspace/cache State: Terminated Reason: Completed Exit Code: 0 Started: Mon, 10 Jun 2019 14:24:11 +0000 Finished: Mon, 10 Jun 2019 14:24:11 +0000 Ready: True Restart Count: 0 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-5ctcz (ro) /workspace from camel-k-builder (rw) Containers: warm-kaniko-cache: Container ID: docker://9690d359ff45ab78ae5cf62dd3b2a5175245294b8baeb15609139f82114bba96 Image: gcr.io/kaniko-project/warmer:v0.9.0 Image ID: docker-pullable://gcr.io/kaniko-project/warmer@sha256:e146228a6b965e53d34abed82512f455791ec44ad305022a26c4adb632a61f00 Port: <none> Host Port: <none> Args: --cache-dir=/workspace/cache --image=fabric8/s2i-java:3.0-java8 State: Terminated Reason: Error Exit Code: 2 Started: Mon, 10 Jun 2019 14:24:14 +0000 Finished: Mon, 10 Jun 2019 14:24:45 +0000 Ready: False Restart Count: 0 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-5ctcz (ro) /workspace from camel-k-builder (rw) Conditions: Type Status Initialized True Ready False ContainersReady False PodScheduled True Volumes: camel-k-builder: Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace) ClaimName: camel-k ReadOnly: false default-token-5ctcz: Type: Secret (a volume populated by a Secret) SecretName: default-token-5ctcz Optional: false QoS Class: BestEffort Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 7m (x5 over 7m) default-scheduler pod has unbound immediate PersistentVolumeClaims Normal Scheduled 7m default-scheduler Successfully assigned default/camel-k-cache to minikube Normal Pulled 7m kubelet, minikube Container image "busybox" already present on machine Normal Created 7m kubelet, minikube Created container Normal Started 7m kubelet, minikube Started container Normal Pulled 7m kubelet, minikube Container image "gcr.io/kaniko-project/warmer:v0.9.0" already present on machine Normal Created 7m kubelet, minikube Created container Normal Started 7m kubelet, minikube Started container ``` </details> Pods list: ``` $ kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE default camel-k-cache 0/1 Error 0 21m default camel-k-operator-676999f5bc-9fpx7 1/1 Running 0 22m kube-system coredns-576cbf47c7-dmdbk 1/1 Running 3 2d18h kube-system coredns-576cbf47c7-ttdhv 1/1 Running 3 2d18h kube-system etcd-minikube 1/1 Running 4 2d18h kube-system kube-addon-manager-minikube 1/1 Running 2 2d18h kube-system kube-apiserver-minikube 1/1 Running 3 2d18h kube-system kube-controller-manager-minikube 1/1 Running 3 2d18h kube-system kube-proxy-wj8g8 1/1 Running 3 2d18h kube-system kube-scheduler-minikube 1/1 Running 3 2d18h kube-system registry-6kslv 1/1 Running 1 2d18h kube-system storage-provisioner 1/1 Running 5 2d18 ``` Here are steps to reproduce: 1. [Install MiniKubue](https://github.com/apache/camel-k/blob/master/docs/cluster-setup.adoc#minikube) 2. Run `kamel install`
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
