PDA

View Full Version : nexus 7 2012 web server issue



mitchy93
2014-09-25, 15:15
hi guys, whenever i click the start websever button from the launcher, i get a web page is not available message, its getting an ip and dns from dhcp if that helps. i have proper root access too

muts
2014-09-25, 23:11
Hard to know what is wrong without additional info, but it sounds like you have an incomplete installation. Verify sha1sums of the downloaded image, and try reflashing.

hellfire8888
2014-09-26, 03:34
i have this problem on my nexus 7 2013. It seems that the server www is not started and it web console cannot be launch from the kali launcher

th3j4v3d
2014-09-28, 08:12
Please help, experience similar issue with web server(web-panel) not working.

Error = "could not reach indicated web server"

super user permission is granted

th3j4v3d
2014-09-28, 10:44
@Muts sha1sums of the downloaded image is verified and ITs OK.

Is there any way to troubleshoot this issue. or i need to re-flash it.

secjunkie
2014-09-28, 11:39
if you open a kali shell in terminal and run


ps axf

do you see the process below runing?


lighttpd -f /system/etc/lighttpd/lighttpd.conf

xaxaxa
2014-09-28, 20:53
Hi,

Yep as I reported there is no error log report output to be shown. The Web Server on port 8080 just stops working sometimes without any reason identified so far....

mitchy93
2014-09-29, 02:46
no, sorry. it doesn't appear. ps axf yields nothing but headings and when i run ps, the above listed process isn't visible, even when i scroll up. i ran the same check even after tapping "enable web server" from kali menu. same results

mitchy93
2014-09-29, 02:50
my apologies, ran regular shell before, in kali shell that service isn't running on my N7 2012 i can see the fcgiserver running with \_ php -b 127.0.0.1:9001 -c /system/etc/php/php.ini below so php is running, just not web server

th3j4v3d
2014-09-29, 10:29
Yes, its "lighttpd -f /system/etc/lighttpd/lighttpd.conf" there

secjunkie
2014-09-29, 21:58
so the process is running and you still cant connect to 127.0.0.1:8080?
any errors in /sdcard/lighttpd.log ?
netstat -puta | grep LISTEN shows port 8080 listening right?

mitchy93
2014-09-30, 12:43
started webserver again, 127.0.0.1:8080 shows connection refused. the above netstat command shows ports 9001, 2020 and 54108 being listened to, even after running the start webserver command. i did a full search using ES file explorer and lighttpd.log cannot be found, even on /sdcard, only fcgiserver.log and that just says killed in many lines. lighttpd.conf seems okay though so its quite an odd one

secjunkie
2014-09-30, 13:18
OK so your web server is not starting.. the 8080 one with lighttpd is the one we are after...
if you less /system/etc/lighttpd/lighttpd.conf the second line should define the file I told you about.. (/sdcard/lighttpd.log) through a kali terminal try running touch /sdcard/lighttpd.log (to confirm you can write on the filesystem)
and then /system/xbin/reload_lighttpd.sh and let us knwo how it goes :)

mitchy93
2014-09-30, 14:17
i ran server.errlog = "/sdcard/lighttpd.log" through a kali shell and it said command not found. maybe i typed it incorrectly. i also ran the reload_lighttpd script and the output was as follows

/system///xbin/reload_lighttpd.sh line 2: /data/local/bin/busybox: no such file or directory
/system///xbin/reload_lighttpd.sh line 2: /data/local/bin/busybox: no such file or directory
/system///xbin/reload_lighttpd.sh line 2: /data/local/bin/busybox: no such file or directory
/system///xbin/reload_lighttpd.sh line 3: lighttpd: command not found
/system///xbin/reload_lighttpd.sh line 5: am: command not found

reinstalling busybox to that directory that it claimed busybox was not found in (/data/local/bin/busybox) didn't do anything either, so i reinstalled busybox back to its default location

secjunkie
2014-09-30, 16:40
this does not look good, I'd say re-image it... a new version was pushed today (1.0.2) it might fix what ales you!

