Export to GitHub

shellinabox - issue #248

"Child terminated" error on OpenWrt on lagunar board


Posted on Dec 9, 2013 by Swift Panda

What steps will reproduce the problem? 1. Compile the application for laguna board and run it on the board 2. Access the shellinabox web-page. Getting "Sessson closed" error 3. In terminal debug mode, I can see "Child terminated" message

What is the expected output? What do you see instead? Expected : Normal webased shell. Getting : "session closed"

What version of the product are you using? On what operating system? Version : 2.14 OS: OpenWrt laguna board

Please provide any additional information below.

./shellinaboxd -p8080 -d Command line: ./shellinaboxd -p8080 -d Listening on port 8080 Accepted connection from xxx.xxx.xxx.xxx:38918 Accepted connection from xxx.xxx.xxx.xxx:38968 Handling "POST" "/?" Creating a new session: v4A1QUXkRvGy8yzHvZWdUA Window size changed to 135x27 xxx.xxx.xxx.xxx - - [09/Dec/2013:03:52:57 +0000] "POST /? HTTP/1.1" 200 157 Child terminated Handling "POST" "/?" Failed to find session: v4A1QUXkRvGy8yzHvZWdUA xxx.xxx.xxx.xxx - - [09/Dec/2013:03:52:58 +0000] "POST /? HTTP/1.1" 400 458 Closing connection to xxx.xxx.xxx.xxx:38918 Closing connection to xxx.xxx.xxx.xxx:38968

I know that network configuration/DNS/hostanem settings-wise OpenWRT is quite different from other OSes. Is that a reason why shellinabox is not working on it?

Comment #1

Posted on Dec 9, 2013 by Swift Panda

Can someone let me know what are the possible conditions in which "Child terminated" error can happen?

Comment #2

Posted on Dec 16, 2013 by Grumpy Lion

I compile and use shellinaboxd 2.14 in Arch Linux, I have the same problem.

When I used to run shellinaboxd under CentOS 6, the problem never occured.

Comment #3

Posted on Dec 16, 2013 by Grumpy Lion

Here is the strace when the error happens.

Attachments

Comment #4

Posted on Jan 1, 2014 by Massive Ox

hello kiran. I want to know How you compiled shellinabox in openwrt.

Best regards.

Comment #5

Posted on Jan 2, 2014 by Swift Panda

Using OpenWRT toolchain... I selected cnsxx as target and did "make".. Then I compiled shellinabox by pointing to the openwrt toolchain location I had to do some hacking though...in config.in file..

Status: New

Labels:
Type-Defect Priority-Medium