[Omnetpp-l] Model error: Could not connect to TraCI server.

1,214 views
Skip to first unread message

mixsum

unread,
Feb 21, 2012, 6:45:33 AM2/21/12
to omnetpp
Salam Alykom,

During runnig the example traCI inetmanet in omnet , I found this.



RUNTIME ERROR. A cRuntimeError exception is about to be thrown, and
you
requested (by setting debug-on-errors=true in the ini file) that
errors
abort execution and break into the debugger.

You should now probably be running the simulation under gdb or another
debugger. The simulation kernel will now raise a SIGABRT signal which
will
get you into the debugger. If you are not running under a debugger,
you can
still use the core dump for post-mortem debugging. Once in the
debugger,
view the call stack (in gdb: "bt" command) to see the context of the
runtime error.

<!> Error in module (TraCIScenarioManager) scenario.manager (id=3)
during network initialization: Model error: Could not connect to TraCI
server.

TRAPPING on the exception above, due to a debug-on-errors=true
configuration option. Is your debugger ready?




how can I resolve this problem ?

I have tried many solutions. But the problem persists.

Could any one help me ?

My OS is ubuntu 10.04
I use the version 4.1 of omnet
I use sumo 0.12.0.

Christoph Sommer

unread,
Feb 21, 2012, 7:16:23 AM2/21/12
to omn...@googlegroups.com
mixsum wrote:
> Could not connect to TraCI server.
>
> how can I resolve this problem ?
>
> I have tried many solutions. But the problem persists.

This is covered in the Veins FAQ
<http://veins.car2x.org/documentation/faq/>.

You might also want to have a look at the Veins tutorial to help you get
started.

Also, please have look at FAQ #3 -- in particular: please include as
much information as you can in your email. This will most likely include
what steps you already took to try and remedy the problem, which
approaches worked and to what extent. Feel free to link to screen shots
or movies, but please do not attach them to your mail.


Best,

Christoph

--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria
Phone: +43 512 507-96835 / Fax: -9888
http://ccs.uibk.ac.at/~sommer/

rim negra

unread,
Feb 21, 2012, 7:43:07 AM2/21/12
to omn...@googlegroups.com
I have read this tutorial several time <http://veins.car2x.org/documentation/faq/>.
It didn't resolve my problem
The tutorial is specially for windows7 and I am working in ubuntu.



This is the whole message that omnet show:



