whitefield-framework / whitefield

Whitefield provides a simulation environment for wireless sensor networks by combining RF simulation provided by NS3 and network stack provided by popular IoT OSes such as Contiki/RIOT/OpenThread.
GNU General Public License v2.0
82 stars 24 forks source link

Whitefield can't run 2 instances from different users #108

Closed philok93 closed 4 years ago

philok93 commented 4 years ago

Describe the bug When I tried to run whitefield from a different user in linux, I got this error:

INFO  00:00:00.000 [usock_init:66] USOCK binding to [/WHITEFIELD_0002ffff]
ERROR 00:00:00.000 [usock_init:70] bind failed errno=98
INFO  00:00:00.000 [usock_cleanup:85] closed commline unix sockets

To Reproduce

  1. Start whitefield
  2. Create a new user in linux
  3. Try to run a new whitefield instance. You get an error and can't run it.

Expected behavior It should allow a different instance of whitefield to run from different user. This will help to run simulations simultanously from the same linux machine.

nyrahul commented 4 years ago

@philok93 the issue is taken care of.

Note that I have made some changes to setup.sh. By default, it enables only contiki + ns3.

For using contiki-ng + ns3 ... you need to do scripts/setup.sh --contiki-ng 1 ... ns3 is default enabled.

nyrahul commented 4 years ago

@philok93 Can you confirm if this is working ok for you? Thanks.

philok93 commented 4 years ago

Yes, it works fine! Thanks a lot!