openwhisk-deploy-kube icon indicating copy to clipboard operation
openwhisk-deploy-kube copied to clipboard

Openwhisk install pakages fails

Open Xnyle opened this issue 3 years ago • 7 comments

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?

Xnyle avatar Nov 16 '22 08:11 Xnyle

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.

obrr-hhx avatar Nov 18 '22 14:11 obrr-hhx

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

kzhang28 avatar Nov 28 '22 15:11 kzhang28

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"

raman-lsq avatar Feb 14 '23 12:02 raman-lsq

@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

style95 avatar Feb 16 '23 22:02 style95

The install_packages container is having version 2.27...

and my local i.e. wsl2 is having 2.35

raman-lsq avatar Feb 20 '23 05:02 raman-lsq

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

agcom avatar Dec 11 '23 11:12 agcom

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.

singhsegv avatar Apr 24 '24 10:04 singhsegv