• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

[flatten] Automatically Removing Programmes from Series Folders

Can you post the contents of modinit.log just after bringing the box out of full standby? It might have some clues in it. I think flatten's old school and runs from cron...


Posted on the move; please excuse any brevity.
 
Cheers guys - I really appreciate the help:
Code:
>>> Contents of /var/log/modinit.log 5.38 KiB
=== Wed May 22 19:32:03 GMT 2013 - modinit - setup_hosts ===========================
=== Wed May 22 19:32:03 GMT 2013 - 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.70]
=== Wed May 22 19:32:04 GMT 2013 - complete ===========================
=== Wed May 22 19:32:04 GMT 2013 - modinit - ===========================
=== Wed May 22 19:32:04 GMT 2013 - diag ===========================
Filesystem Size Used Available Use% Mounted on
/dev/root 16.9M 16.9M 0 100% /
tmpfs 61.0M 28.0K 61.0M 0% /tmp
tmpfs 61.0M 0 61.0M 0% /media
/dev/mtdblock1 2.0M 512.0K 1.5M 25% /var/lib/humaxtv
/dev/mtdblock2 2.0M 1.2M 780.0K 62% /var/lib/humaxtv_backup
/dev/sda1 1011.4M 41.5M 918.5M 4% /mnt/hd1
/dev/sda2 447.6G 50.9G 374.0G 12% /mnt/hd2
/dev/sda3 9.8G 762.6M 8.6G 8% /mnt/hd3
 
eth0 Link encap:Ethernet HWaddr DC:D3:21:0A:04:51
inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1208 (1.1 KiB) TX bytes:1374 (1.3 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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 B) TX bytes:720 (720.0 B)
 
 
PID USER VSZ STAT COMMAND
1 root 1244 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]
26 root 1240 S {rcS} /bin/sh /etc/init.d/rcS
71 root 0 SWN [jffs2_gcd_mtd1]
72 root 0 SWN [jffs2_gcd_mtd2]
126 nobody 936 S /usr/bin/dnsmasq
132 root 812 S /sbin/utelnetd -l /bin/tmenu -p 23 -d -B
148 root 1244 S {S90settop} /bin/sh /etc/init.d/S90settop start
158 root 358m S /usr/bin/humaxtv
300 root 0 SW< [kjournald]
308 root 1260 S < {run-and-gun} /bin/sh /etc/mdev/run-and-gun
337 root 1260 S < {run-and-gun} /bin/sh /etc/mdev/run-and-gun
342 root 1260 S < {run-and-gun} /bin/sh /etc/mdev/run-and-gun
520 root 0 SW< [kjournald]
527 root 0 SW< [kjournald]
551 root 1248 S udhcpc -t 5 -T 10 -p /var/lib/humaxtv/udhcpc.eth0.pid -i eth0
577 root 1228 S < sleep 1
578 root 1228 S < sleep 1
591 root 1252 S < {modinit} /bin/sh /sbin/modinit
603 root 1236 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 dsldevice.lan 0.0.0.0 UG 0 0 0 eth0
 
=== Wed May 22 19:32:04 GMT 2013 - reset all ===========================
=== Wed May 22 19:32:05 GMT 2013 - rma ===========================
=== Wed May 22 19:32:05 GMT 2013 - ugprade bootmod ===========================
=== Wed May 22 19:32:05 GMT 2013 - setup directories ===========================
=== Wed May 22 19:32:05 GMT 2013 - create modenv ===========================
=== Wed May 22 19:32:05 GMT 2013 - create rcS ===========================
=== Wed May 22 19:32:05 GMT 2013 - migrate bootmod ===========================
=== Wed May 22 19:32:05 GMT 2013 - setup hostname ===========================
=== Wed May 22 19:32:05 GMT 2013 - 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 dsldevice.lan 0.0.0.0 UG 0 0 0 eth0
Interface: [eth0]
IP: [192.168.1.70]
=== Wed May 22 19:32:06 GMT 2013 - run init ===========================
killall: bootstrapd: no process killed
Loading config file /mod/etc/mongoose.conf
Anacron 2.3 started on 2013-05-22
Normal exit (0 jobs run)
rs: starting recmon...
=== Wed May 22 19:32:06 GMT 2013 - complete ===========================
 
You're right about the running once and not automatically. It's just recorded coronation street and recreated a new folder to put the series in.

me know if I can copy any more logs or try anything at this end. Thanks again.
Jamie
 
You're right about the running once and not automatically. It's just recorded coronation street and recreated a new folder to put the series in.

Yes, it does that. At some point after the recording has ended (maybe up to 30 mins *) flatten moves the program into the top level folder and deletes the series folder.
(* flatten isn't 'always on' - it should run periodically and then only if the box is not in standby. It's like a kettle, if you watch it it never happens :) )
 
It should run every 15 minutes but for some reason it isn't doing that for the OP.

Could you try the crontab diagnostic?
 
It should run every 15 minutes but for some reason it isn't doing that for the OP.

Ah, I had 30 in my head. However, a couple of the OP's posts suggest he is expecting flatten to either work immediately and/or prevent the creation of the subfolders entirely, so I thought it worth clarifying what he should be expecting.
 
Thanks MikeSH - I hadn't realised it swept up folders every few mins - and like you assumed, I thought it inhibited folder creation. Either way it looks to be just what we're hoping to get the Hummy to do. The Coronation St episode is still in it's folder from last nights 7.30 recording, so as per previous comments it looks to have just run once rather than be running at regular intervals.

