darkslategrey / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

"Child terminated" error on OpenWrt on lagunar board #248

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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?

Original issue reported on code.google.com by kiran.pe...@gmail.com on 9 Dec 2013 at 4:05

GoogleCodeExporter commented 9 years ago
Can someone let me know what are the possible conditions in which "Child 
terminated"  error can happen?

Original comment by kiran.pe...@gmail.com on 9 Dec 2013 at 4:07

GoogleCodeExporter commented 9 years ago
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.

Original comment by guohou...@gmail.com on 16 Dec 2013 at 2:35

GoogleCodeExporter commented 9 years ago
Here is the strace when the error happens.

Original comment by guohou...@gmail.com on 16 Dec 2013 at 2:41

Attachments:

GoogleCodeExporter commented 9 years ago
hello kiran.
I want to know How you compiled shellinabox in openwrt.

Best regards.

Original comment by enjo...@gmail.com on 1 Jan 2014 at 5:25

GoogleCodeExporter commented 9 years ago
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..

Original comment by kiran.pe...@gmail.com on 2 Jan 2014 at 4:03