HDR custom firmware problem.

/df, this is the result of your previous suggestion:

Code:
humax# opkg install busybox
Package busybox (1.20.2-1) installed in root is up to date.
humax# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:www             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:domain          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:telnet          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:kerberos        0.0.0.0:*               LISTEN
udp        0      0 0.0.0.0:domain          0.0.0.0:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node Path
 
Sorry, just posted the above before I'd read your reply, will try your suggestions now, many thanks.
No need, actually your previous test was a better guide.

The output from your netstat command leads us to ask WTF is this bootstrapd. If you have loaded the procps package, try ps 108 (using the PID 108 listed in your test) or more generally pgrep bootstrapd; otherwise busybox ps | grep bootstrapd.
 
(hopefully) Silly question but have you rebooted since reinstalling the webif?
Perhaps give it a try
 
pgrep bootstrapd

Thanks /df. Well, probably a bit risky, but a while ago I decided to go ahead and "kill" the bootstrapd thing that was holding port 80. Then asked lighttpd to start and it seemed to do that, I now have:

Code:
humax# service

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

and

Code:
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      26362/lighttpd
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

Then tried to connect via my browser to the WebIf, but still not happening. Then tried:

Code:
Please select option: fixweb
Removing package webif from root...
Not deleting modified conffile /mod/webif/html/favicon.ico.
Installing webif (1.4.4-10) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.4.4-10_mipsel.opk.
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
Collected errors:
 * file_md5sum_alloc: Failed to open file /mod/webif/html/favicon.ico: No such file or directory.

I do seem to have lost one error message from where I started, but still not looking good!

Then I saw your last message and ran the commands, with the following results:

Code:
humax# ps 108
ps: invalid option -- 1
BusyBox v1.20.2 (2013-01-02 19:13:09 GMT) multi-call binary.

Usage: ps

Show list of processes

        w       Wide output
        l       Long output
        T       Show threads

humax# busybox ps | grep bootstrapd
26652 root      1344 S N  grep bootstrapd
 
(hopefully) Silly question but have you rebooted since reinstalling the webif?
Perhaps give it a try

No, since it didn't appear to install properly and there was the port 80 problem. Probably should have tried it, will do so now... Thanks MymsMan.
 
Yes. I think a reboot would be helpful.

Refreshing my memory, I found that bootstrapd is run by the CF startup script /etc/init.d/S37bootstrap to set up an initial default web page. Almost immediately, the startup sequence is supposed to find the HD, discover the /mod directory thereon, and run /sbin/modinit, which kills bootstrapd and runs the startup scripts in /mod/etc/init.d, including /mod/etc/init.d/S01lighttpd to start the lighttpd server that provides the Webif.

So if you haven't been through that startup sequence bootstrapd can linger and prevent the Webif from starting. You should still have seen some default web page, though.
 
Hooray! Yes, on rebooting the lighttpd was still active on port 80 and finally the lovely interface appeared in my browser.

No idea what the bootstrapd thing was all about, certainly nothing I installed, but seems to be gone for good now!

Just to check and in case it helps in any way, I just did a 'fixweb' and still get the same collection of error messages...

Code:
Removing package webif from root...
Not deleting modified conffile /mod/webif/html/favicon.ico.
Installing webif (1.4.4-10) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.4.4-10_mipsel.opk.
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
Collected errors:
 * file_md5sum_alloc: Failed to open file /mod/webif/html/favicon.ico: No such file or directory.

...hopefully that doesn't mean more trouble down the line, but the web interface seems to working ok so far.

Thank you MymsMan and /df for your patience and kindness in helping me. Most grateful.

Best wishes,

Steve
 
Yes. I think a reboot would be helpful.

Refreshing my memory, I found that bootstrapd is run by the CF startup script /etc/init.d/S37bootstrap to set up an initial default web page. Almost immediately, the startup sequence is supposed to find the HD, discover the /mod directory thereon, and run /sbin/modinit, which kills bootstrapd and runs the startup scripts in /mod/etc/init.d, including /mod/etc/init.d/S01lighttpd to start the lighttpd server that provides the Webif.

So if you haven't been through that startup sequence bootstrapd can linger and prevent the Webif from starting. You should still have seen some default web page, though.

Comforting to know it wasn't something that shouldn't have been there, appreciate the info and thanks again.
 
Hopefully @af123 will be able to look at the xconv errors but he hasn't been active recently, he may be on holiday
BTW I also see the xconv errors if I run fixweb, they seem mainly harmless


A boot is required after installing the webif and after updating some package which are only initialised during boot up
 
Last edited:
Hopefully @af123 will be able to look at the xconv errors but he hasn't been active recently, he may be on holiday
BTW I also see the xconv errors if I run fixweb, they seem mainly harmless.
...
Harmless, but also apparently inexplicable. It makes me nervous...
 
Back
Top