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

Error trying to connect to /var/run/sharkd.sock #12

Closed
gonjumixproject opened this issue May 26, 2022 · 5 comments
Closed

Error trying to connect to /var/run/sharkd.sock #12

gonjumixproject opened this issue May 26, 2022 · 5 comments

Comments

@gonjumixproject
Copy link

I observe below error while launching to the application.
Can you please help me on this error if possible ?

{"level":30,"time":1653552495131,"pid":18,"hostname":"7172137743c7","reqId":9,"req":{"method":"GET","url":"/webshark/json?req=info","hostname":"xxx:8085","remoteAddress":"xxx","remotePort":39129},"msg":"incoming request","v":1}

Error trying to connect to /var/run/sharkd.sock
{ Error: connect ENOENT /var/run/sharkd.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'connect',
  address: '/var/run/sharkd.sock' }
Trying to spawn unix:/var/run/sharkd.sock
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: spawn sharkd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webshark-api@1.0.2 start: `npx fastify start -l info app.js -p 8085`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webshark-api@1.0.2 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-05-26T08_08_15_179Z-debug.log
@lmangani
Copy link
Member

The error is pretty explicit

Error trying to connect to /var/run/sharkd.sock

sharkd is not running and/or reachable by the application

@gonjumixproject
Copy link
Author

Yes, thank you for the response.
I am trying to understand what i am doing wrong since it is perfectly working with qxip/webshark image but fails if i build a new image.

@gonjumixproject
Copy link
Author

Can you please help me to compile the sharkd properly ? I could not find much resource about it.

@NabaragRebaca
Copy link

I have ran into same issue. Can't make sharkd run properly in local env though it is working with qxip/webshark image. @gonjumixproject did you figured out the issue?

@lmangani
Copy link
Member

Check this API fix out d397483
Building and running sharkd is totally up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants