camunda-community-hub / camunda-platform-8-github-action

A GitHub action for Zeebe and Camunda Platform 8 to create workflow instances and publish messages
https://camunda.io
MIT License
14 stars 2 forks source link

Failed to load gRPC binary module #10

Closed stnw closed 2 years ago

stnw commented 3 years ago

Hi, after the last update I'm getting an error. If I point to the previous commit the error disappears. ( uses: jwulf/zeebe-action@900fbc32f6b3b3901245994f2b81d74a75a6a604)

The error:

Run jwulf/zeebe-action@master
/home/runner/work/_actions/jwulf/zeebe-action/master/dist/index.js:19242
    throw error;
    ^

Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: node-v83-linux-x64-glibc
Found: [node-v72-darwin-x64-unknown, node-v72-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/home/runner/work/_actions/jwulf/zeebe-action/master/dist/src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node'
jwulf commented 3 years ago

Thanks for reporting this. I'll take a look shortly.

jwulf commented 3 years ago

OK, so I rolled a fix for this, but now I get failures like this:

Run jwulf/zeebe-action@master
/home/runner/work/_actions/jwulf/zeebe-action/master/dist/index.js:19245
    throw e;
    ^

Error: Failed to load /home/runner/work/_actions/jwulf/zeebe-action/master/dist//src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node. The module '/home/runner/work/_actions/jwulf/zeebe-action/master/dist/src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

The environment for the run is:

Current runner version: '2.277.1'
Operating System
  Ubuntu
  20.04.2
  LTS
Virtual Environment
  Environment: ubuntu-20.04
  Version: 20210302.0
  Included Software: actions/virtual-environments@ubuntu20/20210302.0/images/linux/Ubuntu2004-README.md
  Image Release: actions/virtual-environments@ubuntu20%2F (release)

What environment is yours running in?

VictorAITERA commented 3 years ago

+1

jwulf commented 2 years ago

Version 1.0.0 of the Zeebe Action uses Zeebe Node 1.2.4, which uses the pure JS gRPC implementation.

This removes the binary dependency.

It only works with Camunda Cloud / Zeebe 1.x.