You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/02/04 10:42:39 UTC

[GitHub] [camel-k] squakez opened a new issue #2987: Kamel install failure

squakez opened a new issue #2987:
URL: https://github.com/apache/camel-k/issues/2987


   I am trying to install in my local `minikube` using `kamel` version `1.8.0`. The operator pod starts but suddenly breaks with following traces:
   ```
   $ k logs -p camel-k-operator-7c96b9b6bd-x8b6c
   {"level":"info","ts":1643969642.5568368,"logger":"cmd","msg":"maxprocs: Leaving GOMAXPROCS=[8]: CPU quota undefined"}
   {"level":"info","ts":1643969642.5568504,"logger":"cmd","msg":"Go Version: go1.16"}
   {"level":"info","ts":1643969642.556853,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
   {"level":"info","ts":1643969642.5568547,"logger":"cmd","msg":"Buildah Version: 1.14.0"}
   {"level":"info","ts":1643969642.5568566,"logger":"cmd","msg":"Kaniko Version: 0.17.1"}
   {"level":"info","ts":1643969642.5568583,"logger":"cmd","msg":"Camel K Operator Version: 1.8.0"}
   {"level":"info","ts":1643969642.5568602,"logger":"cmd","msg":"Camel K Default Runtime Version: 1.11.0"}
   {"level":"info","ts":1643969642.5568619,"logger":"cmd","msg":"Camel K Git Commit: 7586d7c28775de8328677ff14df2c58792299e21"}
   {"level":"info","ts":1643969642.5770018,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
   {"level":"info","ts":1643969642.5772111,"logger":"cmd","msg":"Configuring manager"}
   {"level":"info","ts":1643969642.5818698,"logger":"cmd","msg":"Installing operator resources"}
   fatal error: sync: unlock of unlocked mutex
   
   goroutine 461 [running]:
   runtime.throw(0x240c728, 0x1e)
   	runtime/panic.go:1117 +0x72 fp=0xc0012b1d90 sp=0xc0012b1d60 pc=0x4385b2
   sync.throw(0x240c728, 0x1e)
   	runtime/panic.go:1103 +0x35 fp=0xc0012b1db0 sp=0xc0012b1d90 pc=0x46d1b5
   sync.(*Mutex).unlockSlow(0x374f49c, 0xc0ffffffff)
   	sync/mutex.go:196 +0xd8 fp=0xc0012b1dd8 sp=0xc0012b1db0 pc=0x47d478
   sync.(*Mutex).Unlock(0x374f49c)
   	sync/mutex.go:190 +0x48 fp=0xc0012b1df8 sp=0xc0012b1dd8 pc=0x47d388
   sync.(*Once).doSlow(0x374f498, 0xc000c07f20)
   	sync/once.go:70 +0x9a fp=0xc0012b1e48 sp=0xc0012b1df8 pc=0x47d59a
   sync.(*Once).Do(...)
   	sync/once.go:59
   github.com/apache/camel-k/pkg/install.KameletCatalog.func1.1(0x0, 0x0)
   	github.com/apache/camel-k/pkg/install/kamelets.go:98 +0x3f7 fp=0xc0012b1f78 sp=0xc0012b1e48 pc=0x1c582f7
   golang.org/x/sync/errgroup.(*Group).Go.func1(0xc00075d380, 0xc000a41f80)
   	golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57 +0x59 fp=0xc0012b1fd0 sp=0xc0012b1f78 pc=0x1a6fe59
   runtime.goexit()
   ```
   This is repeated as many times as we have Kamelets from default catalog, so, I have the feeling it relates to the change we did either in https://github.com/apache/camel-kamelets/pull/754 or https://github.com/apache/camel-kamelets/pull/755. Likely there is something not good when we try to install the kamelets with `.template` instead that `.flow`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] phantomjinx commented on issue #2987: Kamel install failure

Posted by GitBox <gi...@apache.org>.
phantomjinx commented on issue #2987:
URL: https://github.com/apache/camel-k/issues/2987#issuecomment-1058514302


   Note:
   The error `fatal error: sync: unlock of unlocked mutex` concerns the use of sync.Once in the kamelet loading code. Documentation recommends that sync.Once should not be re-assigned within the function that is being executed. This error is the result.
   
   See https://github.com/apache/camel-k/issues/3063 and related PRs for modification of code to ameliorate this problem.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] squakez commented on issue #2987: Kamel install failure

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #2987:
URL: https://github.com/apache/camel-k/issues/2987#issuecomment-1029907990


   I think the problem was due to some old kamelet definition in my namespace. If I delete the kamelets, then the installation procedure won't show that problem.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] squakez commented on issue #2987: Kamel install failure

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #2987:
URL: https://github.com/apache/camel-k/issues/2987#issuecomment-1029856304


   Workaround while we fix the issue:
   ```
   $ export KAMELET_CATALOG_DIR="/tmp/"
   $ kamel install
   OLM is not available in the cluster. Fallback to regular installation.
   Camel K installed in namespace default
   $ k get pods
   NAME                                READY   STATUS    RESTARTS      AGE
   camel-k-operator-7c96b9b6bd-x8b6c   1/1     Running   9 (16m ago)   32m
   ```
   You can use any existing directory which has no kamelets defined in it


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] squakez closed issue #2987: Kamel install failure

Posted by GitBox <gi...@apache.org>.
squakez closed issue #2987:
URL: https://github.com/apache/camel-k/issues/2987


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org