[webif] Web Interface 1.2.x

OK, that confirms it. Just upgraded tunefix, it took about 10 seconds for the Internal Server Error box to come up. For approximately the last 7 days, every single upgrade, irrespective of what package it was (several have been webif, including 1.2.8-2 to 1.2.8-3 this morning), causes the same problem. It appears that the time it takes for the box comes up probably relates to the time it takes to perform the upgrade, long for a webif update, short for most others.
Once the box has come up, the HDR keeps working normally, but the browser is unable to connect to the webif. The webif is only restore by a reboot.

Hate to moan about the webif... the package page is definitely a lot quicker; it just seems to have brought this quirk with it!
 
Unfortunately I can't replicate this on my setup. Is there anything in your webif-error.log (command line, cat /tmp/webif-error.log) when this happens?
 
Does this happen if you add or remove a package too? bash is a good one to test with as it's small and stand-alone..
 
This is a bit vague. What exactly does "unable to connect" mean? Is the server still running?
"service" or "ps ax" at a command prompt might tell us more.
What he means is
but the browser is unable to connect to the webif. The webif is only restore by a reboot.
Which is exactly what I get. There is one entry in my webif.log which is "2016-02-12 07:35:54: (log.c.194) server started" Which is when I rebooted after doing an update of tunefix and not being able to connect the browser on my PC to the Web I/F on the T2 without a reboot. Just get a 404 error on the browser until reboot.
 
Couldn't find bash. but just updated to tunefix x.x.x-9 and it's bloody locked up yet again. Back soon. Off to reboot.

EDIT. Installed bash. Server error. 404 on WI. Off to reboot yet again. :sigh.

I'm with hairy on this one. I think it started a few days ago when I had three upgrades. IIRC they were web i/f, lightpd, and tunefix
 
Last edited:
I am also having this problem when updating packages. After getting the server error, I have used Telnet to run the 'service' command, which shows that lighttpd is no longer running. The command 'service start lighttpd' will then allow the web interface to work again without rebooting the box.
 
No. That's my interpretation.
It says something along the lines of Web page is unavailable. I'll test it now. Bash uninstalled with no error.
 
Right then. Re installed bash. Got the internal server error. Address bar at the time (still displaying WI) =http://foxt2/pkg/#1. With the package management popup still present.
Closed that, still the same after it had gone.
Refresh page. Chrome error= "This webpage is not available". Address bar is still the same as above.
From what Brian says, it seems that it is lighttpd that's causing the problem somehow. Have you still got the previous version to try?
Off to reboot.
 
af123, is there anything useful in this webif log?
Code:
15    2016-02-12 18:24:23: (log.c.194) server started
14    2016-02-12 18:12:50: (server.c.1572) server stopped by UID = 0 PID = 4163
13    2016-02-12 18:12:40: (server.c.1572) server stopped by UID = 0 PID = 4163
12    2016-02-12 18:12:40: (server.c.1456) [note] graceful shutdown started
11    2016-02-12 18:12:40: (server.c.1444) unlink failed for: /var/run/lighttpd.pid 2 No such file or directory
10    2016-02-12 18:12:40: (mod_cgi.c.607) cgi died, pid: 4236
9    2016-02-12 18:12:40: (server.c.1456) [note] graceful shutdown started
8    2016-02-12 18:11:22: (log.c.194) server started
7    2016-02-12 18:08:57: (server.c.1572) server stopped by UID = 0 PID = 1301
6    2016-02-12 18:08:46: (server.c.1572) server stopped by UID = 0 PID = 1301
5    2016-02-12 18:08:46: (server.c.1456) [note] graceful shutdown started
4    2016-02-12 18:08:46: (server.c.1444) unlink failed for: /var/run/lighttpd.pid 2 No such file or directory
3    2016-02-12 18:08:46: (mod_cgi.c.607) cgi died, pid: 3933
2    2016-02-12 18:08:46: (server.c.1456) [note] graceful shutdown started
1    2016-02-12 16:32:59: (log.c.194) server started
 
This is a bit vague. What exactly does "unable to connect" mean? Is the server still running?
"service" or "ps ax" at a command prompt might tell us more.
That is what Firefox said, in large letters across the middle of the page.
The address bar just shows "http://humax/" as it normally would for accessing my T2.
I haven't seen a 404 reported at any time.
Code:
Unable to connect

Firefox can't establish a connection to the server at humax.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

while all is running normally

Code:
humax# service

Name                 Installed  Autostart  Running
----                 ---------  ---------  -------
betaftpd             Yes        Yes        Yes
cifs                 Yes        Yes        Yes
lighttpd             Yes        Yes        Yes
nfs                  No         No         No
samba                Yes        Yes        Yes
virtual-disk         Yes        Yes        Yes

Syntax:
        service start <service>
        service stop <service>
        service auto <service>          (toggles autostart)

