You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
release: not found when I do helm install on a chart with some weird properties #1996
bugCategorizes issue or PR as related to a bug.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.
Came across this while doing some mad science on directories that are both Helm charts and Javascript modules. Minimal repro case is here. The end result is that Helm successfully deploys a chart and immediately forgets that it did, like so:
> helm install --name test .
NAME: test
Error: getting deployed release "test": release: not found
It does actually create the relevant Deployment object, but it doesn't know anything about the test release. I have to manually go in and delete the Deployment with kubectl.
I'm sure the problem is related to the node_modules directory -- it contains a zillion files and directories for all of my Javascript dependencies. Potentially I'm exceeding some hidden limit for files allowed within a Helm chart? Obviously I should be putting node_modules in .helmignore, but presumably Helm should also be doing something more coherent upon this failure case.
Reacted by Ryan Roden-Corrent, Gavin D'mello, rishisharmamt, James Marino and Jimmy Xie
changed the title [-]Silent failure of `helm install` on a chart with some weird properties.[/-][+]release: not found when I do `helm install` on a chart with some weird properties[/+]on Feb 19, 2017
changed the title [-]release: not found when I do `helm install` on a chart with some weird properties[/-][+]`release: not found` when I do `helm install` on a chart with some weird properties[/+]on Feb 19, 2017
Can you get the output of Tiller's logs using kubectl? Also, if you do kubectl get configmap --namespace kube-system, do you see a config map with that release name (e.g. test)? THat's where it stores its deployment record.
Reacted by Roderick Jonsson, Gavin D'mello, artem-timchenko, Vasudev H V, Steve Meierhofer, Fardin Khanjani and 0x4C33
Ah, looks like you got it, Tiller complains that it can't create the ConfigMap:
2017/02/22 01:58:57 storage.go:133: Getting release history for 'test'
2017/02/22 01:58:57 release_server.go:913: Executing pre-install hooks for test
2017/02/22 01:58:57 release_server.go:940: Hooks complete for pre-install test
2017/02/22 01:58:57 storage.go:133: Getting release history for 'test'
2017/02/22 01:58:57 release_server.go:913: Executing post-install hooks for test
2017/02/22 01:58:57 release_server.go:940: Hooks complete for post-install test
2017/02/22 01:58:57 storage.go:45: Create release "test" (v1) in storage
2017/02/22 01:58:57 cfgmaps.go:316: configmaps: create: failed to create: ConfigMap "test.v1" is invalid: data: Too long: must have at most 1048576 characters
2017/02/22 01:58:57 release_server.go:817: warning: Failed to record release "test": ConfigMap "test.v1" is invalid: data: Too long: must have at most 1048576 characters
2017/02/22 01:58:59 storage.go:133: Getting release history for 'test'
Ah! So the chart is too large to get stored. IIRC, there's a limit in Kubernetes 1.5 that no resource can be larger than (approximately) 1M. We do gzip the chart, but it probably still pushed beyond that limit.
EDIT: and you can use .helmignore (like .gitignore) to prevent the Node stuff from getting pushed to Helm, which may fix this for you.
Reacted by ravi, Gavin D'mello, Ashwani, Abhilash Joseph and irvingwa
Would it be possible to have a better error message for this? I had the same error release: not found, and it took me a while to figure out that the problem was that there was too much data to fit in a ConfigMap.
I'm not familiar with the design of Helm and Tiller, but maybe there's an easy way for Tiller to return this as a clear error message which Helm would show to the user?
Reacted by Simon Bein, Ryan Roden-Corrent, Frank Bartsch, Nick Phillips, Eric Beahan, Rocky Shang, Oliver L Schoenborn, Danny Clarke, rishisharmamt, Michele Degges and 2 more
I'd like to +1 the error message part. Ran into the same problem and had to figure out that the issue is a configmap (in my case one that didn't get delete with --purge for whatever reason).
Reacted by Alexander Lukyanchenko, boosh, James White, Bryan Larsen, Jami Stark, Waldemar Hummer, Josh Giles, iamrandys, Zachary M. Train, Sébastien Gandon and 11 more
This should be updated to be a bug. When this issue happens the user gets a bad error message and the chart installs get orphaned. If possible it would also be great to catch this prior to any kubernetes objects being installed or even by helm lint. In my specific case my chart is at the root of a git repo so a helm package . shows me that it is packaging up the .git folder in the root of the repo which is why my chart ballooned to over 1M. My fix was of course to add a .helmignore for .git, but I also have to manually clean up all resources created by the failed helm install
helm install .
NAME: ugly-newt
Error: getting deployed release "ugly-newt": release: "ugly-newt" not found
helm delete --purge ugly-newt
Error: Unable to lock release "ugly-newt": release not found
kubectl get pods | grep ugly
ugly-newt-prometheus-alertmanager-2167339090-2tf56 2/2 Running 0 1m
ugly-newt-prometheus-kube-state-metrics-2256588538-w98gm 1/1 Running 0 1m
ugly-newt-prometheus-server-3612114810-flv8f 2/2 Running 0 1m
Reacted by Ryan Roden-Corrent, Tautvydas Misiunas, Steve Meierhofer, Mauricio Scheffer, jolinlizhihua and nickvab
+1 for updating this to a bug.
I ran into the same problem. The charts were orphaned and i had to manually delete all the resources helm created and couldnt do a helm delete --purge
[storage/driver] 2017/10/02 15:25:43 create: failed to create: ConfigMap "mangy-hog.v1" is invalid: data: Too long: must have at most 1048576 characters
[tiller] 2017/10/02 15:25:43 warning: Failed to record release mangy-hog: ConfigMap "mangy-hog.v1" is invalid: data: Too long: must have at most 1048576 characters
-> % kubectl get statefulset
NAME DESIRED CURRENT AGE
hardy-camel-mongodb-replicaset 3 1 16m
innocent-pronghorn-mongodb-replicaset 3 1 21m
loping-boxer-mongodb-replicaset 3 1 19m
mangy-hog-mongodb-replicaset 3 1 9m
mongo-log-rec-mongodb-replicaset 3 1 23m
veering-whippet-mongodb-replicaset 3 1 10m
volted-dragonfly-mongodb-replicaset 3 1 15m
Reacted by Waldemar Hummer, iamrandys, Ivan Markin, Zachary M. Train, Sébastien Gandon, Roberto Gandolfo Hashioka and Mauricio Scheffer
This also happens if your chart is at the root of the repo. Seems helm is packaging the .git repository. With the current error message, this is very hard to diagnose.
Adding .git and other non chart related directories and files to the .helmignore file fixes the problem.
When you get bit, all the resources are left dangling, which violates the helm transaction.
Reacted by Ivan Markin, Zachary M. Train, Todd Lyons, Philipp Erbelding, Richard Holzeis, mosquitosik and Mauricio Scheffer
I ran into this as well and it took quite a while to realize it's because I had a scratch file in the chart directory. A better error message would be greatly appreciated.
Helm fails on install / upgrade. Tiller reports Failed to record release xxxx: ConfigMap "xxxx.v1" is invalid: data: Too long: must have at most 1048576 characters when in fact the configmap is fine. The error is elsewhere with the chart containing nested charts due to a publishing error.
Maybe helm can have an option leave out the contents of the charts' configmaps when storing the tiller configmap (for managing the chart). That way helm would still be able to know about all the properties/metadata in order to manage the chart but without the added storage need for cm-contentes. A nice tradeoff for people with many and large configmaps in the chart.
I realize this is an old post and closed issue, but I wanted to share what I discovered as the cause of the over-sized configmap. Each time I issued a helm package ./ command, any previous versions of the package (*.tzg files) was included in the current one. The tgz package file kept growing, exponentially. The cure was to add *.tgz to the .helmignore file.
Reacted by Kevin Gibson, Hubert Rutkowski, Sendhil Kumar R and Daichi Kimura
Reacted by Sendhil Kumar R, Daichi Kimura and bena-hsieh
maybe name issue,
[tiller] 2018/12/04 06:15:25 warning: Failed to record release k8s_service: ConfigMap "k8s_service.v1" is invalid: metadata.name: Invalid value: "k8s_service.v1": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is 'a-z0-9?(.a-z0-9?)*')
[kube] 2018/12/04 06:15:25 building resources from manifest
bugCategorizes issue or PR as related to a bug.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.
Activity
[-]Silent failure of `helm install` on a chart with some weird properties.[/-][+]release: not found when I do `helm install` on a chart with some weird properties[/+][-]release: not found when I do `helm install` on a chart with some weird properties[/-][+]`release: not found` when I do `helm install` on a chart with some weird properties[/+]technosophos commentedon Feb 21, 2017
Can you get the output of Tiller's logs using
kubectl? Also, if you dokubectl get configmap --namespace kube-system, do you see a config map with that release name (e.g.test)? THat's where it stores its deployment record.iameli commentedon Feb 22, 2017
Ah, looks like you got it, Tiller complains that it can't create the ConfigMap:
technosophos commentedon Feb 24, 2017
Ah! So the chart is too large to get stored. IIRC, there's a limit in Kubernetes 1.5 that no resource can be larger than (approximately) 1M. We do gzip the chart, but it probably still pushed beyond that limit.
EDIT: and you can use
.helmignore(like.gitignore) to prevent the Node stuff from getting pushed to Helm, which may fix this for you.Mario54 commentedon Apr 28, 2017
Would it be possible to have a better error message for this? I had the same error
release: not found, and it took me a while to figure out that the problem was that there was too much data to fit in aConfigMap.I'm not familiar with the design of Helm and Tiller, but maybe there's an easy way for Tiller to return this as a clear error message which Helm would show to the user?
erikbgithub commentedon May 22, 2017
I'd like to +1 the error message part. Ran into the same problem and had to figure out that the issue is a configmap (in my case one that didn't get delete with
--purgefor whatever reason).sstarcher commentedon Jul 24, 2017
This should be updated to be a bug. When this issue happens the user gets a bad error message and the chart installs get orphaned. If possible it would also be great to catch this prior to any kubernetes objects being installed or even by helm lint. In my specific case my chart is at the root of a git repo so a
helm package .shows me that it is packaging up the.gitfolder in the root of the repo which is why my chart ballooned to over 1M. My fix was of course to add a.helmignorefor.git, but I also have to manually clean up all resources created by the failedhelm installkwilliams057 commentedon Oct 2, 2017
+1 for updating this to a bug.
I ran into the same problem. The charts were orphaned and i had to manually delete all the resources helm created and couldnt do a helm delete --purge
davidovich commentedon Oct 19, 2017
This also happens if your chart is at the root of the repo. Seems helm is packaging the .git repository. With the current error message, this is very hard to diagnose.
Adding .git and other non chart related directories and files to the
.helmignorefile fixes the problem.When you get bit, all the resources are left dangling, which violates the helm transaction.
thoyt commentedon Nov 3, 2017
I ran into this as well and it took quite a while to realize it's because I had a scratch file in the chart directory. A better error message would be greatly appreciated.
17 remaining items
rcorre commentedon Jul 5, 2018
/remove-lifecycle stale
macropin commentedon Sep 7, 2018
As per https://github.com/confluentinc/cp-helm-charts/issues/135 I believe that this is bug should be addressed:
Helm fails on install / upgrade. Tiller reports
Failed to record release xxxx: ConfigMap "xxxx.v1" is invalid: data: Too long: must have at most 1048576 characterswhen in fact the configmap is fine. The error is elsewhere with the chart containing nested charts due to a publishing error.Helm should handle this more elegantly.
JarleB commentedon Sep 7, 2018
+1
Maybe helm can have an option leave out the contents of the charts' configmaps when storing the tiller configmap (for managing the chart). That way helm would still be able to know about all the properties/metadata in order to manage the chart but without the added storage need for cm-contentes. A nice tradeoff for people with many and large configmaps in the chart.
chilianyi commentedon Sep 21, 2018
It happened on my environment too.
The log in tiller is:
Because of the quota of configmap is not enough
davidxjohnson commentedon Oct 15, 2018
I realize this is an old post and closed issue, but I wanted to share what I discovered as the cause of the over-sized configmap. Each time I issued a
helm package ./command, any previous versions of the package (*.tzg files) was included in the current one. The tgz package file kept growing, exponentially. The cure was to add*.tgzto the.helmignorefile.Add helmignore to avoid uploading useless files to tiller when deploy…
Add helmignore to avoid uploading useless files to tiller when deploy…
Add helmignore to avoid uploading useless files to tiller when deploy…
Add helmignore to avoid uploading useless files to tiller when deploy…
mumubin commentedon Dec 4, 2018
maybe name issue,
[tiller] 2018/12/04 06:15:25 warning: Failed to record release k8s_service: ConfigMap "k8s_service.v1" is invalid: metadata.name: Invalid value: "k8s_service.v1": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is 'a-z0-9?(.a-z0-9?)*')
[kube] 2018/12/04 06:15:25 building resources from manifest
Add helmignore to avoid uploading useless files to tiller when deploy…
fateh001 commentedon Apr 25, 2023
$ helm upgrade --install my-release http://utilities.hcldevopscoe.com:30323/repository/myhelmrepo/deploy-0.1.0.tgz --set image.repository=http://docker.gitops.hcldevopscoe.com/docker-repo/my-docker-image,image.tag=${CI_COMMIT_SHORT_SHA}
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /builds/fmohamm/java-container-based-deploymet.tmp/KUBECONFIG_FILE
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /builds/fmohamm/java-container-based-deploymet.tmp/KUBECONFIG_FILE
Release "my-release" does not exist. Installing it now.
Error: failed to fetch http://utilities.hcldevopscoe.com:30323/repository/myhelmrepo/deploy-0.1.0.tgz : 404 Not Found
Does anyone aware of this issue, I need help on this. Thanks!