[webif] Web interface

Weif 0.8.5
  • Add Extract Audio option for decrypted recordings to produce an MP3 file from the audio within.
 
I am getting the following message when I try to update the package list from internet.

Code:
>>> opkg update
wget: can't connect to remote host (89.248.55.76): Connection refused
Downloading http://hummypkg.org.uk/hdrfoxt2/base/Packages.gz.
Collected errors:
* opkg_download: Failed to download http://hummypkg.org.uk/hdrfoxt2/base/Packages.gz, wget returned 1.

Updating package meta information
 
I record Doctors for the wife each week day. If I download them the episode date and time are changed to a number then the .TS extension. If I Tidy the folder first I get the episode name as the file name which is fine BUT the date and time are missing. My wife therefore doesn't know what order the files should be run in.

Is it possible to have an option on 'De-Duplicate/Tidy this folder' that adds the original date and possibly the time to the front of the episode name? That way you know in what order to play the episodes and also have the episode name too.
 
The number you get when downloaded is the media ID, not a lot to be done about that. Don't know about the rest.
 
Just performed a crop from the web interface. It seemed to run OK but the end message flashed by and was replaced by:

Code:
Runtime Error: crop.jim:16: invalid command name "0" at file "crop.jim", line 16

Web interface version 0.8.5
 
Code:
humax# service start mongoose

It might at least give an error message. Otherwise check /tmp/modinit.log via FTP or other means.
 
Oh dear...

Code:
humax# cd /tmp
humax#
humax# ls
dnsmasq.pid  epgd.log      if-up        modinit.log  rsvsync.log
dropbear.pid  hosts        ifstate      rag.log      xinit.log
humax#
humax# cat modinit.log
=== setup_hosts ==========================================
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
default        192.168.1.254  0.0.0.0        UG    0      0        0 eth0
    Interface: [eth0]
    IP: [192.168.1.68]
=== diag =================================================
Filesystem                Size      Used Available Use% Mounted on
/dev/root                15.9M    15.9M        0 100% /
tmpfs                    61.0M    24.0K    61.0M  0% /tmp
tmpfs                    61.0M        0    61.0M  0% /media
/dev/mtdblock1            2.0M    504.0K      1.5M  25% /var/lib/humaxtv
/dev/mtdblock2            2.0M      1.2M    812.0K  60% /var/lib/humaxtv_backup
/dev/sda1              465.8G    222.0G    243.8G  48% /media/drive1
/dev/sdb1              293.4G    90.2G    188.4G  32% /media/drive2
/dev/sdc1              1011.4M    51.9M    908.1M  5% /mnt/hd1
/dev/sdc2              447.6G    359.8G    65.1G  85% /mnt/hd2
/dev/sdc3                9.8G    462.3M      8.9G  5% /mnt/hd3

eth0      Link encap:Ethernet  HWaddr 00:03:78:B8:E0:E7
          inet addr:192.168.1.68  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1360 (1.3 KiB)  TX bytes:1252 (1.2 KiB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 
  PID USER      VSZ STAT COMMAND
    1 root      1248 S    init
    2 root        0 SW  [migration/0]
    3 root        0 SWN  [ksoftirqd/0]
    4 root        0 SW  [migration/1]
    5 root        0 RWN  [ksoftirqd/1]
    6 root        0 SW<  [events/0]
    7 root        0 SW<  [events/1]
    8 root        0 SW<  [khelper]
    9 root        0 SW<  [kthread]
  10 root        0 SW<  [kblockd/0]
  11 root        0 SW<  [kblockd/1]
  12 root        0 SW<  [khubd]
  13 root        0 SW<  [kseriod]
  14 root        0 SW  [pdflush]
  15 root        0 SW  [pdflush]
  16 root        0 SW<  [kswapd0]
  17 root        0 SW<  [aio/0]
  18 root        0 SW<  [aio/1]
  19 root        0 SW<  [ata/0]
  20 root        0 SW<  [ata/1]
  21 root        0 SW<  [ata_aux]
  22 root        0 SW<  [scsi_eh_0]
  23 root        0 SW<  [scsi_eh_1]
  24 root        0 SW  [mtdblockd]
  25 root        0 SW<  [kpsmoused]
  27 root      1244 S    {rcS} /bin/sh /etc/init.d/rcS
  73 root        0 SWN  [jffs2_gcd_mtd1]
  74 root        0 SWN  [jffs2_gcd_mtd2]
  120 nobody    936 S    /usr/bin/dnsmasq
  125 root      812 S    /bin/utelnetd -l /bin/sh -p 23 -d
  140 root      1244 S    {S90settop} /bin/sh /etc/init.d/S90settop start
  150 root      310m S    /usr/bin/humaxtv
  165 root        0 SW<  [scsi_eh_2]
  166 root        0 SW<  [usb-storage]
  187 root        0 SW<  [scsi_eh_3]
  188 root        0 SW<  [usb-storage]
  317 root      1256 S    udhcpc -t 5 -T 10 -p /var/lib/humaxtv/udhcpc.eth0.pid -i eth0
  341 root      1248 S <  {run-and-gun} /bin/sh /etc/mdev/run-and-gun
  373 root        0 SW<  [kjournald]
  379 root      1248 S <  {run-and-gun} /bin/sh /etc/mdev/run-and-gun
  416 root      1248 S <  {run-and-gun} /bin/sh /etc/mdev/run-and-gun
  431 root      1248 S <  {run-and-gun} /bin/sh /etc/mdev/run-and-gun
  435 root      1248 S <  {run-and-gun} /bin/sh /etc/mdev/run-and-gun
  440 root        0 SW<  [kjournald]
  442 root        0 SW<  [kjournald]
  444 root        0 SW<  [kjournald]
  482 root      1324 R <  sleep 1
  485 root      1248 R <  {modinit} /bin/sh /sbin/modinit
  495 root      1324 R <  sleep 1
  496 root      1248 R <  {run-and-gun} /bin/sh /etc/mdev/run-and-gun
  501 root      1324 S <  sleep 1
  505 root      1332 R <  ps -w

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
default        O2WirelessBox.l 0.0.0.0        UG    0      0        0 eth0

=== setup_directories ====================================
=== create_rcS ===========================================
=== setup_hostname =======================================
=== setup_hosts ==========================================
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
default        O2WirelessBox.l 0.0.0.0        UG    0      0        0 eth0
    Interface: [eth0]
    IP: [192.168.1.68]
=== run_init =============================================
Loaded FUSE module into kernel.
Loading config file /mod/etc/mongoose.conf
Failed to start Mongoose. Maybe some options are assigned bad values?
Try to run with '-e error_log.txt' and check error_log.txt for more information.
Anacron 2.3 started on 2011-12-10
anacron: Invalid syntax in /mod/etc/anacrontab on line 8 - skipping this line
Normal exit (0 jobs run)
humax#
humax# service start mongoose
Starting mongoose...
Done.
humax#
humax# Loading config file /mod/etc/mongoose.conf
Failed to start Mongoose. Maybe some options are assigned bad values?
Try to run with '-e error_log.txt' and check error_log.txt for more information.

humax#
humax# service start mongoose -e error_log.txt
Starting mongoose...
Loading config file /mod/etc/mongoose.conf
Done.
humax#
humax# Failed to start Mongoose. Maybe some options are assigned bad values?
Try to run with '-e error_log.txt' and check error_log.txt for more information.

humax#
humax# ls
dnsmasq.pid  epgd.log      if-up        modinit.log  rsvsync.log
dropbear.pid  hosts        ifstate      rag.log      xinit.log
humax#
humax#

Where is error_log.txt, or didn't I invoke it properly?
 
Try to run it manually from the telnet command line:
Code:
/mod/sbin/mongoose /mod/etc/mongoose.conf -e /tmp/error_log.txt &
then
Code:
cat /tmp/error_log.txt
to view the error log.
 
Umm, it thought there was a syntax error in the above:

Code:
humax# /mod/sbin/mongoose /mod/etc/mongoose.conf -e /tmp/error_log.txt &
humax# Mongoose version 3.0 (c) Sergey Lyubka
Usage:
  mongoose -A <htpasswd_file> <realm> <user> <passwd>
  mongoose <config_file>
  mongoose [-option value ...]
OPTIONS:
  -C cgi_extensions (default: ".cgi,.pl,.php")
  -E cgi_environment (default: "")
  -G put_delete_passwords_file (default: "")
  -I cgi_interpreter (default: "")
  -P protect_uri (default: "")
  -R authentication_domain (default: "mydomain.com")
  -S ssi_extensions (default: ".shtml,.shtm")
  -a access_log_file (default: "")
  -c ssl_chain_file (default: "")
  -d enable_directory_listing (default: "yes")
  -e error_log_file (default: "")
  -g global_passwords_file (default: "")
  -i index_files (default: "index.html,index.htm,index.cgi")
  -k enable_keep_alive (default: "no")
  -l access_control_list (default: "")
  -M max_request_size (default: "16384")
  -m extra_mime_types (default: "")
  -p listening_ports (default: "8080")
  -r document_root (default: ".")
  -s ssl_certificate (default: "")
  -t num_threads (default: "10")
  -u run_as_user (default: "")
See  [URL]http://code.google.com/p/mongoose/wiki/MongooseManual[/URL] for more details.
Example:
  mongoose -s cert.pem -p 80,443s -d no
 
Sorry about that.

Try:
Code:
echo "error_log_file /tmp/error_log.txt" >> /mod/etc/mongoose.conf

service start mongoose
 
I'm PuTTY in your hands...

Code:
humax# echo "error_log_file /tmp/error_log.txt" >> /mod/etc/mongoose.conf
humax# service start mongoose
Starting mongoose...
Loading config file /mod/etc/mongoose.conf
Failed to start Mongoose. Maybe some options are assigned bad values?
Try to run with '-e error_log.txt' and check error_log.txt for more information.
Done.
humax# cat /tmp/error_log.txt
cat: can't open '/tmp/error_log.txt': No such file or directory
humax# cat /mod/etc/mongoose.conf
document_root /mod/var/mongoose/html,/media=/media,/cgi-bin=/mod/var/mongoose/cgi-bin,/images=/opt/share/images/blue,/pl
ugin=/mod/var/mongoose/plugin
index_files index.shtml,index.html
ssi_extensions .shtml
cgi_extensions .cgi,jim
cgi_environment LD_LIBRARY_PATH=/lib:/mod/lib
listening_ports 80
num_threads 10
authentication_domain webif
global_passwords_file /mod/etc/htpasswd
error_log_file /tmp/error_log.txt
humax#
 
I can't see anything obviously wrong but here are a few commands which might give more clues.

Code:
file /mod/etc/mongoose.conf

ps -w

df -h
 
I'm inclined to re-install, but we won't find out what's gone wrong that way. I can telnet my IP address (obviously), and I can access the webif on my HD-FOX.

I don't know what those commands do, so I've typed them at the command line blind:

Code:
humax# file /mod/etc/mongoose.conf
-/bin/sh: file: not found
humax# ps -w
  PID USER       VSZ STAT COMMAND
    1 root      1248 S    init
    2 root         0 SW   [migration/0]
    3 root         0 SWN  [ksoftirqd/0]
    4 root         0 SW   [migration/1]
    5 root         0 SWN  [ksoftirqd/1]
    6 root         0 SW<  [events/0]
    7 root         0 SW<  [events/1]
    8 root         0 SW<  [khelper]
    9 root         0 SW<  [kthread]
   10 root         0 SW<  [kblockd/0]
   11 root         0 SW<  [kblockd/1]
   12 root         0 SW<  [khubd]
   13 root         0 SW<  [kseriod]
   14 root         0 SW   [pdflush]
   15 root         0 SW   [pdflush]
   16 root         0 SW<  [kswapd0]
   17 root         0 SW<  [aio/0]
   18 root         0 SW<  [aio/1]
   19 root         0 SW<  [ata/0]
   20 root         0 SW<  [ata/1]
   21 root         0 SW<  [ata_aux]
   22 root         0 SW<  [scsi_eh_0]
   23 root         0 SW<  [scsi_eh_1]
   24 root         0 SW   [mtdblockd]
   25 root         0 SW<  [kpsmoused]
   27 root      1244 S    {rcS} /bin/sh /etc/init.d/rcS
   73 root         0 SWN  [jffs2_gcd_mtd1]
   74 root         0 SWN  [jffs2_gcd_mtd2]
  120 nobody     936 S    /usr/bin/dnsmasq
  125 root       832 R    /bin/utelnetd -l /bin/sh -p 23 -d
  140 root      1244 S    {S90settop} /bin/sh /etc/init.d/S90settop start
  150 root      369m S    /usr/bin/humaxtv
  165 root         0 SW<  [scsi_eh_2]
  166 root         0 SW<  [usb-storage]
  187 root         0 SW<  [scsi_eh_3]
  188 root         0 SW<  [usb-storage]
  317 root      1256 S    udhcpc -t 5 -T 10 -p /var/lib/humaxtv/udhcpc.eth0.pid -i eth0
  373 root         0 SW<  [kjournald]
  440 root         0 SW<  [kjournald]
  442 root         0 SW<  [kjournald]
  444 root         0 SW<  [kjournald]
  569 root      1352 S <  /mod/sbin/crond
  597 root      4560 S <  /mod/bin/epg -f /mnt/hd1/dvbepg/epg.dat sqlitedumpd /mnt/hd1/epg.db
  608 root      1216 S <  /mod/sbin/dropbear
  646 root       924 S <  /mod/sbin/auto-unprotectd -d /mnt/hd2/dms_cds.db /media/My Video/
  743 root      1788 S <  /mod/bin/ntfs-3g /dev/sda1 /media/usb-drive1
 1208 root      1248 S    -/bin/sh
 1215 root         0 Z    [mongoose]
 1400 root      1248 S    -/bin/sh
 1870 root       912 S    tinyftp -i HumaxFTP -p 7579 -c /media
 1927 root      1248 S    -/bin/sh
 1934 root      1332 R    ps -w
humax# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                15.9M     15.9M         0 100% /
tmpfs                    61.0M     36.0K     61.0M   0% /tmp
tmpfs                    61.0M         0     61.0M   0% /media
/dev/mtdblock1            2.0M    488.0K      1.5M  24% /var/lib/humaxtv
/dev/mtdblock2            2.0M      1.2M    812.0K  60% /var/lib/humaxtv_backup
/dev/sdb1               293.4G     90.2G    188.4G  32% /media/drive2
/dev/sdc1              1011.4M     47.2M    912.8M   5% /mnt/hd1
/dev/sdc2               447.6G    370.1G     54.8G  87% /mnt/hd2
/dev/sdc3                 9.8G    462.3M      8.9G   5% /mnt/hd3
/dev/sda1               465.8G    222.0G    243.8G  48% /media/usb-drive1
humax#
 
Can you do

cat /mod/etc/htpasswd

?

Does it return any output? - no need to post it here, it should contain usernames/password hashes.
 
Back
Top