apache / openwhisk-deploy-kube

The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
https://openwhisk.apache.org/
Apache License 2.0
296 stars 228 forks source link

Openwhisk install pakages fails #757

Open Xnyle opened 1 year ago

Xnyle commented 1 year ago

ENOTDIR: not a directory, open '/openwhisk-package-alarms/action/node_modules/.staging/@types/node-7154234c/package.json'

I'm starting to wonder if this project is even maintained anymore?

obrr-hhx commented 1 year ago

I have met this problem because I use the old version image openwhisk/ow-utils in the values.yaml. That image's npm version and node version is too old, npm is just v3.5.2 and node version is v8.x.x.

kzhang28 commented 1 year ago

You can change the openwhisk/ow-utils image version to the latest one. That should help solve the issue.

raman-lsq commented 1 year ago

Any workaround for this? I tried other tags for openwhisk/ow-utils they throw below error

install-packages HEAD is now at 2c621c07 fix start.sh to work on macos (#5019)                             │
│ install-packages /                                                                                         │
│ install-packages /openwhisk/ansible/roles/routemgmt/files /                                                │
│ install-packages Installing apimgmt package                                                                │
│ install-packages ok: updated package apimgmt                                                               │
│ install-packages Creating NPM module .zip files                                                            │
│ install-packages node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)  │
│ install-packages Failed to deploy routemgmt package; will pause, uninstall, and try again                  │
│ install-packages Deleting routemgmt actions                                                                │
│ install-packages error: Unable to get action 'routemgmt/getApi': The requested resource does not exist. (c │
│ install-packages Run 'wsk --help' for usage.

Above error is with below tag

utility:
  imageName: "openwhisk/ow-utils"
  imageTag: "084c2ad"
  imagePullPolicy: "IfNotPresent"
style95 commented 1 year ago

@raman-lsq Do you have glibc_2.29 installed in your local machine?

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found

raman-lsq commented 1 year ago

The install_packages container is having version 2.27...

and my local i.e. wsl2 is having 2.35

agcom commented 7 months ago

This is duplicate of #735; TL;DR: consider deploying Helm from the latest commit (tried and succeeded).

singhsegv commented 2 months ago

The install-packages node: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.28' not found (required by node) issue arises from node 18 and above requiring GLIBC_2.28 and above. So if you don't want the latest nodejs version, you can change the RUN npm install -g n && n 16.20.0 && hash -r in ow-utils Dockerfile to something like RUN npm install -g n && n 16.20.0 && hash -r or any lower version and that should do the trick.