Getting a error while executing veins scenario in omnet++ .Error:Connection to TraCI server lost.

644 views
Skip to first unread message

Palash Jain

unread,
Sep 14, 2018, 2:29:29 AM9/14/18
to OMNeT++ Users
I was simulating a VEINS scenario omnetpp.ini on OMNET++ IDE interface in connection with SUMO.As directed in the tutorial guide https://veins.car2x.org/tutorial/ I followed all the steps and at final step where in the OMNeT++  IDE, we have to simulate the Veins demo scenario by right-clicking on veins-4.7/examples/veins/omnetpp.ini and choosing Run As > OMNeT++ simulation.I did as directed  but still I got error message 
<!> Error: Connection to TraCI server lost. Check your server's log. Error message: 104: Connection reset by peer -- in module (Veins::TraCIScenarioManagerLaunchd) RSUExampleScenario.manager (id=6), at t=0s, event #1

At the terminal window it is showing

Connection from 127.0.0.1 on port 33636
Handling connection from 127.0.0.1 on port 33636
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 295
Got TraCI command of length 290
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/palash/veins-veins-4.7.1/examples/veins/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is /tmp/sumo-launchd-tmp-LdFqQt
Base dir is /home/palash/veins-veins-4.7.1/examples/veins/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 44249
Starting SUMO (/home/palash/sumo-0.32.0/bin/sumo.exe -c erlangen.sumo.cfg) on port 44249, seed 0
Releasing lock on port
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>-1</exit-code>
<start>1536898171</start>
<end>1536898171</end>
<status>Could not start SUMO (/home/palash/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 33636

PLEASE LET ME KNOW WHAT CAN I DO TO REMOVE THE ERROR.

min wang

unread,
May 15, 2019, 2:40:08 AM5/15/19
to OMNeT++ Users
I encounter the same question on my ubuntu 16.04 and omnet 4.4  sumo 0.22.0

在 2018年9月14日星期五 UTC+8下午2:29:29,Palash Jain写道:

Christoph Sommer

unread,
May 15, 2019, 6:42:54 AM5/15/19
to OMNeT++ Users
Palash Jain wrote:
> Could not start SUMO (/home/palash/sumo-0.32.0/bin/sumo.exe -c erlangen.sumo.cfg): [Errno 2] No such file or directory</status>
>
> PLEASE LET ME KNOW WHAT CAN I DO TO REMOVE THE ERROR.

The error message ("No such file or directory") points to you trying to run a file that does not exist. Most likely, the file (/home/palash/sumo-0.32.0/bin/sumo.exe) really does not exist. Maybe it is in a different path, or maybe it is called "sumo" instead of "sumo.exe".

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/

Emmanuel Amachaghi

unread,
May 19, 2019, 7:45:05 PM5/19/19
to omn...@googlegroups.com
This error message is due to incorrect path. 
You can rectify this by pointing to the directory it is searching for.

Regards, 
//emma

Virus-free. www.avg.com

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/B75CF174-070B-49A2-8409-4D71C4306A1A%40ccs-labs.org.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages