Stuck In Re-installation Loop

4ndy

Member
I was taking a look at BBC III on iplayer when the HDR crashed (not unusual annoyingly)

This time however when the box restarted and I went into TV Portal, it showed the "Download and install the full Web Interface" page on the TV screen. I tried several restarts, then reflashed, first with the stock firmware and then with the custom.

Now I am stuck in a loop between the "Download and install the full Web Interface" page and the

"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.
Package webif (1.2.8-6) installed in root is up to date.

-----------------------------------------------------------------------
Congratulations, you have successfully installed the full web interface
and supporting packages. Please restart your Humax device using the
remote control to put it into standby, wait for it to fully shut down
and then start it up again.
----------------------------------------------------------------------- "
message.

On restarting as directed I am back to "Download and install ....."

Just before the initial crash I had a message about webif updating, just in case that is relevent.

How do I break out of this loop?
 
Try waiting 5 minutes after boot before attempting to access the portal.
You must have a custom portal package installed but I've never seen this behaviour reported!
 
Thanks af, the portal is no longer the main issue. I can't install the cf.




Sent from my iPad using Tapatalk
 
I don't think you really need to do the installation. It's saying that it's already up-to-date.
Try accessing the CLI and running 'opkg update && opkg upgrade'
 
Webif still in loop between the two installation screens.

Has the latest webif been tested in a fresh CF installation? Can I download and try a previous version to get past this?

Could it be looking for a dependent package that is no longer there?
 
I just telnetted in and ran the stat option:

Code:
/mod/webif/lib/setup:8: Error: couldn't read file "/mod/webif/lib/overrides": No    such file or directory
at file "/mod/bin/status", line 4
in procedure 'require' called at file "/mod/webif/lib/setup", line 19
at file "/mod/webif/lib/setup", line 8
 
The most likely is an untested interaction between the new web-server-during-boot operation and the custom portal.
 
Have you tried the 'opkg update && opkg upgrade' from the command line yet?
 
Have you tried the 'opkg update && opkg upgrade' from the command line yet?

Yes, sorry, I thought I implied that in post #5. It made no difference.

I have now been through the RMA process via telnet, and reinstalled the stock and then custom firmware. I don't think that worked completely, as I had to clear RMA mode via telnet before webif would start loading.

Current situation is that the webif install seems to be stuck. Not moved for ten minutes.

Code:
Downloading and installing full web interface...

This may take some time depending on your Internet connection speed.

