Please make sure you include the mailing list in all replies so that others know when a problem has been fixed (and how it was fixed)
On Tue, 18 Dec 2018 at 12:00, Chuan Su lavanxp@126.com wrote:
According to your comments , we checked our setups and we found that we utilized ser2net & telnet to communicate with DUT , however , ser2net set default timeout parameter as 600 seconds . When DUT runs a long duration case (more than 600 seconds ) without any log outputting , the connection is usually dropped by ser2net , and telnet program always prints logs as 'Connection closed by foreign host ' . Anyway thanks for your help !
See https://git.linaro.org/lava/lava-lab.git/tree/shared/server-configs/ser2net....
The Linaro lab in Cambridge sets all the ser2net configs to have a zero timeout.
Sincerely, Chuan Su
At 2018-12-18 15:59:00, "Neil Williams" neil.williams@linaro.org wrote:
On Tue, 18 Dec 2018 at 06:16, Chuan Su lavanxp@126.com wrote:
Dear all, We are encountered with an issue that our job always exits halfway when running a long duration test case (around 20 minutes) which outputs nothing , and lava server reports an InfrastructureError error and prints as below : Connection closed by foreign host.Marking unfinished test run as failed
Connection closed by foreign host means that the serial connection failed at the DUT - this is not a problem in the LAVA test job, this is an infrastructure failure at your end. The foreign host (the DUT) closed the serial connection. There is nothing LAVA can do about that. The serial connection to the DUT has simply failed.
If the serial connection is USB, check for logs on the worker like /var/log/messages and /var/log/syslog for events related to the serial connection. Check that the DUT didn't simply kill the serial connection - maybe the DUT went into some kind of suspend mode.
definition: lava result: fail case: 0_apache-servers1 uuid: 597_1.4.2.4.1 duration: 603.53 lava_test_shell connection dropped.end: 3.1 lava-test-shell (duration 00:10:05) [ns_s1] namespace: ns_s1 extra: ... definition: lava level: 3.1 result: fail case: lava-test-shell duration: 604.55 lava-test-retry failed: 1 of 1 attempts. 'lava_test_shell connection dropped.'lava_test_shell connection dropped.
And we just test it with a very simple python script as below: #!/usr/bin/env python3 import time print('Hello,world!') time.sleep(1200) print("Hello,Lava!") We can see 'Hello,world!' string outputs , but there's no more output of this program found on webUI! We just don't know what's wrong , so we have to mail to you for help! Sincerely, Chuan Su
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/