humax#
humax# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:02 init
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:10 [ksoftirqd/0]
    4 ?        S      0:00 [migration/1]
    5 ?        SN     0:02 [ksoftirqd/1]
    6 ?        S<     0:00 [events/0]
    7 ?        S<     0:00 [events/1]
    8 ?        S<     0:00 [khelper]
    9 ?        S<     0:00 [kthread]
   10 ?        S<     0:03 [kblockd/0]
   11 ?        S<     0:00 [kblockd/1]
   12 ?        S<     0:00 [khubd]
   13 ?        S<     0:00 [kseriod]
   14 ?        S      0:00 [pdflush]
   15 ?        S      0:00 [pdflush]
   16 ?        S<     0:07 [kswapd0]
   17 ?        S<     0:00 [aio/0]
   18 ?        S<     0:00 [aio/1]
   19 ?        S<     0:00 [ata/0]
   20 ?        S<     0:00 [ata/1]
   21 ?        S<     0:00 [ata_aux]
   22 ?        S<     0:00 [scsi_eh_0]
   23 ?        S<     0:00 [scsi_eh_1]
   24 ?        S      0:09 [mtdblockd]
   25 ?        S<     0:00 [scsi_eh_2]
   26 ?        S<     1:30 [usb-storage]
   28 ?        S<     0:00 [kpsmoused]
   29 ?        Ss     0:00 /bin/sh /etc/init.d/rcS
   74 ?        SN     0:00 [jffs2_gcd_mtd1]
   75 ?        SN     0:00 [jffs2_gcd_mtd2]
  138 ?        S      0:00 /usr/bin/dnsmasq
  144 ?        SNs    0:00 /sbin/utelnetd -l /bin/tmenu -p 23 -d -B
  191 ?        S      0:00 /bin/sh /etc/init.d/S90settop start
  253 ?        Sl    10:10 /usr/bin/humaxtv
  883 ?        Ss     0:00 udhcpc -t 5 -T 10 -p /var/lib/humaxtv/udhcpc.eth0.pid
  936 ?        S<     0:00 [kjournald]
1019 ?        S<     0:03 [kjournald]
1021 ?        S<     0:00 [kjournald]
1404 ?        S<     0:00 [cifsoplockd]
1405 ?        S<     0:00 [cifsdnotifyd]
1416 ?        SNs    0:00 /mod/sbin/crond
1459 ?        SN     0:00 /mod/sbin/lighttpd -f /mod/etc/lighttpd/server.conf
1461 ?        SN     0:00 /mod/sbin/lighttpd -f /mod/etc/lighttpd/server.conf
1462 ?        SN     0:00 /mod/sbin/lighttpd -f /mod/etc/lighttpd/server.conf
1497 ?        SNs    0:00 /mod/sbin/portmap
1629 ?        SN     0:00 /mod/sbin/recmon -D /media/My Video
1682 ?        SN     4:08 /mod/bin/epg -f /mnt/hd1/dvbepg/epg.dat sqlitedumpd /
1690 ?        SN     0:12 /bin/sh /mod/sbin/editmonitor
1750 ?        SNl    0:00 /mod/sbin/mdnsd
1764 ?        SN     0:00 /mod/sbin/betaftpd
1806 ?        SN     0:23 /bin/sh /mod/sbin/scanmounts
1949 ?        S<     0:00 [file-storage-ga]
1963 ?        SNs    0:00 /mod/sbin/smbd -D
1977 ?        S<     0:00 [scsi_eh_3]
1978 ?        S<     0:00 [usb-storage]
2097 ?        SNs    0:00 /mod/sbin/nmbd -D
2244 ?        S<     0:00 [kjournald]
2327 ?        S<s    2:21 /mod/bin/ntfs-3g /dev/sda1 /media/usb-drive1
30538 ?        SN     4:25 /mod/sbin/smbd -D
5427 pts/0    SNs    0:00 /bin/sh /bin/tmenu
5641 pts/0    SN     0:00 /bin/sh -l
6896 ?        SN     0:00 /bin/sh -c /mod/sbin/unencrypt "/mnt/hd2/My Video/_ou
6903 ?        RN     0:03 /bin/sh /mod/sbin/unencrypt /mnt/hd2/My Video/_outbox
10177 ?        SN     0:00 sleep 5
10516 ?        SN     0:00 ping -c 2 -w 3 192.168.0.5
10566 pts/0    RN+    0:00 ps ax
humax#

and after installing bash
Code:
humax# service

Name                 Installed  Autostart  Running
----                 ---------  ---------  -------
betaftpd             Yes        Yes        Yes
cifs                 Yes        Yes        Yes
lighttpd             Yes        Yes        No
nfs                  No         No         No
samba                Yes        Yes        Yes
virtual-disk         Yes        Yes        Yes

Syntax:
        service start <service>
        service stop <service>
        service auto <service>          (toggles autostart)

humax# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:02 init
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:10 [ksoftirqd/0]
    4 ?        S      0:00 [migration/1]
    5 ?        SN     0:02 [ksoftirqd/1]
    6 ?        S<     0:00 [events/0]
    7 ?        S<     0:00 [events/1]
    8 ?        S<     0:00 [khelper]
    9 ?        S<     0:00 [kthread]
   10 ?        S<     0:03 [kblockd/0]
   11 ?        S<     0:00 [kblockd/1]
   12 ?        S<     0:00 [khubd]
   13 ?        S<     0:00 [kseriod]
   14 ?        S      0:00 [pdflush]
   15 ?        S      0:00 [pdflush]
   16 ?        S<     0:07 [kswapd0]
   17 ?        S<     0:00 [aio/0]
   18 ?        S<     0:00 [aio/1]
   19 ?        S<     0:00 [ata/0]
   20 ?        S<     0:00 [ata/1]
   21 ?        S<     0:00 [ata_aux]
   22 ?        S<     0:00 [scsi_eh_0]
   23 ?        S<     0:00 [scsi_eh_1]
   24 ?        S      0:09 [mtdblockd]
   25 ?        S<     0:00 [scsi_eh_2]
   26 ?        S<     1:30 [usb-storage]
   28 ?        S<     0:00 [kpsmoused]
   29 ?        Ss     0:00 /bin/sh /etc/init.d/rcS
   74 ?        SN     0:00 [jffs2_gcd_mtd1]
   75 ?        SN     0:00 [jffs2_gcd_mtd2]
  138 ?        S      0:00 /usr/bin/dnsmasq
  144 ?        SNs    0:00 /sbin/utelnetd -l /bin/tmenu -p 23 -d -B
  191 ?        S      0:00 /bin/sh /etc/init.d/S90settop start
  253 ?        Sl    10:47 /usr/bin/humaxtv
  883 ?        Ss     0:00 udhcpc -t 5 -T 10 -p /var/lib/humaxtv/udhcpc.eth0.pid
  936 ?        S<     0:00 [kjournald]
1019 ?        S<     0:03 [kjournald]
1021 ?        S<     0:00 [kjournald]
1404 ?        S<     0:00 [cifsoplockd]
1405 ?        S<     0:00 [cifsdnotifyd]
1416 ?        SNs    0:00 /mod/sbin/crond
1497 ?        SNs    0:00 /mod/sbin/portmap
1629 ?        SN     0:00 /mod/sbin/recmon -D /media/My Video
1682 ?        SN     4:08 /mod/bin/epg -f /mnt/hd1/dvbepg/epg.dat sqlitedumpd /
1690 ?        SN     0:13 /bin/sh /mod/sbin/editmonitor
1750 ?        SNl    0:00 /mod/sbin/mdnsd
1764 ?        SN     0:00 /mod/sbin/betaftpd
1806 ?        SN     0:25 /bin/sh /mod/sbin/scanmounts
1949 ?        S<     0:00 [file-storage-ga]
1963 ?        SNs    0:00 /mod/sbin/smbd -D
1977 ?        S<     0:00 [scsi_eh_3]
1978 ?        S<     0:00 [usb-storage]
2097 ?        SNs    0:00 /mod/sbin/nmbd -D
2244 ?        S<     0:00 [kjournald]
2327 ?        S<s    2:21 /mod/bin/ntfs-3g /dev/sda1 /media/usb-drive1
30538 ?        SN     4:25 /mod/sbin/smbd -D
5427 pts/0    SNs    0:00 /bin/sh /bin/tmenu
5641 pts/0    SN     0:01 /bin/sh -l
19273 ?        SN     0:00 sleep 5
19458 ?        SN     0:00 ping -c 2 -w 3 192.168.0.3
19459 pts/0    RN+    0:00 ps ax
humax#

I am with Brian, lighttpd has stopped, starting it has restored the webif without the need to reboot.
 
Confirming what Trev tried
Uninstalled bash with no problem... all keeps working.
Installed bash again, webif gone, but I am able to restore by starting the lighttpd service.


Still nothing in /tmp/webif-error.log
 
It seems that installing, or upgrading packages is causing lighttpd to stop running.
 
Code:
7    2016-02-12 18:08:57: (server.c.1572) server stopped by UID = 0 PID = 1301
6    2016-02-12 18:08:46: (server.c.1572) server stopped by UID = 0 PID = 1301
5    2016-02-12 18:08:46: (server.c.1456) [note] graceful shutdown started
4    2016-02-12 18:08:46: (server.c.1444) unlink failed for: /var/run/lighttpd.pid 2 No such file or directory
3    2016-02-12 18:08:46: (mod_cgi.c.607) cgi died, pid: 3933
2    2016-02-12 18:08:46: (server.c.1456) [note] graceful shutdown started
1    2016-02-12 16:32:59: (log.c.194) server started
I'm seeing all these lines, with the exception of the "cgi died" one, and my server stays up.
Why is it apparently trying shut things twice I wonder?
 
Back
Top