Veins - Connection to TraCI server lost

2,846 views
Skip to first unread message

Matej Dolenc

unread,
Apr 1, 2015, 2:36:47 PM4/1/15
to omn...@googlegroups.com
Hello, 

I am desperately trying to make Veins + Sumo + Omnetpp work.

The problem that I am facing seems to pop up everytime I want to start the test simulation (the one provided in tutorial - veins).

In the tutorial, everything works except this problem at the final step.

What I do is the following:
- Start Omnet++, build veins project, run veins example as Omnet++ simulation
- Start the sumo-launchd.py script, as stated in tutorial. I also tried it some other way but the result is always the same.
- Only then I start the veins example in Tkenv Omnet++
- Immediately when I click onto the Run button I get this error:


Error in module ... Conneciton to TraCI server lost...

I tried running this example with:
- Omnet++ 4.4 + Sumo 0.21.0 + Veins 3.0
- Omnet++ 4.4 + Sumo 0.19.0 + Veins 2.2

Please, any help will be very very much appreciated.

Rens van der Heijden

unread,
Apr 2, 2015, 10:16:56 AM4/2/15
to omn...@googlegroups.com
Hello,

As it tells you, the problem is that SUMO isn't running (TraCI is the protocol used to communicate with SUMO). Please try to run sumo-launchd.py with the -v switch and have a look at the output; if you're not sure what to do with it, post it here so we can have a look at it. Also, if you made changes to omnetpp.ini, make sure that the TraCIScenarioManager is still configured correctly (look for *.manager.host and *.manager.port), and make sure your firewall is not interfering with the connection to SUMO. Finally, check that the SUMO scenario is available in the directory where the omnetpp.ini is (this is the case if you downloaded a fresh copy of veins).

If you need a scenario, you can either use the one included with VEINS (good for testing), or you can use the LuST scenario (which is much more realistic):
https://github.com/lcodeca/LuSTScenario

Last, I've compiled a list of some common issues and their solutions which might help you:
https://github.com/namnatulco/veins/blob/master/usagenotes.md

Regards,
Rens

Matej Dolenc

unread,
Apr 3, 2015, 2:48:43 AM4/3/15
to omn...@googlegroups.com
Here is the output in the Mingwen after I start the simulation:

DLL Load failed error. I also attached the picture of omnetpp.ini file and everything seems to be OK if you check the directory and the ini file. 

No errors in the Omnetpp console.

------------------------------------

I also tried running the sumo launcd script with double -vv switch, as in the tutorial. If i do this I get this output in mingwen:

$ /c/Users/Matej/src/veins-3.0/sumo-launchd.py -vv -c /c/Users/Matej/src/sumo-0
.21.0/bin/sumo.exe
Logging to c:\users\matej\appdata\local\temp\sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 5849
Handling connection from 127.0.0.1 on port 5849
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 293
Got TraCI command of length 288
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="C:/Users/Matej/src/veins-3.0/examples/veins/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is c:\users\matej\appdata\local\temp\sumo-launchd-tmp-xs8nn4
Cleaning up
Result: "None"
Aborting on error: DLL load failed: Navedene procedure ni bilo mogoŔe najti.
Closing connection from 127.0.0.1 on port 5849

Christoph Sommer

unread,
Apr 15, 2015, 10:56:59 AM4/15/15
to omn...@googlegroups.com
Matej Dolenc wrote:
> DLL Load failed error.

Some people have traced this to an error with python, like multiple
different versions of python installed on the system.

Try uninstalling other versions of python or explicitly running the
script with a different version of python.

Best,

Christoph


--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/

nasri marwa

unread,
Apr 25, 2017, 8:42:32 AM4/25/17
to OMNeT++ Users

nasri marwa

unread,
Apr 25, 2017, 8:45:02 AM4/25/17
to OMNeT++ Users
Hello,
i have also meet this problem please help me if u have find the solution


Le mercredi 1 avril 2015 19:36:47 UTC+1, silent_rev a écrit :

Christoph Sommer

unread,
Apr 28, 2017, 8:41:11 AM4/28/17
to omn...@googlegroups.com
nasri marwa wrote:
> i have also meet this problem

the error message says "Connection ... lost. Check your server's log."

Have you checked your server's log?


Best,

Christoph



--
Dr. Christoph Sommer
Distributed Embedded Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

neda divzad

unread,
Feb 3, 2018, 2:51:17 PM2/3/18
to OMNeT++ Users

: [Error 2] The system cannot find the file specified</status>
        <stdout><![CDATA[]]></stdout>
        <stderr><![CDATA[]]></stderr>
</status>
this is the error in terminal

eng.ezdha...@gmail.com

unread,
Feb 24, 2019, 11:11:50 AM2/24/19
to OMNeT++ Users
please help me , i have same a problem  

Christoph Sommer