xaxaxa
2014-09-30, 19:33
this does not look good, I'd say re-image it... a new version was pushed today (1.0.2) it might fix what ales you!

Where you see the version no? It would be nice for an apt upgrade not to re-image..... :((((((

muts
2014-09-30, 19:53
apt-get update deals with the kali chroot, not what's outside of it...

xaxaxa
2014-09-30, 19:57
apt-get update deals with the kali chroot, not what's outside of it...
Yep I know. Maybe we can implement an update service for not essential files same like the Google has because it is annoying to re-image the Nethunter every time :(

mitchy93
2014-10-01, 00:34
thanks, ill get back to you when ive charged my nexus 7 2012, i love the thing but it takes forever to charge, almost 4 hours on a 2A charger (asus hardware issue), pays off though cos i get about 3-4 days battery life on the thing

hellfire8888
2014-10-02, 02:17
reinstall - web server still cannot be started

ran the reload_lighttpd script and the output was as follows

/system///xbin/reload_lighttpd.sh line 2: /data/local/bin/busybox: no such file or directory
/system///xbin/reload_lighttpd.sh line 2: /data/local/bin/busybox: no such file or directory
/system///xbin/reload_lighttpd.sh line 2: /data/local/bin/busybox: no such file or directory
/system///xbin/reload_lighttpd.sh line 3: lighttpd: command not found
/system///xbin/reload_lighttpd.sh line 5: am: command not found

mitchy93
2014-10-02, 07:29
game as i got hellfire. just an update, installed the latest build and got the same results and outputs. the web server issue hasnt been resolved

1337throwaway1
2014-10-02, 22:59
I'm running on a N7 2012 WiFi installed today and not seeing a problem, everything launches correctly.

Did you install busybox as per the instructions? The error log above seemed to indicate it was missing.

winniechurchill
2014-10-03, 02:47
OK I thought I'd chime in and I had mention I, initially, had the same problems. I hadn't followed the install instructions verbatim (i'm not sure how this impacts it but I used ClockworkMod instead of TWRP) and it seemed to install fine but no webserver. I was looking through what BusyBox Free did and I noticed some errors in the Applet manager about Applets not being symlinked. Eventually I followed the install instructions (no shortcuts or me thinking I know better eg using the TWRP not CM bootloader) and booya I have a fully working Nethunter install on a Nexus 7 (2013) LTE.
I know this seems bleeding obvious to follow instructions but this is one install where I didn't know better and it wasted many hours on why it didn't work.
Next stage is to get some OTG Y cables and a good USB WiFi stick so I can start testing the wifi tools (shame my Nexus doesn't have a native NIC with monitor mode)!

hellfire8888
2014-10-04, 18:05
OK I thought I'd chime in and I had mention I, initially, had the same problems. I hadn't followed the install instructions verbatim (i'm not sure how this impacts it but I used ClockworkMod instead of TWRP) and it seemed to install fine but no webserver. I was looking through what BusyBox Free did and I noticed some errors in the Applet manager about Applets not being symlinked. Eventually I followed the install instructions (no shortcuts or me thinking I know better eg using the TWRP not CM bootloader) and booya I have a fully working Nethunter install on a Nexus 7 (2013) LTE.
I know this seems bleeding obvious to follow instructions but this is one install where I didn't know better and it wasted many hours on why it didn't work.
Next stage is to get some OTG Y cables and a good USB WiFi stick so I can start testing the wifi tools (shame my Nexus doesn't have a native NIC with monitor mode)!

thanks..it is all sorted now

ittrhc
2014-10-09, 04:33
Good evening all, I just got Kali Linux Nethunter installed on a Nexus 7 2012 Wi-fi, and I am having this same issue. The only file I have in /system/xbin related to lighttpd is lighttpd-static. I click on the "Start Webserver" button from the menu, and it says starting with Kali Launcher has been granted superuser priviledges for an interactive shell" and proceeds to do nothing. I have verified image hash and it is all good. Thanks