Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

velocitas cli 0.5.0 Error: Cannot find module '../build/Debug/pty.node' / GLIBC_2.34 not found #109

Open
mikehaller opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mikehaller
Copy link

mikehaller commented Jun 13, 2023

The CLI throws errors on certain base OS version, as it does not seem to support "older" OS versions (which are still in support, but may not be considered cutting edge...)

Updating to a newer version is of course possible, however many existing containers, such as the (current) "python:3.11" base containers are still based on Debian 11.

Fails on:

  • Ubuntu 20.04 (x86_64) (still the default base of vscode devcontainer as of today and still in support)
  • Docker base images:
    • python:310 - GLIBC_2.34 not found
    • python:3.11 - GLIBC_2.34 not found - fails, although it's based on Debian 11
    • python:3 - GLIBC_2.34 not found
    • debian:10 - GLIBC_2.34 not found
    • debian:11 - GLIBC_2.34 not found
    • ubuntu-18 - GLIBC_2.28 not found
    • ubuntu-20 - GLIBC_2.34 not found

Works on:

  • Ubuntu 22
/workspaces/leda-example-applications (main) $ cat /etc/issue
Ubuntu 20.04.6 LTS \n \l

/workspaces/leda-example-applications (main) $ curl -L https://github.com/eclipse-velocitas/cli/releases/download/v0.5.0/velocitas-linux-x64 -o ./velocitas
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 59.1M  100 59.1M    0     0  51.5M      0  0:00:01  0:00:01 --:--:-- 73.5M
@mikehaller ➜ /workspaces/leda-example-applications (main) $ ./velocitas --help
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /snapshot/cli/node_modules/node-pty/lib/unixTerminal.js
- /snapshot/cli/node_modules/node-pty/lib/index.js
- /snapshot/cli/dist/modules/exec.js
- /snapshot/cli/dist/commands/exec/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/cli/node_modules/@oclif/core/lib/config/plugin.js
- /snapshot/cli/node_modules/@oclif/core/lib/config/config.js
- /snapshot/cli/node_modules/@oclif/core/lib/config/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/command.js
- /snapshot/cli/node_modules/@oclif/core/lib/index.js
- /snapshot/cli/bin/run
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Module._resolveFilename (node:internal/modules/cjs/loader:946:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1951:46)
    at Module._load (node:internal/modules/cjs/loader:787:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js:30:15)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js',
    '/snapshot/cli/node_modules/node-pty/lib/index.js',
    '/snapshot/cli/dist/modules/exec.js',
    '/snapshot/cli/dist/commands/exec/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/module-loader.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/config/plugin.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/config/config.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/config/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/command.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/index.js',
    '/snapshot/cli/bin/run'
  ],
  pkg: true
}
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /snapshot/cli/node_modules/node-pty/lib/unixTerminal.js
- /snapshot/cli/node_modules/node-pty/lib/index.js
- /snapshot/cli/dist/modules/exec.js
- /snapshot/cli/dist/commands/init/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/cli/node_modules/@oclif/core/lib/config/plugin.js
- /snapshot/cli/node_modules/@oclif/core/lib/config/config.js
- /snapshot/cli/node_modules/@oclif/core/lib/config/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/command.js
- /snapshot/cli/node_modules/@oclif/core/lib/index.js
- /snapshot/cli/bin/run
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Module._resolveFilename (node:internal/modules/cjs/loader:946:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1951:46)
    at Module._load (node:internal/modules/cjs/loader:787:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js:30:15)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js',
    '/snapshot/cli/node_modules/node-pty/lib/index.js',
    '/snapshot/cli/dist/modules/exec.js',
    '/snapshot/cli/dist/commands/init/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/module-loader.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/config/plugin.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/config/config.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/config/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/command.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/index.js',
    '/snapshot/cli/bin/run'
  ],
  pkg: true
}
(node:8096) [ERR_DLOPEN_FAILED] Error Plugin: velocitas-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/pkg/33635ea2a13279822d0c9ed28131b67751ca2a5d49cfd3b969c0a9987328e088/node-pty/build/Release/pty.node)
module: @oclif/[email protected]
task: toCached
plugin: velocitas-cli
root: /snapshot/cli
See more details with DEBUG=*
(Use `velocitas --trace-warnings ...` to show where the warning was created)
(node:8096) [ERR_DLOPEN_FAILED] Error Plugin: velocitas-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/pkg/33635ea2a13279822d0c9ed28131b67751ca2a5d49cfd3b969c0a9987328e088/node-pty/build/Release/pty.node)
module: @oclif/[email protected]
task: toCached
plugin: velocitas-cli
root: /snapshot/cli
See more details with DEBUG=*
Lifecycle management of Velocitas Vehicle Applications

VERSION
  velocitas-cli/0.5.0 linux-x64 node-v18.5.0

USAGE
  $ velocitas [COMMAND]

TOPICS
  cache  Interact with the project cache

COMMANDS
  help     Display help for velocitas.
  package  Prints information about packages
  sync     Syncs Velocitas components into your repo.
  upgrade  Updates Velocitas components.

Other notes:

  • Installing and using the cli in Dockerfiles is also a bit inconvenient, as it does not return any proper exit codes on failures such as this one (which leads to incorrectly cached layers). A cli should return with proper exit codes.
  • The "init" command seems to be missing in the help, but that may be a result of the root error described in this issue.
@dennismeister93 dennismeister93 moved this to 🆕 New in Velocitas Backlog Jun 22, 2023
@dennismeister93 dennismeister93 added the bug Something isn't working label Jun 22, 2023
@MP91
Copy link
Contributor

MP91 commented Jun 22, 2023

Hey @mikehaller, for now we only used the CLI in our devcontainers and never had problems, but of course that is a really limited set of OS.

We will try to solve this issue of course!

@kse3hi kse3hi moved this from 🆕 New to 📋 Backlog in Velocitas Backlog Jun 28, 2023
@kse3hi kse3hi moved this from 📋 Backlog to 🔖 Ready in Velocitas Backlog Jun 28, 2023
@dennismeister93
Copy link
Contributor

Hi @mikehaller first of all thank you for your investigation but unfortunately we internally came to a conclusion that we rate this issue as a pretty low priority at the moment and in this case want to clearly point out that your mentioned operating systems are not part of our target platforms. We may integrate the support of a higher range of OS, but not for now.

But other than that, your other mentioned issue #110 for returning proper exit codes will be implemented soon!

Thank you! :)

@dennismeister93 dennismeister93 moved this from 🔖 Approved to ❌Won't fix in Velocitas Backlog Jul 5, 2023
@dennismeister93 dennismeister93 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
@github-project-automation github-project-automation bot moved this from ❌Won't fix to ✅ Done in Velocitas Backlog Jul 5, 2023
@github-project-automation github-project-automation bot moved this from ✅ Done to 🆕 New in Velocitas Backlog Jul 6, 2023
@dennismeister93 dennismeister93 moved this from 🆕 New to 📋 Backlog in Velocitas Backlog Jul 6, 2023
@dennismeister93 dennismeister93 moved this from 🆕 New to 📋 Backlog in Velocitas Backlog Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants