Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to TraCI server lost while using veins #8427

Closed
divakar5 opened this issue Mar 25, 2021 · 5 comments
Closed

Connection to TraCI server lost while using veins #8427

divakar5 opened this issue Mar 25, 2021 · 5 comments
Labels

Comments

@divakar5
Copy link

divakar5 commented Mar 25, 2021

I'm getting the below issue

divakar@divakar:~/veins-5.1/veins-veins-5.1$ ./sumo-launchd.py -vv -c sumo
WARNING: the sumo-launchd.py script is deprecated in favor of bin/veins_launchd. Redirecting.
WARNING: the sumo-launchd.py script is deprecated in favor of bin/veins_launchd. Redirecting.
Logging to /tmp/sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 44898
Handling connection from 127.0.0.1 on port 44898
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 304
Got TraCI command of length 299
Got TraCI command 0x75
Got CMD_FILE_SEND for "b'sumo-launchd.launch.xml'"
Got CMD_FILE_SEND with data "b'\n \n \n \n \n \n \n\n'"
Creating temporary directory...
Temporary dir is /tmp/sumo-launchd-tmp-kxqifxm5
Base dir is /home/divakar/veins-5.1/veins-veins-5.1/examples/veins/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 40991
Starting SUMO (sumo -c erlangen.sumo.cfg) on port 40991, seed 0
Connecting to SUMO (sumo -c erlangen.sumo.cfg) on port 40991 (try 1)
Error ([Errno 111] Connection refused)
Connecting to SUMO (sumo -c erlangen.sumo.cfg) on port 40991 (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: "

1
1616690356
1616690357
Exited with error code 1



"
Closing connection from 127.0.0.1 on port 44898
^CKeyboard interrupt.
Shutting down.
WARNING: the sumo-launchd.py script is deprecated in favor of bin/veins_launchd. Redirection done.
WARNING: the sumo-launchd.py script is deprecated in favor of bin/veins_launchd. Redirection done.

I tried adding log value="log.txt" and verbose value="true" in erlangen.sumo.cfg (in veins example) after that i triggered simulation i got same error and Omnetpp console displayed the below error.

terminate called after throwing an instance of 'omnetpp::cRuntimeError'
what(): Connection to TraCI server lost. Check your server's log. Error message: 32: Broken pipe

Please guide me, I'm new to this domain.

@behrisch
Copy link
Contributor

I cannot immediately spot a sumo error here, maybe it is better to ask here: https://github.com/sommer/veins/issues and also see the comments here #7090

@sommer
Copy link
Member

sommer commented Mar 26, 2021

The console output of the top comment is missing anything between angle brackets < and >. Coincidentally, this is what contains the output received from SUMO (see the below example)

Done running SUMO
Cleaning up
Result: "<?xml version="1.0"?>
<status>
        <exit-code>1</exit-code>
        <start>1616770618</start>
        <end>1616770618</end>
        <status>Exited with error code 1</status>
        <stdout><![CDATA[Loading configuration ... done.
]]></stdout>
        <stderr><![CDATA[Error: expected end of tag 'net'
 In file 'erlangen.net.xml'
 At line/column 83/7.

Quitting (on error).
]]></stderr>
</status>

In this case, the error message written by SUMO was "Error: expected end of tag 'net' In file 'erlangen.net.xml' At line/column 83/7. Quitting (on error)."

@divakar5
Copy link
Author

Hi SIr,
This is how my error looks
image

@sommer
Copy link
Member

sommer commented Mar 29, 2021

So, your error message is "Error: Attribute 'maxSpeed' in definition of vType 'vtype0' is empty.".

Most likely you changed vtype0 in your .rou.xml and made a mistake there.

@behrisch
Copy link
Contributor

behrisch commented Apr 6, 2021

Please reopen with more info if problems persist.

@behrisch behrisch closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants