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

Docker example command broken #23

Closed
scottyob opened this issue Aug 29, 2023 · 2 comments · May be fixed by #24
Closed

Docker example command broken #23

scottyob opened this issue Aug 29, 2023 · 2 comments · May be fixed by #24

Comments

@scottyob
Copy link

[scott@sob-desktop tmp]$ sudo docker run -ti --rm -p 8085:8085 -v $(pwd)/captures:/captures ghcr.io/qxip/webshark:latest
rm: cannot remove '': No such file or directory

> [email protected] start
> npx fastify start -l info app.js -a 0.0.0.0 -p 8085

{"level":30,"time":1693287165225,"pid":43,"hostname":"e9818d18aa01","msg":"Server listening at http://0.0.0.0:8085"}
{"level":30,"time":1693287168418,"pid":43,"hostname":"e9818d18aa01","reqId":"req-1","req":{"method":"GET","url":"/webshark/","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47474},"msg":"incoming request"}
{"level":30,"time":1693287168425,"pid":43,"hostname":"e9818d18aa01","reqId":"req-1","res":{"statusCode":200},"responseTime":7.2343679999466985,"msg":"request completed"}
{"level":30,"time":1693287168438,"pid":43,"hostname":"e9818d18aa01","reqId":"req-2","req":{"method":"GET","url":"/webshark/css/webshark.css","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47474},"msg":"incoming request"}
{"level":30,"time":1693287168439,"pid":43,"hostname":"e9818d18aa01","reqId":"req-3","req":{"method":"GET","url":"/webshark/css/awesomplete.css","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47490},"msg":"incoming request"}
{"level":30,"time":1693287168440,"pid":43,"hostname":"e9818d18aa01","reqId":"req-2","res":{"statusCode":200},"responseTime":1.6142440000548959,"msg":"request completed"}
{"level":30,"time":1693287168440,"pid":43,"hostname":"e9818d18aa01","reqId":"req-4","req":{"method":"GET","url":"/webshark/js/d3.v4.min.js","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47506},"msg":"incoming request"}
{"level":30,"time":1693287168441,"pid":43,"hostname":"e9818d18aa01","reqId":"req-5","req":{"method":"GET","url":"/webshark/js/webshark-app.js","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47474},"msg":"incoming request"}
{"level":30,"time":1693287168441,"pid":43,"hostname":"e9818d18aa01","reqId":"req-6","req":{"method":"GET","url":"/webshark/js/wavesurfer.min.js","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47522},"msg":"incoming request"}
{"level":30,"time":1693287168442,"pid":43,"hostname":"e9818d18aa01","reqId":"req-3","res":{"statusCode":200},"responseTime":2.2881270002108067,"msg":"request completed"}
{"level":30,"time":1693287168442,"pid":43,"hostname":"e9818d18aa01","reqId":"req-7","req":{"method":"GET","url":"/webshark/css/c3.min.css","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47528},"msg":"incoming request"}
{"level":30,"time":1693287168443,"pid":43,"hostname":"e9818d18aa01","reqId":"req-8","req":{"method":"GET","url":"/webshark/js/c3.min.js","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47540},"msg":"incoming request"}
{"level":30,"time":1693287168445,"pid":43,"hostname":"e9818d18aa01","reqId":"req-6","res":{"statusCode":200},"responseTime":3.4042609999887645,"msg":"request completed"}
{"level":30,"time":1693287168445,"pid":43,"hostname":"e9818d18aa01","reqId":"req-7","res":{"statusCode":200},"responseTime":2.706019999925047,"msg":"request completed"}
{"level":30,"time":1693287168445,"pid":43,"hostname":"e9818d18aa01","reqId":"req-4","res":{"statusCode":200},"responseTime":4.949557999847457,"msg":"request completed"}
{"level":30,"time":1693287168446,"pid":43,"hostname":"e9818d18aa01","reqId":"req-5","res":{"statusCode":200},"responseTime":4.552250000182539,"msg":"request completed"}
{"level":30,"time":1693287168446,"pid":43,"hostname":"e9818d18aa01","reqId":"req-8","res":{"statusCode":200},"responseTime":3.214585999958217,"msg":"request completed"}
{"level":30,"time":1693287168476,"pid":43,"hostname":"e9818d18aa01","reqId":"req-9","req":{"method":"GET","url":"/webshark/json?method=info","hostname":"localhost:8085","remoteAddress":"172.17.0.1","remotePort":47506},"msg":"incoming request"}
Error trying to connect to /var/run/sharkd.sock
Error: connect ENOENT /var/run/sharkd.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'connect',
  address: '/var/run/sharkd.sock'
}
Trying to spawn unix:/var/run/sharkd.sock
Error spawning sharkd under /var/run/sharkd.sock / exit 1
[scott@sob-desktop tmp]$ 
@scottyob
Copy link
Author

Command in readme should instead read:

docker run -e SHARKD_SOCKET=/home/node/sharkd.sock -ti --rm -p 8085:8085 -v $(pwd)/captures:/captures ghcr.io/qxip/webshark:latest

ekoyle added a commit to ekoyle/node-webshark that referenced this issue Aug 29, 2023
 * set SHARKD_SOCKET=/home/node/sharkd.sock in Dockerfile
 * closes QXIP#23
@lmangani
Copy link
Member

resolved in latest

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

Successfully merging a pull request may close this issue.

2 participants