Loading images from /home/rim/omnet/inetmanet/inetmanet/examples/traci/bitmaps: *: 1 
Loading images from /home/rim/omnetpp-4.1/images: *: 0  msg/*: 55  old/*: 111  background/*: 4  misc/*: 70  block/*: 320  device/*: 195  status/*: 28  maps/*: 9  abstract/*: 90 

Plugin path: ./plugins
OMNeT++ Discrete Event Simulation  (C) 1992-2010 Andras Varga, OpenSim Ltd.
Version: 4.1, build: 100611-4b63c38, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Tkenv...
Loading NED files from /home/rim/omnet/inetmanet/inetmanet/examples: 123
Loading NED files from /home/rim/omnet/inetmanet/inetmanet/src: 332


RUNTIME ERROR. A cRuntimeError exception is about to be thrown, and you
requested (by setting debug-on-errors=true in the ini file) that errors
abort execution and break into the debugger.

You should now probably be running the simulation under gdb or another
debugger. The simulation kernel will now raise a SIGABRT signal which will
get you into the debugger. If you are not running under a debugger, you can
still use the core dump for post-mortem debugging. Once in the debugger,
view the call stack (in gdb: "bt" command) to see the context of the
runtime error.

<!> Error in module (TraCIScenarioManager) scenario.manager (id=3) during network initialization: Model error: Could not connect to TraCI server.


TRAPPING on the exception above, due to a debug-on-errors=true configuration option. Is your debugger ready?

Simulation terminated with exit code: 134
Command line: /home/rim/omnetpp-4.1/bin/opp_run -r 0 -n /home/rim/omnet/inetmanet/inetmanet/examples:/home/rim/omnet/inetmanet/inetmanet/src -l /home/rim/omnet/inetmanet/inetmanet/src/inet /home/rim/omnet/inetmanet/inetmanet/examples/traci/omnetpp.ini

Working directory: /home/rim/omnet/inetmanet/inetmanet/examples/traci

LD_LIBRARY_PATH=/home/rim/omnetpp-4.1/lib::/home/rim/omnet/inetmanet/inetmanet/src:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons
PATH=/home/rim/omnetpp-4.1/bin::/home/rim/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rim/omnetpp-4.1/bin
OMNETPP_IMAGE_PATH=/home/rim/omnetpp-4.1/images






how can I seek if the problem is concerning TCP , firewall ?

how can I see If I have successfully installed the traCI server ?



 
2012/2/21 Christoph Sommer <christop...@uibk.ac.at>
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp



--
NEGRA Rim
HANA Research Group, CRISTAL Laboratory
ENSI, University of Manouba, Tunisia



Christoph Sommer

unread,
Feb 21, 2012, 8:11:41 AM2/21/12
to omn...@googlegroups.com
Dear Rim,

rim negra wrote:
> I have read this tutorial several time <http://veins.car2x.org/documentation/faq/>.
> It didn't resolve my problem

I'm sorry to hear that!

Can you quickly tell me what steps you already took to try and remedy
the problem, as well as which approaches worked and to what extent.?

Did you read the README file in the example directory and follow the
instructions?

rim negra

unread,
Feb 21, 2012, 10:46:05 AM2/21/12
to omn...@googlegroups.com
Is there any answer ?

2012/2/21 Christoph Sommer <christop...@uibk.ac.at>
Dear Rim,
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

Arindam Ghosh

unread,
Feb 21, 2012, 11:12:19 AM2/21/12
to omn...@googlegroups.com
Hello Rim Negra,

By the way if u dont mind me asking you.

Are you running the SUMO TCP spcket connection for listening the port on 9999 or not.. ????

Just incase if ur not.. then pls carefully follow the steps.. while u open OMNeT++ ide thru mingwenv.cmd window and keep the TracI_launchd project open go to mingwenv.cmd and open another terminal window n then follow the steps from VEINS <http://veins.car2x.org/tutorial (i.e. type -vv -c /Users/src/sumo-0.(woteveer version ur running of sumo)/bin/sumo.exe
then go back to you rorginal OMNeT++ window or workspace and then go to your TracI_lanchd omnet.ini file right click and then click on run as omnet++ Simulation. this will finally start ur veins example.

I hope this helps you.
Kind Regards
Arni

________________________________________
From: omn...@googlegroups.com [omn...@googlegroups.com] On Behalf Of rim negra [rim....@gmail.com]
Sent: 21 February 2012 15:46
To: omn...@googlegroups.com
Subject: [SPAM: 12.100] Re: [Omnetpp-l] Model error: Could not connect to TraCI server.

Is there any answer ?

2012/2/21 Christoph Sommer <christop...@uibk.ac.at<mailto:christop...@uibk.ac.at>>
Dear Rim,

rim negra wrote:
> I have read this tutorial several time <http://veins.car2x.org/documentation/faq/>.
> It didn't resolve my problem

I'm sorry to hear that!

Can you quickly tell me what steps you already took to try and remedy
the problem, as well as which approaches worked and to what extent.?

Did you read the README file in the example directory and follow the
instructions?

Feel free to link to screen shots or movies, but please do not attach
them to your mail.

Best,

Christoph

--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria

Phone: +43 512 507-96835<tel:%2B43%20512%20507-96835> / Fax: -9888
http://ccs.uibk.ac.at/~sommer/<http://ccs.uibk.ac.at/%7Esommer/>

Christoph Sommer

unread,
Feb 21, 2012, 11:17:37 AM2/21/12
to omn...@googlegroups.com
Dear Rim,

rim negra wrote:
> Is there any answer ?

there most certainly is.

However, as with any computer problem, there are thousands of things
that might have gone wrong.

This is why I was asking you what exactly you did (or did not) do to
before this error occurred.

Without any of this information, I have to give up. Sorry.

Sagar Pareek

unread,
Feb 23, 2012, 8:37:00 AM2/23/12
to omn...@googlegroups.com
@rim negra.....

I hope I can help you.... because I faced lots of problems in veins...... specially in ubuntu 10.10

I read ur problem and I think we both together can resolve it....

First of tell me are you running TracI before omnet++ ?? mean go to terminal and run "Your full path of omnetpp4.1/samples/..../etc/sumo-launchd.py -vv -c sumo-gui
and ur terminal then start listening on port 9999....
If it is creating error then tell me the error.... (terminal error)

Ok tell me upto now.....

--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp



--
KIND REGARDS --
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

32B.gif
331.gif
Reply all
Reply to author
Forward
0 new messages