Skip to content

RPC server: BIND Error on Rerun #1

@obadul024

Description

@obadul024

I get a bind error if I run the standard scenario 6 and rereun it.

The command I run:
python3 scenario_runner.py --route srunner/data/routes_training_town03_autocast10.xml srunner/data/towns03_traffic_scenarios_autocast10.json --reloadWorld --bgtraffic 0 --agent AVR/autocast_agents/simple_agent.py --commlog --sharing --debug

The error I get when I Cntrl+C and rerun it:
File "scenario_runner.py", line 130, in __init__ self.traffic_manager = self.client.get_trafficmanager(int(self._args.trafficManagerPort)) RuntimeError: trying to create rpc server for traffic manager; but the system failed to create because of bind error

How I fix it:

  1. first I list all listening ports
    sudo lsof -i -P -n | grep LISTEN
  2. Then I kill it
    kill -9 pid

Is there a way to avoid this error?
Please advise.
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions