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

Unable to run even the sample application #2041

Open
m-faraz opened this issue Feb 1, 2024 · 1 comment
Open

Unable to run even the sample application #2041

m-faraz opened this issue Feb 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@m-faraz
Copy link

m-faraz commented Feb 1, 2024

Description

I am using Putty to access a remote server/VM running a headless version of ballerine. Everything works upto
pnpm run monorepo:init
Upon running
pnpm kyc-manual-review-example
the code breaks
error message just says Unhandled 'error' event

Has the bug been reported before

No

Expected Behaviour

2 tabs should have opened

http://localhost:5173/
http://localhost:5137/

Actual Behaviour

Error comes up as below

[1] > @ballerine/web-ui-sdk@1.4.37 dev /opt/ballerine/sdks/web-ui-sdk
[1] > vite -c vite.dev.config.ts
[1] > @ballerine/backoffice-v2@0.5.45 dev /opt/ballerine/apps/backoffice-v2
[1] > vite
[1] VITE development
[1] node:events:495
[1]       throw er; // Unhandled 'error' event
[1]       ^
[1] Error: spawn xdg-open ENOENT
[1]     at ChildProcess._handle.onexit (node:internal/child_process:284:19)
[1]     at onErrorNT (node:internal/child_process:477:16)
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[1] Emitted 'error' event on ChildProcess instance at:
[1]     at ChildProcess._handle.onexit (node:internal/child_process:290:12)
[1]     at onErrorNT (node:internal/child_process:477:16)
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
[1]   errno: -2,
[1]   code: 'ENOENT',
[1]   syscall: 'spawn xdg-open',
[1]   path: 'xdg-open',
[1]   spawnargs: [ 'http://localhost:5202/' ]
[1] }
[1] Node.js v18.19.0
[1]  ELIFECYCLE  Command failed with exit code 1.
[1]   VITE v4.5.0  ready in 987 ms
[1]   ➜  Local:   http://localhost:5137/
[1]   ➜  Network: http://75.119.145.215:5137/
[1]   ➜  Network: http://172.18.0.1:5137/
[1] node:events:495
[1]       throw er; // Unhandled 'error' event
[1]       ^
[1] Error: spawn xdg-open ENOENT
[1]     at ChildProcess._handle.onexit (node:internal/child_process:284:19)
[1]     at onErrorNT (node:internal/child_process:477:16)
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[1] Emitted 'error' event on ChildProcess instance at:
[1]     at ChildProcess._handle.onexit (node:internal/child_process:290:12)
[1]     at onErrorNT (node:internal/child_process:477:16)
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
[1]   errno: -2,
[1]   code: 'ENOENT',
[1]   syscall: 'spawn xdg-open',
[1]   path: 'xdg-open',
[1]   spawnargs: [ 'http://localhost:5137/' ]
[1] }
[1] Node.js v18.19.0
[1]  ELIFECYCLE  Command failed with exit code 1.
[1]
[1]
[1]
[1]  >  NX   Running target "dev" failed
[1]
[1]    Failed tasks:
[1]
[1]    - @ballerine/web-ui-sdk:dev
[1]    - @ballerine/backoffice-v2:dev
[1]
[1] wait-on http://localhost:3000/api/v1/_health/ready && nx run-many --target=dev --projects=@ballerine/web-ui-sdk,@ballerine/backoffice-v2 exited with code 1

and it gets stuck/hang there

Environment

  • Node version: v18.19.0
  • Device, operating system and its version:
    • Ubuntu 22.04.3 LTS (Jammy)
  • Browser and its version:
    • Chrome 121.0.6167.85
  • Version of the affected apps and packages:
    • latest dev version

Steps to Reproduce

  1. clone ballerine locally.
  2. run pnpm install
  3. run pnpm monorepo:init
  4. run pnpm kyc-manual-review-example

If the bug is confirmed, would you be willing to submit a PR

N

Examples and references

Links, logs, screenshots, and other resources to help us understand the issue.
image

@m-faraz m-faraz added the bug Something isn't working label Feb 1, 2024
@m-faraz m-faraz changed the title Bug - subject of the issue Unable to run even the sample application Feb 1, 2024
@CatDTran
Copy link

CatDTran commented Feb 15, 2024

In my case, the remote ubuntu server was missing xdg-utils package. Follow this link to try to install xdg-utils:

codesandbox/codesandbox-client#6642 (comment)

If that doesn't help, the link also contains possible solutions to modify the way vite command run.

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
None yet
Development

No branches or pull requests

2 participants