Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2156

Theia builds failing due to keytar / libsecret

XMLWordPrintable

    • False
    • False
    • undefined

      Theia builds have started to fail due to keytar. This was fixed in 2.10 by adding libsecret and libsecret-devel rpms to the theia-dev and theia image configs, but seems to no longer work.

      Maybe more RPMs needed?

      INFO - error /home/theia-dev/theia-source-code/node_modules/keytar: Command failed.
      INFO - Exit code: 1
      
      INFO - Command: prebuild-install || npm run build
      INFO - Arguments:
      INFO - Directory: /home/theia-dev/theia-source-code/node_modules/keytar
      INFO - Output:
      INFO - prebuild-install WARN install getaddrinfo ENOTFOUND github.com
      INFO - npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1628662099222-0.1784765370102941/node but npm is using /usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
      INFO -
      INFO - > keytar@7.7.0 build /home/theia-dev/theia-source-code/node_modules/keytar
      INFO - > node-gyp rebuild
      INFO -
      INFO - make: Entering directory '/home/theia-dev/theia-source-code/node_modules/keytar/build'
      INFO -   CXX(target) Release/obj.target/keytar/src/async.o
      INFO - In file included from ../../node-addon-api/napi.h:2725,
      INFO -                  from ../src/async.cc:4:
      INFO - ../../node-addon-api/napi-inl.h: In member function 'bool Napi::Object::Freeze()':
      INFO - ../../node-addon-api/napi-inl.h:1393:24: error: 'napi_object_freeze' was not declared in this scope
      INFO -    napi_status status = napi_object_freeze(_env, _value);
      INFO -                         ^~~~~~~~~~~~~~~~~~
      INFO - ../../node-addon-api/napi-inl.h:1393:24: note: suggested alternative: 'napi_object_expected'
      INFO -    napi_status status = napi_object_freeze(_env, _value);
      INFO -                         ^~~~~~~~~~~~~~~~~~
      INFO -                         napi_object_expected
      INFO - ../../node-addon-api/napi-inl.h: In member function 'bool Napi::Object::Seal()':
      INFO - ../../node-addon-api/napi-inl.h:1399:24: error: 'napi_object_seal' was not declared in this scope
      INFO -    napi_status status = napi_object_seal(_env, _value);
      INFO -                         ^~~~~~~~~~~~~~~~
      INFO - ../../node-addon-api/napi-inl.h:1399:24: note: suggested alternative: 'napi_object'
      INFO -    napi_status status = napi_object_seal(_env, _value);
      INFO -                         ^~~~~~~~~~~~~~~~
      INFO -                         napi_object
      INFO - make: *** [keytar.target.mk:117: Release/obj.target/keytar/src/async.o] Error 1
      INFO - make: Leaving directory '/home/theia-dev/theia-source-code/node_modules/keytar/build'
      INFO - gyp ERR! build error
      INFO - gyp ERR! stack Error: `make` failed with exit code: 2
      INFO - gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
      INFO - gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
      INFO - gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
      INFO - gyp ERR! System Linux 3.10.0-1062.1.2.el7.s390x
      INFO - gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      INFO - gyp ERR! cwd /home/theia-dev/theia-source-code/node_modules/keytar
      INFO - gyp ERR! node -v v12.22.3
      INFO - gyp ERR! node-gyp -v v5.1.0
      INFO - gyp ERR! not ok
      INFO - npm ERR! code ELIFECYCLE
      INFO - npm ERR! errno 1
      INFO - npm ERR! keytar@7.7.0 build: `node-gyp rebuild`
      INFO - npm ERR! Exit status 1
      INFO - npm ERR!
      INFO - npm ERR! Failed at the keytar@7.7.0 build script.
      INFO - npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      

      https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=38867908

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: