Web IF fails to completely load

gmb42

New Member
The WEB IF on my Humax fails to load completely, the banner graphic is displayed with the used\free pie chart of disk usage but the display "element" just displays "Loading..." and no other display is shown.

Using Telnet and running fixweb gives the following output:

Please select option: fixweb Removing package webif from root... Installing webif (1.4.9-9) to root... Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.4.9-9_mipsel.opk. Configuring webif. /mod/bin/jimsh: can't load library 'libcrypto.so.1.1' /mod/bin/jimsh: can't load library 'libcrypto.so.1.1'

Any suggestions on what to do to recover from this issue?
 
The webif-error.log:

Code:
humax# cat /var/log/webif-error.log
/mod/webif/lib/settings.class:61: Error: database disk image is malformed
in procedure 'header' called at file "/mod/webif/html/index.jim", line 8
at file "/mod/webif/lib/setup", line 104
at file "/mod/webif/html/lib/header.jim", line 44
at file "/mod/webif/html/lib/topbar.jim", line 35
in procedure '<reference.<setting>.00000000000000000002>' called at file "/mod/webif/include/toolbar.jim", line 5
in procedure 'settings notoolbar' called at file "/mod/lib/jim/oo.tcl", line 52
at file "/mod/lib/jim/oo.tcl", line 73
in procedure '<reference.<setting>.00000000000000000002>' called at file "/mod/webif/lib/settings.class", line 208
in procedure 'settings _nval_setting' called at file "/mod/lib/jim/oo.tcl", line 52
at file "/mod/lib/jim/oo.tcl", line 73
in procedure 'settings' called at file "/mod/webif/lib/settings.class", line 131
at file "/mod/webif/lib/settings.class", line 61
/mod/webif/lib/settings.class:61: Error: database disk image is malformed
in procedure 'header' called at file "/mod/webif/html/index.jim", line 8
at file "/mod/webif/lib/setup", line 104
at file "/mod/webif/html/lib/header.jim", line 44
at file "/mod/webif/html/lib/topbar.jim", line 35
in procedure '<reference.<setting>.00000000000000000002>' called at file "/mod/webif/include/toolbar.jim", line 5
in procedure 'settings notoolbar' called at file "/mod/lib/jim/oo.tcl", line 52
at file "/mod/lib/jim/oo.tcl", line 73
in procedure '<reference.<setting>.00000000000000000002>' called at file "/mod/webif/lib/settings.class", line 208
in procedure 'settings _nval_setting' called at file "/mod/lib/jim/oo.tcl", line 52
at file "/mod/lib/jim/oo.tcl", line 73
in procedure 'settings' called at file "/mod/webif/lib/settings.class", line 131
at file "/mod/webif/lib/settings.class", line 61

Running `diag ssl/fix:

Code:
humax# diag ssl/fix
Running: ssl/fix
Connecting to hpkg.tv (89.248.55.75:80)
libcrypto.so.1.1     100% |*************************************************************|  3557k  0:00:00 ETA
Connecting to hpkg.tv (89.248.55.75:80)
libssl.so.1.1        100% |*************************************************************|   798k  0:00:00 ETA

Checking the libraries:

Code:
humax# ls /usr/lib/libssl.so* -al
lrwxrwxrwx    1 root     root            15 Apr 26  2017 /usr/lib/libssl.so -> libssl.so.1.0.0
-rw-------    1 root     root        382642 Feb  7  2014 /usr/lib/libssl.so.1.0.0

humax# ls /usr/lib/libcrypto.so* -al
lrwxrwxrwx    1 root     root            18 Apr 26  2017 /usr/lib/libcrypto.so -> libcrypto.so.1.0.0
-rw-------    1 root     root       2099815 Feb  7  2014 /usr/lib/libcrypto.so.1.0.0
 
The major problem appears to be that the webif database - containing most of the webif and other packages settings is corrupt.
Deleteing /nod/etc/webif.db will probably solve the problem but you will need to reapply all of the package settings again so it is worth trying to recover it first.
Try
Code:
cd /mod/etc && sqlite3 webif.db ".clone temp.db" && mv temp.db webif.db
 
The major problem appears to be that the webif database - containing most of the webif and other packages settings is corrupt.
Deleteing /nod/etc/webif.db will probably solve the problem but you will need to reapply all of the package settings again so it is worth trying to recover it first.
Try
Code:
cd /mod/etc && sqlite3 webif.db ".clone temp.db" && mv temp.db webif.db
Ran that, although I broke it into separate steps and saved a copy of webif.db in webif.temp.db as the temp.db seemed very small (4096).

Code:
humax# ls -al web*
-rw-------    1 root     root         12288 Aug 15 17:44 webif.db
-rw-------    1 root     root      18620416 Aug 15 17:39 webif.temp.db

The full webif is now displaying, but there were warnings about disk issues:

humax-disk.png
 
Probably an artefact of the recovery process. Ack it and check that the value (ID 5) doesn't increase.
 
Probably an artefact of the recovery process. Ack it and check that the value (ID 5) doesn't increase.
OK.

Everything seems to be OK bar the TV Diary display, that still fails to load. Looking at the tvdiary.log file show the db might be corrupted:

Code:
in procedure 'main' called at file "/mod/sbin/tvdiary_status", line 699
in procedure 'load_unfinished_activities' called at file "/mod/sbin/tvdiary_status", line 490
at file "/mod/sbin/tvdiary_status", line 107
/mod/sbin/tvdiary_status:107: Error: database disk image is malformed
 
The full webif is now displaying,
Good,
But go through the webif Settings page and check whether your previous settings have been preserved and change settings if needed
Everything seems to be OK bar the TV Diary display, that still fails to load. Looking at the tvdiary.log file show the db might be corrupted:
Try recovering it in same way as the webif.db
 
Last edited:
Good,
But go through the webif Settings page and check whether your previous settings have been preserved and change settings if needed

difficult to say if the webif settings have changed, I think I mostly had it at the defaults. I can verify the newk package does have custom settings.

Try recovering it in same way as the webif.db
The tvdiary ui is now being displayed.

Thanks for your help.
 
Back
Top