snapcrafters / helm

Unofficial Helm installer for Linux
https://snapcraft.io/helm
MIT License
36 stars 26 forks source link

[Bug]: fork/exec /snap/bin/helm: permission denied #82

Closed EdsonSchleiAcc closed 9 months ago

EdsonSchleiAcc commented 10 months ago

What happened?

kustomize build --helm-command /snap/bin/helm --enable-helm

What should have happened?

Error: unable to run: '/snap/bin/helm version -c --short' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-1580703234/helm HELM_CACHE_HOME=/tmp/kustomize-helm-1580703234/helm/.cache HELM_DATA_HOME=/tmp/kustomize-helm-1580703234/helm/.data] (is '/snap/bin/helm' installed?): fork/exec /snap/bin/helm: permission denied

Output of snap info $snap_name

snap info kustomize
name:      kustomize
summary:   Kubernetes native configuration management
publisher: abskmj
store-url: https://snapcraft.io/kustomize
contact:   https://github.com/abskmj/snapcraft-kustomize/issues
license:   unset
description: |
  Kustomize introduces a template-free way to customize application configuration
  that simplifies the use of off-the-shelf applications.
commands:
  - kustomize
snap-id:      Jj5ZG7PyLsqV1ByLBquH4izp4u3i4vaj
tracking:     latest/stable
refresh-date: 7 days ago, at 08:10 CET
channels:
  latest/stable:    5.3.0 2023-12-08 (42) 23MB -
  latest/candidate: ↑                          
  latest/beta:      ↑                          
  latest/edge:      ↑                          
installed:          5.3.0            (42) 23MB -

snap info helm
name:      helm
summary:   The Kubernetes package manager
publisher: Snapcrafters✪
store-url: https://snapcraft.io/helm
contact:   https://github.com/snapcrafters/helm/issues
license:   unset
description: |
  Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes
  resources.

  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
commands:
  - helm
snap-id:      VY12auPDSljUlac4CZaOdMExw7IASsgB
tracking:     latest/stable
refresh-date: 35 days ago, at 15:33 CET
channels:
  latest/stable:    3.10.1  2023-02-18 (372) 11MB classic
  latest/candidate: ↑                             
  latest/beta:      ↑

Output of snap connections $snap_name

snap connections kustomize
Interface        Plug                       Slot      Notes
home             kustomize:home             :home     -
network          kustomize:network          :network  -
removable-media  kustomize:removable-media  -         -

snap connections helm
->empty

Output of snap version

snap version
snap    2.60.4
snapd   2.60.4
series  16
ubuntu  22.04
kernel  6.2.0-39-generic

Relevant log output

couldn't find any logs :(

Teminal output of app

$ kustomize build --helm-command /snap/bin/helm --enable-helm
Error: unable to run: '/snap/bin/helm version -c --short' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-3137263375/helm HELM_CACHE_HOME=/tmp/kustomize-helm-3137263375/helm/.cache HELM_DATA_HOME=/tmp/kustomize-helm-3137263375/helm/.data] (is '/snap/bin/helm' installed?): fork/exec /snap/bin/helm: permission denied
EdsonSchleiAcc commented 10 months ago

The helm is installed as you can see below:

$ /snap/bin/helm version -c --short v3.10.1+g9f88ccb

popey commented 9 months ago

This feels like "working as designed" as Helm works. If it doesn't work when launched from another snap, that's likely the configuration of the other app (in this case, kustomize), or it's just snapd doing confinement correctly.

Whether that's desirable is a separate discussion.

EdsonSchleiAcc commented 9 months ago

Hi Popey,

Thank you for the details.