db1000n icon indicating copy to clipboard operation
db1000n copied to clipboard

error running job: listen ip4:tcp 0.0.0.0: bind: An invalid argument was supplied

Open pashagolub opened this issue 3 years ago • 4 comments

PS> go version
go version go1.17.6 windows/amd64

PS> git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

PS> git log --pretty=format:'%h' -n 1
9b6ad5e

--

..
2022/03/09 17:29:32.543983 runner.go:112: error running job: listen ip4:tcp 0.0.0.0: bind: An invalid argument was supplied.
2022/03/09 17:29:32.551535 runner.go:112: error running job: listen ip4:tcp 0.0.0.0: bind: An invalid argument was supplied.
2022/03/09 17:29:32.550650 runner.go:112: error running job: listen ip4:tcp 0.0.0.0: bind: An invalid argument was supplied.
2022/03/09 17:29:32.552248 runner.go:112: error running job: listen ip4:tcp 0.0.0.0: bind: An invalid argument was supplied.
...

pashagolub avatar Mar 09 '22 17:03 pashagolub

unless you run it with sudo this is kinda to be expected, see packetgen reference here you should be able to see in the logs how many jobs were started overall to be able to assess how much impact these errors have on the overall effectiveness of the program. The only thing I could do here is improve logging to better indicate that this is kinda expected but there are couple of factors currently that make me shift focus towards other features (if I manage to do them it'll be huge)

arriven avatar Mar 10 '22 05:03 arriven

terminal is running under admin role

pashagolub avatar Mar 10 '22 11:03 pashagolub

apparently, this feature is not supported in windows itself, see relevant issue for the go runtime https://github.com/golang/go/issues/6786

arriven avatar Mar 10 '22 15:03 arriven

Got it thanks. Maybe we should just exclude such kinds of jobs on the win platform? If you can provide me the info where to look, I can prepare the PR. Thanks

pashagolub avatar Mar 10 '22 16:03 pashagolub