GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NodeJs agent fails to instantiate in AWS Lambda in runtime Node v12.x · Issue #9 · stackimpact/stackimpact-nodejs

NodeJs agent fails to instantiate in AWS Lambda in runtime Node v12.x #9

New issue
Copy link
New issue
Copy link
Open
Open
NodeJs agent fails to instantiate in AWS Lambda in runtime Node v12.x#9
Copy link

Description

@mkosterOST
mkosterOST
opened on Jun 5, 2020
Issue body actions

Earlier today I attempted to run a StackImpact agent in an AWS Lambda environment, using the NodeJS 12.x runtime. AWS Lambda currently uses NodeJS 12.16.3, specifically (Running on linux-x64). My call to "agent.start(params)" failed, with the following error message: "Finding/loading of native addon failed."

After this, I updated my local version of NodeJS to the same node version (12.16.3), and was able to reproduce the issue on a windows machine.

It appears that the Agent is failing to resolve an addon because the file abi-map.json does not contain a mapping from NodeJS v12.16.3 to the proper precompiled addon version. The file contains v12.16.0 and v12.16.1, but is missing subsequent minor versions of Node 12.

Modifying this file and adding v12.16.3 resolves the problem.

Reacted by jamaica474

Activity

  1. jamaica474 commented on Jun 30, 2020

    @jamaica474
    jamaica474
    on Jun 30, 2020
    More actions

    I'm seeing fallback as well. Can't install in aws-lambda(node 12) project

    node --version v12.18.1

    "yarn add stackimpact
    yarn add v1.22.4
    [1/4] Resolving packages...
    warning stackimpact > node-gyp > [email protected]: request has been deprecated, see request/request#3142
    [2/4] Fetching packages...
    info [email protected]: The platform "linux" is incompatible with this module.
    info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
    info [email protected]: The platform "linux" is incompatible with this module.
    info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
    [3/4] Linking dependencies...
    warning "@jobtarget/sdk > [email protected]" has unmet peer dependency "promise-ftp-common@^1.1.5".
    [4/4] Building fresh packages...
    [-/5] ⠐ waiting...
    [5/5] ⠐ serverless
    [-/5] ⠐ waiting...
    [4/5] ⠐ stackimpact
    error /home/jamaica/projects/distribution/node_modules/stackimpact: Command failed.
    Exit code: 1
    Command: node node-gyp-fallback.js
    Arguments:
    Directory: /home/jamaica/projects/distribution/node_modules/stackimpact
    Output:
    "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.