question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn Command failed with exit code 1

See original GitHub issue

Description

Yarn serv exit with error code

Environment

  1. OS (where OpenCTI server runs): Ubuntu 18.04
  2. OpenCTI version: 4.1.1
  3. Other environment details: node v12.18.1
  4. Reference: https://www.notion.so/Manual-deployment-b911beba44234f179841582ab3894bb1

Details:

$ yarn serv
yarn run v1.22.5
$ node build/index.js
{"version":"4.1.1","level":"info","message":"[OPENCTI] Starting platform","timestamp":"2021-02-03T16:51:35.321Z"}
{"version":"4.1.1","level":"info","message":"[CHECK] ElasticSearch is alive","timestamp":"2021-02-03T16:51:35.380Z"}
{"error":{"name":"UnknownError","data":{"message":"","_stack":"S3Error\n    at Object.parseError (/home/cti/opencti/node_modules/minio/dist/main/xml-parsers.js:79:11)\n    at /home/cti/opencti/node_modules/minio/dist/main/transformers.js:156:22\n    at DestroyableTransform._flush (/home/cti/opencti/node_modules/minio/dist/main/transformers.js:80:10)\n    at DestroyableTransform.prefinish (/home/cti/opencti/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:129:10)\n    at DestroyableTransform.emit (events.js:315:20)\n    at prefinish (/home/cti/opencti/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:611:14)\n    at finishMaybe (/home/cti/opencti/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:620:5)\n    at endWritable (/home/cti/opencti/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:643:3)\n    at DestroyableTransform.Writable.end (/home/cti/opencti/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:571:22)\n    at IncomingMessage.onend (_stream_readable.js:682:10)\n    at Object.onceWrapper (events.js:421:28)\n    at IncomingMessage.emit (events.js:327:22)\n    at endReadableNT (_stream_readable.js:1221:12)\n    at processTicksAndRejections (internal/process/task_queues.js:84:21)"}},"version":"4.1.1","level":"error","message":"[OPENCTI] Platform initialization fail","timestamp":"2021-02-03T16:51:35.408Z"}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Where to look?

Regards, Khalid.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SamuelHassinecommented, Feb 7, 2021

Hello @khalidrehan,

This error means you do not have the minimal required Redis version installed. Please check the documentation here: https://www.notion.so/luatix/64a9fb9f12cd4215a699d13340eecc55?v=185778f3e028452b9443ccfc01fbcaca.

Is your Redis > to 6.0?

Kind regards, Samuel

1reaction
khalidrehancommented, Feb 4, 2021

I’m noticing this errors:

"reason":"Error creating index"
"reason":"java.util.ArrayList cannot be cast to java.util.Map"
Read more comments on GitHub >

github_iconTop Results From Across the Web

error Command failed with exit code 1. when I try to run yarn
Basically there might be an issue with the wrongly fetched dependency or something happened during transmission. Shailesh advised you removed ...
Read more >
yarn+react: error Command failed with exit code 1 · Issue #4009
yarn run v1.3.2 $ react-scripts start 'react-scripts' is not recognized as an internal or external command, operable program or batch file.
Read more >
Yarn build results in "error Command failed with exit code 1 ...
Hi Experts, I am trying to build my cutome kibana pluging using yarn build and getting "error Command failed with exit code 1."...
Read more >
Error Codes | Yarn - Package Manager
This error is usually caused by a Yarn plugin being missing. YN0011 - FETCHER_NOT_FOUND. A fetcher cannot be found for the given package....
Read more >
Command failed with exit code 1: yarn build for coreui-free ...
Command failed with exit code 1 : yarn build for coreui-free-react-admin-template - Build Plugins - Netlify Support Forums.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found