unread,
Feb 24, 2019, 12:50:24 PM2/24/19
to OMNeT++ Users
eng.ezdha...@gmail.com wrote:
> please help me , i have same a problem

What have you attempted to do? What happened instead? Which software versions are you using? What would I need to do to get the same error?

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)

Ezdhar Shaleesh

unread,
Feb 25, 2019, 1:58:08 AM2/25/19
to omn...@googlegroups.com
SUMO 0.25,Veins 4.4, ,ubuntu16.04 LTS on virtualBox , omnet5.0
I work on subject of privacy in vanet using the schemes of privacy , and in past this simulation was work very good , but now Suddenly it is not work , Although i am not change any thing in codes , to solve this problem , i delete this version on virtualBox and return to  download it on  virtualbox , but the problem still now  
please help me  
Capture.PNG
Capture222.PNG
  

--
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.

Christoph Sommer

unread,
Feb 25, 2019, 6:15:26 PM2/25/19
to OMNeT++ Users
Your error message you pasted spells this out quite clearly:
"Cannot find local schema ... additional_file.xsd, will try website lookup."
and then
"Error: unable to open file https://sumo.dlr.de/xsd/additional_file.xsd"

In fact, this is a frequently asked question (FAQ) of SUMO, answered on
https://sumo.dlr.de/wiki/FAQ#What.27s_the_deal_with_schema_resolution_warnings_.2F_xsd_errors.3F

In brief, SUMO versions from 0.20.0 on download a file from sumo.dlr.de every time SUMO starts. If this fails, SUMO fails to start. This behavior can be disabled, e.g., by turning schema validation off.

You might have started experiencing this error when either sumo.dlr.de or your VM went offline.

Ezdhar Shaleesh

unread,
Feb 28, 2019, 12:24:31 PM2/28/19
to omn...@googlegroups.com
I don't understand you ...
this is on my terminal when i start simulation 
prext@prextimg:~$ ~/src/veins-veins-4.4/sumo-launchd.py -vv -c ~/src/sumo-0.25.0/bin/sumo
Logging to /tmp/sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 33906
Handling connection from 127.0.0.1 on port 33906
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="munich.net.xml"/>
  <copy file="munich10.rou.xml"/>
  <copy file="munich.pol.xml"/>
  <copy file="munich10.sumo.cfg" type="config"/>
  <basedir path="/home/prext/src/veins-veins-4.4/examples/prextdemo/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is /tmp/sumo-launchd-tmp-0Fdqdm
Base dir is /home/prext/src/veins-veins-4.4/examples/prextdemo/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 59831
Starting SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 59831, seed 0
Connecting to SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 59831 (try 1)
Error ([Errno 111] Connection refused)
Connecting to SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 59831 (try 2)
Error ([Errno 111] Connection refused)
Connecting to SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 59831 (try 3)
Releasing lock on port
Starting proxy mode
Done with proxy mode
Done with proxy mode, killing SUMO
Done running SUMO
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>1</exit-code>
<start>1551372774</start>
<end>1551372778</end>
<status>Exited with error code 1</status>
<stdout><![CDATA[Loading configuration... done.
]]></stdout>
<stderr><![CDATA[Warning: unable to open primary document entity '/home/prext/src/sumo-0.25.0/bin/data/xsd/routeTypes.xsd'
 In file 'munich.pol.xml'
 At line/column 1/0.

Warning: unable to open primary document entity '/home/prext/src/sumo-0.25.0/bin/data/xsd/meandataTypes.xsd'
 In file 'munich.pol.xml'
 At line/column 1/0.

Warning: unable to open primary document entity '/home/prext/src/sumo-0.25.0/bin/data/xsd/taz_file.xsd'
 In file 'munich.pol.xml'
 At line/column 1/0.

Error: type ':locationType' not found
 In file 'munich.pol.xml'
 At line/column 14/91.

Quitting (on error).
]]></stderr>
</status>
"
Closing connection from 127.0.0.1 on port 33906
Connection from 127.0.0.1 on port 33914
Handling connection from 127.0.0.1 on port 33914
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="munich.net.xml"/>
  <copy file="munich10.rou.xml"/>
  <copy file="munich.pol.xml"/>
  <copy file="munich10.sumo.cfg" type="config"/>
  <basedir path="/home/prext/src/veins-veins-4.4/examples/prextdemo/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is /tmp/sumo-launchd-tmp-8tq92h
