Greengrass v2 Lambda Component - Cannot find executable nodejs14.x

0

I am deploying a lambda as a component to a greengrass core device and am receiving the following error -

Execution:{IsolationMode:NoContainer RunAs:{Uid:999 Gid:993 Groups:[994 995 993]}}}: cannot find executable nodejs14.x under any of the provided paths [/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /greengrass/v2/work/onwatch.default.onwatch-link/work/worker/oXbK1qzJfOLsuxBuK4DVOwL3oFjvn3HUz9Ecb8fE0LY/lambda /usr/bin /usr/local/bin]

I can run node -v in the terminal and it shows as v14.20.0. Not sure what I am missing?

gefragt vor 2 Jahren248 Aufrufe
1 Antwort
1

I did not realise lambda was looking for the literal executable nodejs14.x

I copied /usr/bin/node to usr/bin/nodejs14.x

re deployed the component and it start to work

beantwortet vor 2 Jahren
  • That is correct. The lambda launcher will look for that exact node executable on the path with a version number at the end. You can also symlink if that works better.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen