Blank webif

Eddy_J1

New Member
Hi all

I decided to look at the webif a few weeks ago to schedule something but I was greeted with a blank white page although there is HTML source.

I was completely baffled as it had worked just a few weeks before, so I decided I'd upgrade to the latest cfw but I still have the same issue.

Anybody else had this or any ideas on how I can get it working?

Thanks
 
Anybody else had this or any ideas on how I can get it working?
It's not the custom firmware (loaded by the USB) that is the issue, it's the WebIF itself (which is a package like any other) or the support services which serve it up.

You will need to access the Humax by Telnet, then choose CLI from the Telnet menu and use an "opkg force-reinstall" command - I can't remember all the details but somebody will post soon or you can find them in the Wiki.
 
Here's the source... I'll try telnet to it, currently on my phone so will take a look on my PC.

Thanks for the rapid replies as usual, love the help on this forum :)

Code:
<!doctype html>
<html>
<head>
<title>




<div class=toolbarouter style="top: -40px">
  <div id=status class=toolbar>
    <span id=status_txt>
      Status...
    </span>
  </div>
</div>

<script type=text/javascript>
$(document).ready(function() {
	$('#status_txt').load('/cgi-bin/status.jim',
		function(rt,tt,xml) {
			if (rt.length)
				$('#status').slideDown();
		});
});
</script>



</div>

<div class=footer>
<ul>
<li>
Release Notes: 
<a target=_blank
    href="http://wiki.hummy.tv/wiki/Customised_Firmware_Release_Notes">
Firmware</a> |
<a target=_blank href="http://wiki.hummy.tv/wiki/Webif_release_notes">Webif</a>
</li>
</ul>

</div>


<!-- Start of footer -->
<div class=footer>


</div>
</div>
</body>
</html>
 
