HDR custom firmware problem.

steve108

New Member
Been having problems where sometimes I switch the HDR on and get the install screen like a factory reset has been called, channels and recording schedule deleted. Also WebIf messages about crashing and disabled packages.

To try and fix I used Telnet, selected RMA mode, then installed system flush firmware - not sure that did anything, then installed Humax standard firmware, then fresh install of the latest custom firmware and used Telnet to download WebIf and packages.

Tried the above procedure a few times, having also run fixdisk which found no errors. Noticed while doing this work that each time I rebooted something would change my IP config, it kept changing the box's IP to 192.0.2.100 and gateway to 0.0.0.0 but leaving the rest to my manual settings. I tried putting the clear IP tables file on a stick but this didn't help.

Current position is box seems to be running fine with latest custom FW, but I cannot install the WebIf, see below.

Hope someone can help.

Thanks,

Steve

Code:
Please select option: webif
Are you sure you wish to install the initial web interface [Y/N] y

Connection to online repository at http://hpkg.tv successful!

Updating package list...

Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.
Updated list of available packages in /mod/var/opkg/base.
Installing webif (1.4.4-10) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.4.4-10_mipsel.opk.
Installing tcpfix (1.0.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/tcpfix_1.0.0_mipsel.opk.
Installing webif-channelicons (1.1.27) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif-channelicons_1.1.27_mipsel.opk.
Installing lighttpd (1.4.53-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/lighttpd_1.4.53-1_mipsel.opk.
Installing swapper (1.0.1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/swapper_1.0.1_mipsel.opk.
Installing service-control (2.5) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/service-control_2.5_mipsel.opk.
Installing busybox (1.20.2-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/busybox_1.20.2-1_mipsel.opk.
Installing libpcre (8.37-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/libpcre_8.37-1_mipsel.opk.
Installing openssl (1.1.1.b-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/openssl_1.1.1.b-1_mipsel.opk.
Installing ca-bundle (3.41) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/ca-bundle_3.41_mipsel.opk.
Installing jim (0.78-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim_0.78-1_mipsel.opk.
Installing jim-oo (0.78) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-oo_0.78_mipsel.opk.
Installing jim-sqlite3 (0.78) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-sqlite3_0.78_mipsel.opk.
Installing sqlite3 (3.27.2) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/sqlite3_3.27.2_mipsel.opk.
Installing ncurses (5.9) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/ncurses_5.9_mipsel.opk.
Installing libreadline (6.2-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/libreadline_6.2-1_mipsel.opk.
Installing jim-cgi (0.7-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-cgi_0.7-1_mipsel.opk.
Installing jim-binary (0.78) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-binary_0.78_mipsel.opk.
Installing lsof (4.87) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/lsof_4.87_mipsel.opk.
Installing epg (1.2.8) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/epg_1.2.8_mipsel.opk.
Installing libxconv (1.0.2) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/libxconv_1.0.2_mipsel.opk.
Installing hmt (2.0.10) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/hmt_2.0.10_mipsel.opk.
Installing ssmtp (2.64) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/ssmtp_2.64_mipsel.opk.
Installing cron-daemon (1.18.3-4) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/cron-daemon_1.18.3-4_mipsel.opk.
Installing at (3.1.18) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/at_3.1.18_mipsel.opk.
Installing anacron (2.3-2) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/anacron_2.3-2_mipsel.opk.
Installing trm (1.2) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/trm_1.2_mipsel.opk.
Installing openssl-command (1.0.0.d) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/openssl-command_1.0.0.d_mipsel.opk.
Installing nicesplice (1.8) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/nicesplice_1.8_mipsel.opk.
Installing id3v2 (0.1.11-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/id3v2_0.1.11-1_mipsel.opk.
Installing file (5.0.4) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/file_5.0.4_mipsel.opk.
Installing rsvsync (1.1.12-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/rsvsync_1.1.12-1_mipsel.opk.
Installing webif-charts (1.3) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif-charts_1.3_mipsel.opk.
Installing stripts (1.4.3) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/stripts_1.4.3_mipsel.opk.
Installing tmenu (1.22) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/tmenu_1.22_mipsel.opk.
Installing ffmpeg (4.1-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/ffmpeg_4.1-1_mipsel.opk.
Installing bzip2 (1.0.4) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/bzip2_1.0.4_mipsel.opk.
Installing lamemp3 (3.98.4) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/lamemp3_3.98.4_mipsel.opk.
Installing multienv (1.7-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/multienv_1.7-1_mipsel.opk.
Installing tcpping (1.1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/tcpping_1.1_mipsel.opk.
Installing e2fsprogs (1.42.13) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/e2fsprogs_1.42.13_mipsel.opk.
Installing wireless-tools (29-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/wireless-tools_29-1_mipsel.opk.
Installing dbupdate (1.0.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/dbupdate_1.0.0_mipsel.opk.
Installing recmon (2.2.1-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/recmon_2.2.1-1_mipsel.opk.
Installing inotify-tools (3.14) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/inotify-tools_3.14_mipsel.opk.
Installing hwctl (1.0.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/hwctl_1.0.0_mipsel.opk.
Installing nugget (1.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/nugget_1.0_mipsel.opk.
Installing tweak (1.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/tweak_1.0_mipsel.opk.
Installing jim-xconv (1.0.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-xconv_1.0.0_mipsel.opk.
warning: commands will be executed using /bin/sh
job 1 at Fri Aug 30 12:01:00 2019
Can't open /var/run/atd.pid to signal atd. No atd running?
Configuring ncurses.
Configuring libreadline.
Configuring sqlite3.
Configuring swapper.
Setting up swapspace version 1, size = 134213632 bytes
UUID=d895196a-bfb7-4721-981d-3120ed6b3176
Configuring tmenu.
Configuring busybox.
Configuring lsof.
Configuring multienv.
Configuring ca-bundle.
Configuring openssl.
Configuring libxconv.
Configuring jim-xconv.
Configuring ssmtp.
Configuring libpcre.
Configuring openssl-command.
Configuring bzip2.
Configuring tcpfix.
Disabling TCP window scaling
net.ipv4.tcp_window_scaling = 0
Configuring webif-channelicons.
Configuring service-control.
Configuring lighttpd.
Configuring jim.
Configuring jim-oo.
Configuring jim-sqlite3.
Configuring jim-cgi.
Configuring jim-binary.
Configuring epg.
Configuring hmt.
Configuring cron-daemon.
Configuring at.
Configuring anacron.
grep: /mod//var/spool/cron/crontabs/root: No such file or directory
Configuring trm.
Configuring nicesplice.
Configuring id3v2.
Configuring file.
Configuring rsvsync.
Configuring webif-charts.
Configuring stripts.
Configuring lamemp3.
Configuring ffmpeg.
Configuring tcpping.
Configuring e2fsprogs.
Configuring wireless-tools.
Configuring dbupdate.
Configuring inotify-tools.
Configuring recmon.
Configuring hwctl.
Configuring tweak.
Configuring nugget.
Configuring webif.
/mod/webif/lib/system.class:4: Error: error loading extension "/mod/lib/jim/xconv.so": File not found
Can't load package xconv
at file "/mod/webif/lib/bin/diskattrs", line 3
in procedure 'require' called at file "/mod/webif/lib/setup", line 13
at file "/mod/webif/lib/setup", line 8
at file "/mod/webif/lib/system.class", line 4
/mod/webif/lib/system.class:4: Error: error loading extension "/mod/lib/jim/xconv.so": File not found
Can't load package xconv
at file "/mod/webif/lib/auto/upgrade", line 3
in procedure 'require' called at file "/mod/webif/lib/setup", line 13
at file "/mod/webif/lib/setup", line 8
at file "/mod/webif/lib/system.class", line 4

-----------------------------------------------------------------------
Congratulations, you have successfully installed the full web interface
and supporting packages. Please restart your Humax device using either
the remote control or the button below.
-----------------------------------------------------------------------


Press return to continue:
 
Last edited:
Been having problems where sometimes I switch the HDR on and get the install screen like a factory reset has been called, channels and recording schedule deleted.
Random Factory Reset Syndrome is an occasional occurrence. You just have to go with it and perform a basic set-up, then reboot to enable the CF to take over and restore stuff (assuming you have previously prepared for such an event) - see here: https://hummy.tv/forum/threads/is-there-a-good-time-to-retune.7624/post-103888
Thus, with the appropriate use of boot-settings, tunefix, and auto-schedule-restore, the only thing left to configure manually after a factory reset (followed by a reboot) is the networking.


Also WebIf messages about crashing and disabled packages.
Your actions have been a bit severe and panicky, you've made things worse. This message is simply to say that, as a protection mechanism in case it was a bug in the CF which caused the crash (but much more likely it was the Humax code), the riskiest elements of the CF have been disabled so they can't cause a vicious cycle of interminable crashes. The correct response is to go to WebIF >> Diagnostics and run the fix-flash-packages diagnostic. As long as that does not then result in another crash, you don't have to worry further.

Current position is box seems to be running fine with latest custom FW, but I cannot install the WebIf, see below.
Have you Telnetted in and cleared RMA mode? You have to clear RMA mode before you can get any sense out of it again.

then installed system flush firmware - not sure that did anything
Although it is packaged as an installable image, System Flush is a one-off operation and doesn't install anything. It is, however, the only defence we know against RFRS, on the assumption that they occur because the internal databases have got their knickers in a twist.

NOTE: I had to remove 'http' from the links that appear in the installation feedback below as the forum will not allow me to post external links!
Please read the Newbie's Guide, especially the part about posting terminal dumps.
 
Given the thread title I think there iswas a better forum for it (thanks mods?).

Also, OP's installation log shows yet again these lines (this time it's traced back to require system.class in /mod/webif/lib/bin/diskattrs, but otherwise the same) which have been discussed in another recent post:
Code:
Configuring webif.
/mod/webif/lib/system.class:4: Error: error loading extension "/mod/lib/jim/xconv.so": File not found
Can't load package xconv
at file "/mod/webif/lib/bin/diskattrs", line 3
in procedure 'require' called at file "/mod/webif/lib/setup", line 13
at file "/mod/webif/lib/setup", line 8
at file "/mod/webif/lib/system.class", line 4
/mod/webif/lib/system.class:4: Error: error loading extension "/mod/lib/jim/xconv.so": File not found
Can't load package xconv
at file "/mod/webif/lib/auto/upgrade", line 3
in procedure 'require' called at file "/mod/webif/lib/setup", line 13
at file "/mod/webif/lib/setup", line 8
at file "/mod/webif/lib/system.class", line 4
 
Last edited:
Thank you for the replies and I apologise for not posting in the correct section or using a code-box for the installation feedback, I now know better!

Yes, RMA mode is cleared. Would my problem in re-installing WebIf be down to any issues reported in the error messages below? Is there anything I can enter via the CLI that would be able to correct these issues so the WebIf installer can do its thing? or anything else I could try?

Thanks,

Steve

Code:
Can't open /var/run/atd.pid to signal atd. No atd running?

Configuring anacron.
grep: /mod//var/spool/cron/crontabs/root: No such file or directory

/mod/webif/lib/system.class:4: Error: error loading extension "/mod/lib/jim/xconv.so": File not found
Can't load package xconv
at file "/mod/webif/lib/bin/diskattrs", line 3
in procedure 'require' called at file "/mod/webif/lib/setup", line 13
at file "/mod/webif/lib/setup", line 8
at file "/mod/webif/lib/system.class", line 4
/mod/webif/lib/system.class:4: Error: error loading extension "/mod/lib/jim/xconv.so": File not found
Can't load package xconv
at file "/mod/webif/lib/auto/upgrade", line 3
in procedure 'require' called at file "/mod/webif/lib/setup", line 13
at file "/mod/webif/lib/setup", line 8
at file "/mod/webif/lib/system.class", line 4
 
Although you say that Webif was not properly installed, the diagnostics you've quoted may just be noise.

What actually happens if you now try to navigate to the HDR's web server?
 
Given the thread title I think there is a better forum for it (mods?).
I don't understand. Where else should it go?

Yes, RMA mode is cleared.
Fair enough. I don't recall whether re-Installation of flash firmware actually clears the flag, but I mentioned it just in case.

I apologise for not... using a code-box for the installation feedback
So go back and edit it then!
 
Fair enough. I don't recall whether re-Installation of flash firmware actually clears the flag, but I mentioned it just in case.

I don't know about the flag, just that RMA mode no longer appears on the box's display, I assumed that means it is no longer in that mode.

So go back and edit it then!
Certainly, it's done now.
 
Although you say that Webif was not properly installed, the diagnostics you've quoted may just be noise.

What actually happens if you now try to navigate to the HDR's web server?

Sorry, meant to answer this before. When I try to access the web server at the HDR's IP address the interface does not appear.
 
Sorry, meant to answer this before. When I try to access the web server at the HDR's IP address the interface does not appear.
That's a bit unusual.

I assume you can telnet to the same IP address.

When you do, you can try these commands:
Code:
# service | grep lighttpd
lighttpd             Yes        Yes        Yes
# cat /tmp/webif.log
2019-09-02 16:15:38: (server.c.1464) server started (lighttpd/1.4.53) 
# cat /tmp/webif-error.log 
#
If you see "lighttpd ... Yes", something is stopping you from accessing the HDR's webserver.
If you see "lighttpd Yes Yes No", try service lighttpd startrun.
If you see "lighttpd Yes No No", also try service lighttpd auto.
If you see "lighttpd No ..." (surely not?), try opkg --force-reinstall install lighttpd.
 
Last edited:
Thanks /df for your help. Yes, I can telnet to the same IP, I tried the following, hope the results reveal something useful.

Code:
Humax HDR-Fox T2 (humax) 1.03.12/3.13

To return to the menu, type: exit

humax# service | grep lighttpd
lighttpd             Yes        Yes        No

humax# service lighttpd run

Name                 Installed  Autostart  Running
----                 ---------  ---------  -------
cifs                 No         No         No
cron                 Yes        Yes        Yes
epg                  Yes        Yes        No
lighttpd             Yes        Yes        No
nfs                  No         No         No
recmon               Yes        Yes        No
samba                No         No         No

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

humax# service | grep lighttpd
lighttpd             Yes        Yes        No

humax# cat /tmp/webif.log
cat: can't open '/tmp/webif.log': No such file or directory

humax# cat /tmp/webif-error.log
cat: can't open '/tmp/webif-error.log': No such file or directory
 
Thanks /df for your help. Yes, I can telnet to the same IP, I tried the following, hope the results reveal something useful.

Code:
Humax HDR-Fox T2 (humax) 1.03.12/3.13

To return to the menu, type: exit

humax# service | grep lighttpd
lighttpd             Yes        Yes        No

humax# service lighttpd run

Name                 Installed  Autostart  Running
----                 ---------  ---------  -------
cifs                 No         No         No
cron                 Yes        Yes        Yes
epg                  Yes        Yes        No
lighttpd             Yes        Yes        No
nfs                  No         No         No
recmon               Yes        Yes        No
samba                No         No         No

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

humax# service | grep lighttpd
lighttpd             Yes        Yes        No

humax# cat /tmp/webif.log
cat: can't open '/tmp/webif.log': No such file or directory

humax# cat /tmp/webif-error.log
cat: can't open '/tmp/webif-error.log': No such file or directory
So try service lighttpd start it appears @/df got the syntax slightly wrong
 
So try service lighttpd start it appears @/df got the syntax slightly wrong

Thanks MymsMan, tried that and got the following:

Code:
humax# service lighttpd start
Starting lighttpd...
2019-09-02 18:47:26: (network.c.309) can't bind to socket: 0.0.0.0:80 Address already in use
Done.
 
Starting lighttpd... 2019-09-02 18:47:26: (network.c.309) can't bind to socket: 0.0.0.0:80 Address already in use
Something is wrong, and I am not sure why the other services aren't running

Try forcing a reinstall of jim-xconv, there has been a number of recent reports of problems
Try running this from the command line:

Code:
opkg install jim-xconv --force-reinstall
also try
Code:
opkg update
opkg upgrade
 
Something is wrong, and I am not sure why the other services aren't running

Try forcing a reinstall of jim-xconv, there has been a number of recent reports of problems

Thanks for your help MymsMan. I tried the commands you suggested and everything seemed to go well. Made no difference when I tried to start the lighttpd service afterwards though.

Code:
humax# opkg install jim-xconv --force-reinstall
Removing package jim-xconv from root...
Installing jim-xconv (1.0.0) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-xconv_1.0.0_mipsel.opk.
Configuring jim-xconv.
humax# opkg update
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.
Updated list of available packages in /mod/var/opkg/base.
humax# opkg upgrade
humax# service lighttpd start
Starting lighttpd...
2019-09-02 20:50:04: (network.c.309) can't bind to socket: 0.0.0.0:80 Address already in use
 
...
Code:
...
humax# service lighttpd start
Starting lighttpd...
2019-09-02 20:50:04: (network.c.309) can't bind to socket: 0.0.0.0:80 Address already in use
There is something listening on port 80 and it's not the lighttpd that the service command finds; also it's not something your web browser can connect to. You could install the busybox package if it's not already installed (opkg install busybox) -- busybox is a compendium of various tools, there is one configuration built into the CF, but the repository package adds further tools -- and then run netstat -l (that's a lower-case L) to find out what on earth it is.

[All command lines warranted for accuracy!]
 
I know little of what the issue may be, but the error message seemed to suggest port 80 was already in use and that was the port lighttpd needed access to in order to even attempt to start, so I queried what may be already using that port and got the following:

Code:
humax# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      108/bootstrapd
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      162/dnsmasq
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN      169/utelnetd
tcp        0      0 0.0.0.0:88              0.0.0.0:*               LISTEN      112/shellinaboxd

Not sure if this helps track down the issue, but seemed worth a try...
 
There is something listening on port 80 and it's not the lighttpd that the service command finds; also it's not something your web browser can connect to. You could install the busybox package if it's not already installed (opkg install busybox) -- busybox is a compendium of various tools, there is one configuration built into the CF, but the repository package adds further tools -- and then run netstat -l (that's a lower-case L) to find out what on earth it is.

[All command lines warranted for accuracy!]

Sorry, just posted the above before I'd read your reply, will try your suggestions now, many thanks.
 
Back
Top