Base dir is /home/prext/src/veins-veins-4.4/examples/prextdemo/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 58854
Starting SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 58854, seed 0
Connecting to SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 58854 (try 1)
Error ([Errno 111] Connection refused)
Connecting to SUMO (/home/prext/src/sumo-0.25.0/bin/sumo -c munich10.sumo.cfg) on port 58854 (try 2)
Releasing lock on port
Starting proxy mode
Done with proxy mode
Done with proxy mode, killing SUMO
Done running SUMO
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>1</exit-code>
<start>1551372848</start>
<end>1551372852</end>
<status>Exited with error code 1</status>
<stdout><![CDATA[Loading configuration... done.
]]></stdout>
<stderr><![CDATA[Warning: Cannot find local schema '/home/prext/src/sumo-0.25.0/bin/data/xsd/additional_file.xsd', will try website lookup.
Error: unable to open file 'https://sumo.dlr.de/xsd/additional_file.xsd'
 In file 'munich.pol.xml'
 At line/column 1/0.

Quitting (on error).
]]></stderr>
</status>
"
Closing connection from 127.0.0.1 on port 33914
please help me 

Ezdhar Shaleesh

unread,
Mar 3, 2019, 2:56:07 PM3/3/19
to omn...@googlegroups.com
Please help me ......
I don't know where i write this  --xml-validation never
please help me ....
image.png

Christoph Sommer

unread,
Mar 4, 2019, 6:41:11 AM3/4/19
to OMNeT++ Users
On 3 Mar 2019, at 20:55, Ezdhar Shaleesh <eng.ezdha...@gmail.com> wrote:
> Please help me ......
> I don't know where i write this --xml-validation never
>

You have posted your question to the OMNeT++ users' mailing list. You will likely get much better help with using SUMO on the SUMO users' mailing list.

For inspiration of where this (and related) parameters can go, please see
https://github.com/sommer/veins/blob/veins-5a1/examples/veins/erlangen.sumo.cfg#L18

Ezdhar Shaleesh

unread,
Mar 5, 2019, 10:29:26 PM3/5/19
to omn...@googlegroups.com
please help me , i don't know where i put sumo_home in which files?????
please help me 
i can't post in stackoverflow.com 
please help me 

Christoph Sommer

unread,
Mar 6, 2019, 2:22:36 AM3/6/19
to OMNeT++ Users
On 6 Mar 2019, at 04:28, Ezdhar Shaleesh <eng.ezdha...@gmail.com> wrote:
>
> please help me [...]
> please help me
>

You are asking on the wrong mailing list.

Suhaib Khan

unread,
Mar 7, 2019, 4:55:38 AM3/7/19
to omn...@googlegroups.com
I was Facing same problem in windows, then i run instant veins in vmware but was unable to open sumo app then i manually enter commands mention in the tutorial of veins and works fine. 

Chaima Zoghlami

unread,
Jul 1, 2019, 9:35:47 AM7/1/19
to omn...@googlegroups.com
i have nstalled omnet++ & sumo but when i try to run the simulation provided in the tutorial i have this error 
can someone help me plz
pb.PNG
Pb2.PNG

Christoph Sommer

unread,
Jul 5, 2019, 9:15:53 AM7/5/19
to OMNeT++ Users
On 1 Jul 2019, at 15:35, Chaima Zoghlami <chaima....@ieee.org> wrote:
>
> i have this error

the error message complains about a file not being found. Have you verified that the file is there?

Norris

unread,
Oct 16, 2021, 5:23:27 PM10/16/21
to OMNeT++ Users
Hello, where you able to find the solution i have a similarRun time error.JPG problem, thanks

sharad singh

unread,
Jun 27, 2022, 1:44:28 AM6/27/22
to OMNeT++ Users

Attempted to read past end of byte buffer -- in module (veins::TraCIScenarioManagerLaunchd) helloNetwork.manager (id=6), at t=0s, event #1


Launch a debugger with the following command?


please suggest me solution

sumo 1.8.0 veins instatnt 5.2i

omnet++

ubuntu 18.0

Muradi Alotabi

unread,
Mar 13, 2023, 11:18:01 PM3/13/23
to OMNeT++ Users
did you solve this ?

Temitope John Alade

unread,
Nov 14, 2023, 5:49:22 AM11/14/23
to OMNeT++ Users
i have this same issue right now i need help 
software am using are
VM 7.0
Instant Veins -5.2-i1
inside the instant veins we have 
OMNet++ 5
Veins 5.2
sumo 1.11.0

how do i check the server logs.  Thank you

Ezdhar Shaleesh

unread,
Nov 14, 2023, 2:32:30 PM11/14/23
to OMNeT++ Users
Yes I sloved it since2019, so I remember in file .sumo.cfg you should write it 


<report>
        <xml-validation value="never"/>
        <xml-validation.net value="never"/>
        <no-step-log value="true"/>
    </report>


And it is run very good 

--
We are deprecating this forum. Please use https://forum.omnetpp.org instead.
---
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.

JohnTemitope Alade

unread,
Nov 14, 2023, 2:45:12 PM11/14/23
to omn...@googlegroups.com
okay thank you i will implement that soon 

Regards
Temitope Alade
Mobile: 07760715061



Reply all
Reply to author
Forward
0 new messages