Hmm just tried using telnet to reinstall but no luck. I tried the command 'opkg install we if' as a last resort because none others seem to work(user error most likely as I've never used telnet before).

Anyway so that returned some errors about failing to open some files. It also said webif was up to date.

I can't work out the commands so sorry for the noobyness
 
Code:
humax# opkg --force-reinstall install webif

Edit: sorry, missed out "install"
 
Getting similar error as I did before without the --

Code:
humax# opkg --force-reinstall webif
opkg: unknown sub-command webif

It's strange because webif is listed when I do 'opkg list-installed'

I didn't really do much customising so maybe I could just force remove the firmware through telnet and reinstall it all fresh?

Edit:

Just ran this 'opkg install --force-reinstall webif' and got some errors

Code:
humax# opkg install --force-reinstall webif
Removing package webif from root...
Not deleting modified conffile /mod/var/mongoose/html/favicon.ico.
Installing webif (1.0.7-7) to root...
Downloading http://hummypkg.org.uk/hdrfoxt2/base/webif_1.0.7-7_mipsel.opk.
Upgrading jim on root from 0.73-1 to 0.74-2...
Downloading http://hummypkg.org.uk/hdrfoxt2/base/jim_0.74-2_mipsel.opk.
Collected errors:
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/sqlite3.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-cgi.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/inotify-tools.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/auto-unprotect.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-oo.list: Input/output error.
 * file_md5sum_alloc: Failed to open file /mod/var/mongoose/html/favicon.ico: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/sqlite3.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-cgi.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/inotify-tools.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/auto-unprotect.list: Input/output error.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-oo.list: Input/output error.
 * wfopen: /mod/var/opkg/info/jim.control: Permission denied.
 * pkg_parse_from_stream_nomalloc: fgets: Invalid argument.
 * pkg_write_filelist: Failed to open /mod/var/opkg/info/jim.list: Operation not permitted.
 * opkg_install_pkg: Failed to extract data files for jim. Package debris may remain!
 * opkg_install_cmd: Cannot install package webif.
humax#
 
Try:
Code:
humax# diag general
humax# ls -l /mod/var/opkg
and post the results.
Or perhaps you need to restart into maintenance mode (using tmenu) and run fix-disk.
 
Hi, here's the results from that, does that help?

Cheers

Code:
*** Directory Structure ***
 
Checking /mod partition type                                : Pass
Checking /mod filesystem type                               : Pass
Checking /mod/tmp directory exists                          : Pass
Checking /mod/var/opkg/tmp is a directory                   : Pass
Checking /mod/boot is a symlink                             : Pass
Checking /var/lib/humaxtv/mod is a directory                : Pass
Checking /var/lib/humaxtv_backup/mod is a directory         : Pass
Checking /mod/boot/2 is a symlink                           : Pass
Checking /mod/boot links correctly                          : Pass
Checking /mod/boot/2 links correctly                        : Pass
humax# ls -l /mod/var/opkg
-rw-rw-rw-    1 root     root         54560 Nov  9 19:24 base
drwxr-xr-x    2 root     root          4096 Nov  9 20:12 info
-rw-rw-rw-    1 root     root          7799 Nov  9 20:12 status
drwxrwxrwx    2 root     root          4096 Nov  9 20:12 tmp
humax#
 
So I did a check and here's all that was left on the screen as it scrolled loads

Code:
Free blocks count wrong for group #2561 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2562 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2563 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2564 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2565 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2566 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2567 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2568 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2569 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2570 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2571 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2572 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2573 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2574 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2575 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2576 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2577 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2578 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2579 (32253, counted=159).
Fix? yes
 
Free blocks count wrong for group #2580 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2581 (32253, counted=29078).
Fix? yes
 
Free blocks count wrong for group #2583 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2585 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2586 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2588 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2589 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2590 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2591 (32253, counted=31788).
Fix? yes
 
Free blocks count wrong for group #2593 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2594 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2595 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2596 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2597 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2598 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2599 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2600 (32253, counted=32248).
Fix? yes
 
Free blocks count wrong for group #2601 (32253, counted=7912).
Fix? yes
 
Free blocks count wrong for group #2602 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2603 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2604 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2605 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2606 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2607 (32253, counted=4).
Fix? yes
 
Free blocks count wrong for group #2608 (32253, counted=4).
Fix? yes
 
Free blocks count wrong for group #2609 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2610 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2611 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2612 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2613 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2614 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2615 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2616 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2617 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2618 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2619 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #2620 (32253, counted=0).
Fix? yes
 
Free blocks count wrong for group #2621 (32253, counted=176).
Fix? yes
 
Free blocks count wrong for group #2622 (32253, counted=11597).
Fix? yes
 
Free blocks count wrong for group #2874 (32253, counted=31622).
Fix? yes
 
Free blocks count wrong for group #2880 (32253, counted=28169).
Fix? yes
 
Free blocks count wrong for group #2881 (32253, counted=28781).
Fix? yes
 
Free blocks count wrong for group #3149 (32253, counted=7882).
Fix? yes
 
Free blocks count wrong for group #3150 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #3151 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #3152 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #3153 (32253, counted=5).
Fix? yes
 
Free blocks count wrong for group #3154 (32253, counted=10924).
Fix? yes
 
Free blocks count wrong (46876472, counted=45507849).
Fix? yes
 
Inode bitmap differences:  -5935153 -(5935155--5935156) -(5935158--5935159) -5935161 -5935164 -(5935166--5935167) -(5935169--5935172) -5935175 -(5935177--5935178) -5935180 -(5935183--5935184) -(5935186--5935187) -5935192 -5935194 -(5935196--5935198) -5935391 -5935601 -(5935606--5935609) -5935612 -5935622 -(5935624--5935627) -5935629 -(5935631--5935632) -(5936210--5936215) -(5936218--5936220) -5936222 +(16481793--16481796) +(16481798--16481844) +(16481847--16481849) +16481851
Fix? yes
 
Free inodes count wrong for group #723 (7423, counted=7474).
Fix? yes
 
Directories count wrong for group #723 (95, counted=89).
Fix? yes
 
Free inodes count wrong for group #2008 (8208, counted=8153).
Fix? yes
 
Free inodes count wrong (29858977, counted=29858973).
Fix? yes
 
 
hmx_int_stor: ***** FILE SYSTEM WAS MODIFIED *****
hmx_int_stor: 1731/29860704 files (7.6% non-contiguous), 73702135/119209984 blocks
Removing extra swap space.
Are you having problems with a delete loop? [Y/N]: Are you having problems with a delete loop? [Y/N]: N
Skipped
 
Finished
humax# tmenu
Menu version 1.07
Enter system PIN: ****
 
      /---------------------------------------------\
      |  M A I N T E N A N C E  M O D E  M E N U  |
      \---------------------------------------------/
 
  [ Humax HDR-Fox T2 (humax) 1.03.06/2.19 ]
 
  Note: Some areas of the hard disk are not mounted.
        Not all functions will be available.
        (normal if you have just run a disk check)
 
    1 - Check and repair hard disk (fix-disk).
    2 - Run short hard-disk self test.
    3 - Run long hard-disk self test.
    4 - Check self-test progress.
  epg - Clear persistent EPG data.
    x - Leave maintenance mode (Humax will restart).
diag - Run a diagnostic.
  cli - System command line (advanced users).
 
Please select option: x
Are you sure you wish to leave maintenance mode and restart? [Y/N] Y
I've now rerun the force reinstall and it's downloading the webif(but seems to be taking some time, it's been like 5 minutes already), hopefully all will be good when it's done.

I'm also getting this when I go to it in my browser.

1962a17a09.png
 
Ok so i've now rerun the install for webif again after that one failed and timed out but i'm getting errors and the webif page has gone back to exactly how it was before, just a white page with some html source behind.

Code:
humax# opkg --force-reinstall install webif
No packages removed.
Installing webif (1.0.7-7) to root...
Downloading http://hummypkg.org.uk/hdrfoxt2/base/webif_1.0.7-7_mipsel.opk.
Upgrading jim on root from 0.73-1 to 0.74-2...
Downloading http://hummypkg.org.uk/hdrfoxt2/base/jim_0.74-2_mipsel.opk.
Configuring jim.
Configuring webif.
Postinstall configure
Runtime Error: /mod/webif/lib/system.class:2: Can't load package oo
in procedure 'require' called at file "/mod/webif/lib/bin/diskattrs", line 4
at file "/mod/webif/lib/setup", line 6
at file "/mod/webif/lib/system.class", line 2
Runtime Error: /mod/webif/lib/system.class:2: Can't load package oo
in procedure 'require' called at file "/mod/webif/lib/bin/resetnew", line 4
at file "/mod/webif/lib/setup", line 6
at file "/mod/webif/lib/system.class", line 2
Collected errors:
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/sqlite3.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-binary.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-cgi.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/inotify-tools.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/auto-unprotect.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-oo.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/sqlite3.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-binary.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-cgi.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/inotify-tools.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/auto-unprotect.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim-oo.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mod/var/opkg/info/jim.list: No such file or directory.
humax#
Sorry for so many messages and I really appreciate any help :)
 
Did you run fix-disk again to confirm the disk was totally fixed? Run it until it gives no errors.
I would then be tempted to do "diag setrma" and reboot and see where that gets you.
 
I didn't re run it but will do that now as I've already done an rma then put latest official firmware on then fresh custom firmware and it won't even list any packages now and the web if is completely gone to a page not found.

I've got telnet on my phone now so running it again to confirm there's no disk errors.

Thanks again for your help, I'll report back in morning as I am UK based.

Edit: Went pretty quick with no errors so tried to list packages again and it said
Code:
* rm_r: Failed to open dir : No such file or directory.

So I thought maybe it needs updating so ran 'opkg update'

Code:
wget: can't open '/Packages.gz': Read-only file system
Collected errors:
* opkg_download: Failed to download http://hummypkg.org.UK/hdrfoxt2/base/Packages.gz, wget returned 1
* rm_r: Failed to open dir : No such file or directory.

I'm really confused as surely what I've done is a fresh install?
 
If you're not already running the latest CF (currently 2.19), then upgrade to that version. Then run fix-disk in maintenance mode with the -l (lowercase L) option.
 
Still not had chance to re run the fix-disk, the box is being used most of the evening during the week :/ Might end up having to try it at the weekend
 
Now doing the test, here's the results so far from the first bit, doesn't mean much to me, but sounds promising

Code:
Humax HDR-Fox T2 (humax) 1.03.06/2.19
 
To return to the menu, type: exit
 
humax# fix-disk -l
Running /bin/fix-disk
Custom firmware version 2.19
 
 
Checking disk sda
 
Unmounted /dev/sda1
Unmounted /dev/sda2
Unmounted /dev/sda3
 
Running long disk self test
 
No pending sector errors found

Oops, looks like when I pressed ctrl + c it cancelled the next bit, time to start again :mad:

Edit again:

It's now finished.

Code:
humax# fix-disk -l
Running /bin/fix-disk
Custom firmware version 2.19
 
 
Checking disk sda
 
Partition /dev/sda1 is already unmounted
Partition /dev/sda2 is already unmounted
Partition /dev/sda3 is already unmounted
 
Running long disk self test
 
No pending sector errors found
 
 
Checking partition /dev/sda3...
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
hmx_int_stor: 14/655776 files (7.1% non-contiguous), 236995/2622611 blocks
 
Checking partition /dev/sda1...
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
hmx_int_stor: 13/65808 files (0.0% non-contiguous), 13876/263064 blocks
 
Creating swap file...
Setting up swapspace version 1, size = 1073737728 bytes
UUID=2183948f-e481-4831-8259-f1325eb07b0f
 
Checking partition /dev/sda2...
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
hmx_int_stor: 494/29860704 files (21.1% non-contiguous), 79259139/119209984 blocks
Removing extra swap space.
 
Finished
humax#
The above means nothing to me, what next? :D
 
Ok so I tried to reset the firmware with setrma and then installed cfw again but it still says RMA on the panel.

So I thought sod it and pressed factory reset which seems to have done bugger all other than retune channels and alter the volume.

I've come to a dead end here, anyone able to suggest anything else? Maybe put some older stock firmware on it instead of the 1.03.06?
 
You could run the 'resetrma' diagnostic from the telnet menu to remove the RMA indication then reinstall the packages from the webif.

Alternatively, install the official firmware then reinstall the custom firmware.
 
I'll try that resetrma tomorrow, as for installing packages, I can't even access the webif yet :/ I'll post an update again tomorrow.

Thanks for the help again :)
 
Back
Top