Skip to content

CI/CD Pipeline Lab (8) in OCP4 101 workshop fails #406

@imak

Description

@imak

The sample application built by the pipeline appears to fail startup with CrashLoopBackoff in lab 8 - CI/CD Pipeline.

The pipeline is configured with this script:
https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/nodejs-sample-pipeline.yaml

The pipeline build in Jenkins completes with success but the pod startup fails for nodejs-postgresql-example-1-hzwbk.

The error appears to be:
Environment:
DEV_MODE=false
NODE_ENV=production
DEBUG_PORT=5858
Launching via npm...
npm info it worked if it ends with ok
npm info using npm@6.14.14
npm info using node@v12.22.5
npm info lifecycle nodejs-rest-http-crud@4.0.0prestart: nodejs-rest-http-crud@4.0.0
npm info lifecycle nodejs-rest-http-crud@4.0.0
start: nodejs-rest-http-crud@4.0.0

nodejs-rest-http-crud@4.0.0 start /opt/app-root/src
node .

/opt/app-root/src/node_modules/on-exit-leak-free/index.js:11
const registry = new FinalizationRegistry(clear)
^

ReferenceError: FinalizationRegistry is not defined
at Object. (/opt/app-root/src/node_modules/on-exit-leak-free/index.js:11:18)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/opt/app-root/src/node_modules/pino/lib/tools.js:8:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
npm info lifecycle nodejs-rest-http-crud@4.0.0~start: Failed to exec start script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodejs-rest-http-crud@4.0.0 start: node .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodejs-rest-http-crud@4.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm timing npm Completed in 170ms

npm ERR! A complete log of this run can be found in:
npm ERR! /opt/app-root/src/.npm/_logs/2022-11-15T20_28_33_473Z-debug.log

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