The output from the crontab diagnostic run this morning just after waking from standby is below:
Code:
>>> Beginning diagnostic crontab[/FONT][/COLOR][/SIZE]
[COLOR=#000000][SIZE=3][FONT=Consolas]Running: crontab[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]560 /mod/sbin/crond[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]=================[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]0 2 * * * /mod/sbin/anacron -s -d[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]*/10 * * * * /mod/sbin/rs_process >> /mod/tmp/rs.log 2>&1[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]*/15 * * * * /mod/sbin/flatten >> /mod/tmp/flatten.log 2>&1[/FONT][/SIZE][/COLOR]
[COLOR=#000000][SIZE=3][FONT=Consolas]=================[/FONT][/SIZE][/COLOR]
 
[COLOR=#000000][SIZE=3][FONT=Consolas]>>> Ending diagnostic crontab
 
Out of curiosity I ran the flatten diagnostic again in case I could see something different in the output - but as you would probably expect it's moved the Coronation St recording out of the folder (and deleted the empty folder) - I can't see any other clues in the text, but copied below in case it helps:
Code:
>>> Beginning diagnostic flatten
Running: flatten
[/media/My Video/Coronation Street]
/media/My Video/Coronation Street/Coronation Street_20130522_1930
  Coronation Street
    Moving recording.
 
>>> Ending diagnostic flatten
 
Point of order: this is what we regard as the proper presentation of log outputs etc:
Code:
>>> Beginning diagnostic flatten
Running: flatten
[/media/My Video/Coronation Street]
 /media/My Video/Coronation Street/Coronation Street_20130522_1930
  Coronation Street
    Moving recording.

>>> Ending diagnostic flatten

This is achieved by adding "[code]" in front of the output and "[/code]" at the end, or use the code tool from the edit toolbar (not available on mobile devices). If the code insertion is large, the code window becomes scrollable (both vertically and horizontally).
 
Your Diagnostics >> crontab displays a different path (i.e. 560 /mod/sbin/crond) to mine, Note I am not running flatten

>>> Beginning diagnostic crontab
Running: crontab
754 crond
=================
0 2 * * * /mod/sbin/anacron -s -d
*/10 * * * * /mod/sbin/rs_process >> /mod/tmp/rs.log 2>&1
*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
=================

>>> Ending diagnostic crontab
 
Hmm i don't know anywhere near enough to understand what the different cron job numbers mean and what's good or bad.
I don't know if I've explained in this thread that is a refurb machine bought from humax Direct a few weeks ago.

I haven't noticed any sign of faults in normal operation, so assumed its the same as a brand new one from a shop shelf - but if its only my machine that has this flatten fault perhaps there's something awry hence it being a refurb ?)
 
Good point - I wonder if I've unwittingly installed something that conflicts with flatten. As far as I know I've only installed the latest custom firmware with webif, rs and flatten. I enabled the show development packages feature and there's now quite a few showing in the Packages menu:

anacron 2.3-1
busybox 1.20.2-1
bzip2 1.0.4
cron-daemon 1.18.3-1
epg 1.0.13
ffmpeg 0.10
file 5.0.4
flatten 0.0.5-2
hmt 1.1.14
id3v2 0.1.11-1
inotify-tools 3.14
jim 0.73
jim-binary 0.73
jim-cgi 0.7
jim-oo 0.71
jim-sqlite 0.73-1
lamemp3 3.98.4
lsof 4.82
mongoose 3.0-8
nicesplice 1.4
openssl-command 1.0.0.d
recmon 1.0.0-1
rs 1.0.1
rsvsynv 1.0.3
service-control 1.2
smartmontools 5.41
sqlite 3 3.7.6
ssmtp 2.64
stripts 1.2.1
tmenu 1.05
trm 1.1
webif 1.0.2
webif-channelicons 1.0.5
webif-charts 1.2

Does this help?
 
I suspect that would be because unlike thedon199, you have procps installed.
Yes, I do have procps installed, oh well that's put pay to that theory

Thedon1999 : Hmm i don't know anywhere near enough to understand what the different cron job numbers mean and what's good or bad

The line in your cronjob that is of interest is :- */15 * * * * /mod/sbin/flatten >> /mod/tmp/flatten.log 2>&1. This tells the Humax to automatically run the flatten programme every 15 Minutes and log the results in the flatten.log file, it looks correct to me so we are no further forward in finding your problem at present
 
Thanks Ezra - it's not a big problem, I'm enjoying playing with and getting to learn this fab machine, so I'm more than happy to tinker / pull logs or try things as soon as you guru's have some more suggestions to try.

Thanks again, all the help is really appreciated.
 
Thanks Ezra - it's not a big problem, I'm enjoying playing with and getting to learn this fab machine, so I'm more than happy to tinker / pull logs or try things as soon as you guru's have some more suggestions to try.

Thanks again, all the help is really appreciated.
I see you have put your log output into code tags now, except you need to get rid of all the size, color, and font tags!

I really don't think there's a lot you can do until af123 gets back about why the cron entry isn't there or isn't working. My suspicion hinges on the idea that there is a missing piece in the install that the rest of us happened to have already and therefore not notice was missing.
 
Thanks Ezra - it's not a big problem, I'm enjoying playing with and getting to learn this fab machine, so I'm more than happy to tinker / pull logs or try things as soon as you guru's have some more suggestions to try.
Are you able to telnet into the box?

If so, can you try the following and post the results:
Code:
crontab -l | hexdump -C
 
Back
Top