Sumo cannot connect to Tracl server error 104

28 views
Skip to first unread message

Muhammad Waqar Younis

unread,
Apr 18, 2018, 6:39:06 AM4/18/18
to OMNeT++ Users
Hi,

1.I have followed all the steps in veins tutorial. 
2.start sumo first  with this command:  /home/user/veins-4.6/sumo-launchd.py -vv -c /home/user/sumo-0.32.0/bin/sumo.exe
3.But whenever I run veins example from omnet++ , I get an error "could not connect Tracl server". 

This is the error in sumo window:

Listening on port 9999
Connection from 127.0.0.1 on port 44276
Handling connection from 127.0.0.1 on port 44276
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 292
Got TraCI command of length 287
Got TraCI command 0x75
Got CMD_FILE_SEND for "sumo-launchd.launch.xml"
Got CMD_FILE_SEND with data "<launch>
  <copy file="erlangen.net.xml"/>
  <copy file="erlangen.rou.xml"/>
  <copy file="erlangen.poly.xml"/>
  <copy file="erlangen.sumo.cfg" type="config"/>
  <basedir path="/home/waqaryounis/veins-4.6/examples/veins/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is /tmp/sumo-launchd-tmp-RIKTKw
Base dir is /home/waqaryounis/veins-4.6/examples/veins/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 52581
Starting SUMO (/home/waqaryounis/sumo-0.32.0/bin/sumo.exe -c erlangen.sumo.cfg) on port 52581, seed 0
Releasing lock on port
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>-1</exit-code>
<start>1524047685</start>
<end>1524047685</end>
<status>Could not start SUMO (/home/waqaryounis/sumo-0.32.0/bin/sumo.exe -c erlangen.sumo.cfg): [Errno 2] No such file or directory</status>
<stdout><![CDATA[]]></stdout>
<stderr><![CDATA[]]></stderr>
</status>
"
Closing connection from 127.0.0.1 on port 44276

I have tried different versions of sumo also but there is always this error. Please help me. Thank you

Christoph Sommer

unread,
Apr 18, 2018, 7:50:47 AM4/18/18
to omn...@googlegroups.com
Muhammad Waqar Younis wrote:
>
> 1.I have followed all the steps in veins tutorial.
> 2.start sumo first with this command: /home/user/veins-4.6/sumo-launchd.py -vv -c /home/user/sumo-0.32.0/bin/sumo.exe
> [...]
> Starting SUMO (/home/waqaryounis/sumo-0.32.0/bin/sumo.exe -c erlangen.sumo.cfg) on port 52581, seed 0
>

This cannot be. If you are really using the command you said you are using, you should see a line saying "Starting SUMO (/home/user..." instead of "Starting SUMO (/home/waqaryounis..."

Also, I do not think the SUMO binary on your system is called "sumo.exe", but rather "sumo" or "sumoD"

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

Alfonso Ariza Quintana

unread,
Apr 18, 2018, 7:52:55 AM4/18/18
to omn...@googlegroups.com

(/home/waqaryounis/sumo-0.32.0/bin/sumo.exe –c

 

This route doesn’t seem to be correct if you are using windows.

 

Usually the path in windows start by the disk, something like /c/…

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
omnetpp+u...@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

mehdi saki

unread,
Aug 27, 2018, 8:18:08 PM8/27/18
to OMNeT++ Users
Hi Muhammad,

If you are working on Linux, you first need to install the Sumo, through terminal: "sudo apt install sumo" in the directory that unpacked Sumo.
Reply all
Reply to author
Forward
0 new messages