Please wait..


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.2.8-6) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.2.8-6_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.20) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif-channelicons_1.1.20_mipsel.opk.
Installing lighttpd (1.4.39-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/lighttpd_1.4.39-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.1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/service-control_2.1_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 jim (0.76) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim_0.76_mipsel.opk.
Installing jim-oo (0.76) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-oo_0.76_mipsel.opk.
Installing jim-sqlite3 (0.76) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-sqlite3_0.76_mipsel.opk.
Installing sqlite3 (3.8.11.1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/sqlite3_3.8.11.1_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) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-cgi_0.7_mipsel.opk.
Installing jim-binary (0.76) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/jim-binary_0.76_mipsel.opk.
Installing lsof (4.87) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/lsof_4.87_mipsel.opk.
Installing epg (1.2.1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/epg_1.2.1_mipsel.opk.
Installing hmt (2.0.9) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/hmt_2.0.9_mipsel.opk.
Installing ssmtp (2.64) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/ssmtp_2.64_mipsel.opk.
Installing anacron (2.3-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/anacron_2.3-1_mipsel.opk.
Installing cron-daemon (1.18.3-1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/cron-daemon_1.18.3-1_mipsel.opk.
Installing trm (1.1) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/trm_1.1_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.7) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/nicesplice_1.7_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.0.3) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/rsvsync_1.0.3_mipsel.opk.
Installing webif-charts (1.3) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif-charts_1.3_mipsel.opk.
Installing stripts (1.2.5-3) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/stripts_1.2.5-3_mipsel.opk.
Installing tmenu (1.12) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/tmenu_1.12_mipsel.opk.

And this message on browser refresh.

Code:
This may take some time depending on your Internet connection speed.




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

Updating package list...

Collected errors:
* opkg_conf_load: Could not lock /tmp/opkg.lock: Resource temporarily unavailable.

Error retrieving package list from the Internet. Please check your connection
and try again.
 
It downloaded the packages more successfully after another reboot.

It really was not happy for some reason. I will run fix disk over night and monitor.

Thanks for you help
 
One odd thing coming out of all this. Somewhere along the line something has changed so that telnet no longer requires a PIN. Not a biggy, but does anyone know how to reinstate this?

Secondly, when I eventually got webif working again, it came up with the big pink banner warning that there was an issue with the hard drive, and a link to the smart diagnostics. Problem is the smartmontools package is not part of the default package set. It took me while to work out that I had to change to advanced packages and install it. It might deter someone coming to CF late with wear and tear already on their drive. In my case it was just the reallocated sector count of 8, as it has been for almost a year. Without that package you can't clear the warning. Would it be an idea to include it in the default packages?

Looking back, I think the issues today stem from a crash I had in the week that spontaneously did a factory reset. When it restarted, I had to go through the entire set up process starting from language selection.
 
Last edited:
Are you sure that telnet requires the pin. Mine never has. FTP access requires the pin.
If your certain that it did require one could it be because you have set a different pin or set telnet expert mode. Just an idea.
Anyway I'm sure somebody will be along with a definitive answer soon.


Sent from my iPad using Tapatalk
 
I have now been through the RMA process via telnet, and reinstalled the stock and then custom firmware. I don't think that worked completely, as I had to clear RMA mode via telnet before webif would start loading.

That's normal for RMA. It clears the disk and flash then sticks until you install an official firmware image to complete the process. You probably wanted the reset option which just resets the custom firmware environment.

One odd thing coming out of all this. Somewhere along the line something has changed so that telnet no longer requires a PIN. Not a biggy, but does anyone know how to reinstate this?
That's an option on the settings page, under Advanced Settings at the bottom I think.

I'll have a look at the smartmontools dependency. smartctl is in flash these days so the package should not be required.
 
I've had this problem before. There's a thread here.

Thanks MET. A problem with setup.db does seem logical. It seemed to be that file preventing webif from loading at #6. Also the crash initiating a factory reset in the week could have messed up files.

I am not able to view this file (on any machine) via the Diagnostics page file editor though. How did you edit it?

That's normal for RMA. It clears the disk and flash then sticks until you install an official firmware image to complete the process. You probably wanted the reset option which just resets the custom firmware environment.


That's an option on the settings page, under Advanced Settings at the bottom I think.

I'll have a look at the smartmontools dependency. smartctl is in flash these days so the package should not be required.

Thanks af. I did try the rset option, but it still would not install.

I went through and installed the packages installed on another box. I cant find smartctl in the installed or available list.

Using the remote control, I "changed" the parental control from 0000 to 0000. This fooled it into updating the setup file.

I feel a bit like the CFW has been installed by brute force. Is there any way of checking for corrupted system files etc.? Fix-disk lingered quite some time in places, but did not report finding anything.
 
Thanks MET. A problem with setup.db does seem logical. It seemed to be that file preventing webif from loading at #6. Also the crash initiating a factory reset in the week could have messed up files.

I am not able to view this file (on any machine) via the Diagnostics page file editor though. How did you edit it?
You can view it in Diagnostics > Database Browser, but you can't edit it there. I think I edited it using SQLite Manager (Android). I just had a look at the setup database on two different machines, and found the pin code entry in 'TBL_Menuconfig'. The entry was in different rows of the table in each machine: I don't understand why the format is not standardised.
 
I have a problem very similar to that described in 4ndy's first post in this thread. I had cause to replace the HDD in one of my Humaxs. I first updated the CF to the latest version. Then replaced the drive, installing a new one. I then tried to install the full Webif. I had to try this a few times as there seemed to be a problem at the server end and the process was getting stuck, but eventually it seemed to install as expected. I rebooted but was directed back to the Download and Install... process. I tried this several more times but am stuck in the same loop as experienced by 4andy. I tried using telnet for "opkg update && opkg upgrade" but that made no difference. Is rset via CLI a sensible next move and will this then require me to reload the CF? Incidentally I did not have the password bypass issue.
 
Thank you Ezra that worked. It reported 1 error - "* file_md5sum_alloc: Failed to open file /mod/webif/html/favicon.ico: No such file or directory." I don't know if that is much of an issue.
 
Back
Top