omnet+ sumo+ veins in

225 views
Skip to first unread message

孙宁

unread,
Apr 3, 2015, 5:57:52 AM4/3/15
to omn...@googlegroups.com
thanks for the help.

I am a new member to the veins.I use the ubuntu 14.04 32 in vmware to build the experiment environment. 
omnet++ 4.6
sumo 0.22
veins 3.0
9999 is listened by sumo.
when I try to run the veins in omnet,the error things happened .

in teminal

 ssnn@ubuntu:~$ /home/ssnn/Prom/omnetpp-4.6/samples/veins/sumo-launchd.py -vv -c /home/ssnn/Prom/sumo-0.22.0/bin/sumo-gui
Logging to /tmp/sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 57559
Handling connection from 127.0.0.1 on port 57559
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 306
Got TraCI command of length 301
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/ssnn/Prom/omnetpp-4.6/samples/veins/examples/veins/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is /tmp/sumo-launchd-tmp-uQ8Dyo
Base dir is /home/ssnn/Prom/omnetpp-4.6/samples/veins/examples/veins/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 58098
Starting SUMO (/home/ssnn/Prom/sumo-0.22.0/bin/sumo-gui -c erlangen.sumo.cfg) on port 58098, seed 0
Releasing lock on port
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>-1</exit-code>
<start>1428054892</start>
<end>1428054892</end>
<status>Could not start SUMO (/home/ssnn/Prom/sumo-0.22.0/bin/sumo-gui -c erlangen.sumo.cfg): [Errno 13] Permission denied</status>
<stdout><![CDATA[]]></stdout>
<stderr><![CDATA[]]></stderr>
</status>
"
Closing connection from 127.0.0.1 on port 57559


in the omnet

Starting...

$ cd /home/ssnn/Prom/omnetpp-4.6/samples/veins/examples/veins
$ opp_run -r 0 -n .:../../src --tkenv-image-path=../../images -l ../../src/veins omnetpp.ini

OMNeT++ Discrete Event Simulation  (C) 1992-2014 Andras Varga, OpenSim Ltd.
Version: 4.6, build: 141202-f785492, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Tkenv...
Loading NED files from .: 1
Loading NED files from ../../src: 29
Loading NED files from /home/ssnn/Prom/omnetpp-4.6/samples/veins/examples/veins: 1

Loading images from /home/ssnn/Prom/omnetpp-4.6/samples/veins/images: *: 0  status/*: 6  
Loading images from /home/ssnn/Prom/omnetpp-4.6/images: *: 0  misc/*: 70  block/*: 320  logo/*: 1  maps/*: 9  old/*: 111  background/*: 4  device/*: 195  msg/*: 55  status/*: 28  abstract/*: 90  

Plugin path: ./plugins

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 (Veins::TraCIScenarioManagerLaunchd) RSUExampleScenario.manager (id=6) at event #1, t=0: Model error: Connection to TraCI server lost. Check your server's log. Error message: 104: Connection reset by peer.

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

Simulation terminated with exit code: 133
Working directory: /home/ssnn/Prom/omnetpp-4.6/samples/veins/examples/veins
Command line: opp_run -r 0 -n .:../../src --tkenv-image-path=../../images -l ../../src/veins omnetpp.ini

Environment variables:
PATH=/home/ssnn/Prom/omnetpp-4.6/bin::/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
LD_LIBRARY_PATH=/home/ssnn/Prom/omnetpp-4.6/lib::/home/ssnn/Prom/omnetpp-4.6/samples/veins/src:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386:
OMNETPP_IMAGE_PATH=/home/ssnn/Prom/omnetpp-4.6/images



Christoph Sommer

unread,
Apr 15, 2015, 10:54:42 AM4/15/15
to omn...@googlegroups.com
孙宁 wrote:
> Could not start SUMO (/home/ssnn/Prom/sumo-0.22.0/bin/sumo-gui -c
> erlangen.sumo.cfg): [Errno 13] Permission denied

Your copy of sumo-gui might be missing "execute" permission bits. Maybe
it was (temporarily) stored on a file system (or in an archive) that
does not support this permission bit. You will need to manually set the
bit for this file.

Best,

Christoph


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

Avinash Tarale

unread,
Aug 6, 2015, 6:00:25 PM8/6/15
to OMNeT++ Users
Hello, have you manged to solve this error ? Hoe to change bit as suggested by Dr. Christoph Sommer. Thank you.
Reply all
Reply to author
Forward
0 new messages