Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - chrisbirkinshaw

Pages: 1 ... 3 4 [5] 6
Developers / Possible bug when relaunching App_Server
« on: February 03, 2008, 07:06:29 pm »

In another thread in the feature requests forum ( we discussed suspend to ram/disk but ran into problems as the App_Server can often quit on resume. As I test I just tried issuing a "killall App_Server", then waited to see what happened. Issuing a "ps aux | grep App_Server" reveals that it did not restart so I tried manually:

screen -d -m -S App_Server-40 /usr/pluto/bin/ 40 dcerouter App_Server

This is the result from the spawn log:

3       02/03/08 17:43:53       40 (spawning-device)    Device died... count=1/50 dev=40
Sun Feb  3 17:43:53 GMT 2008 died
========== NEW LOG SECTION ==========
1       02/03/08 17:44:07       40 (spawning-device)    Starting... 2
1       02/03/08 17:44:07       40 (spawning-device)    Found /usr/pluto/bin/App_Server
1       02/03/08 17:45:57       /usr/pluto/bin/ 40 (spawning-device)     32616 Dev: 40; Already Running list: 40,41,43,42,44,45,48,46,47,
1       02/03/08 17:45:58       /usr/pluto/bin/ 40 (spawning-device)     32616 Device 40 was marked as 'running'. Not starting
1       02/03/08 17:45:58       /usr/pluto/bin/ 40 (spawning-device)     32616 Dev: 40; Exiting because not starting

So it does not start as the system thinks it is still running, however it is definitely not. How can I change this status, and what watchdog is supposed to be taking care of tracking this accurately?



Users / NVidia drivers removed!
« on: January 30, 2008, 01:42:05 pm »

My main diskless MD is now dead because LMCE has decided to remove the drivers from /lib/modules/xxx. I have no idea why it has decided to do this, as nothing has changed in the admin GUI.

Does anyone know why this happens?

This has actually happened to me three times now on this MD only, and the only easy fix has been to rebuild. When I tried reinstalling the driver package the required files were not put into /lib/modules/xxx, and the same happened when I downloaded the driver from nvidia.



Users / Correct way to delete Tv shows?
« on: January 21, 2008, 09:29:23 pm »

What is the correct method?

If I delete in mythtv they remain in the Videos list and if I delete from there they remain in the mythtv db and cannot be deleted as it cannot find the files.



Installation issues / PocketPC 2003 garbage on screen
« on: January 17, 2008, 10:34:13 am »

When I load the orbiter on my iPaq running PocketPC 2003 it loads up but is completely unusable as their are hundreds of horizontal lines accross the screen and parts of the graphics look to be ghosted and repeated.

Has anyone else seen this? Anyone got a success story? Any tips?



Users / How to safely restart APP_Server on an MD?
« on: December 27, 2007, 02:50:14 pm »


I am trying to safely restart the App_Server on a diskless MD. I need to do this after I resume from suspend-to-ram as it seems to crash and prevent Xine/Mythtv etc from working.

I have tried doing "killall screen" followed by /usr/pluto/bin/, which seems to work, however I get some weirdness with two Launch managers opening up, and when changing from orbiter to mythtv the orbiter vanishes revealing the launch manager for a few seconds.

Is there a tidyier way of solving this issue?




I previously had a LOAD of "8753_20071221203559.mpg" etc entries at the top of the videos screen. I noticed that in the filesystem there were actually a lot more mythtv recordings than there were in mythweb. So first I sorted this out:

Code: [Select]

mysqldump mythconverg recorded > /tmp/recorded

cd /home/public/data/videos/tv_shows_1
mkdir orphans

for file in *.mpg ; do
echo "Looking for $file"

results=`grep $file /tmp/recorded | awk -F\/ '{print $7}' | awk -F \' '{print $1}' | wc -l`
if [ $results -eq 0 ] ; then
echo "Error! Not found!!"
mv $file orphans/
mv $file.* orphans/

echo " "


I later moved this orphans folder to another place on my file system and then at the end deleted it. Now I had to remove them from the pluto database:

# mysql pluto_media
> delete from File where Path like '%tv_show%';
> quit

As you can see I decided to delete all my tv recordings. Don't panic, as attributes are held in the id3 files on the filesystem.

I resynchronised the folder and now only had a couple of pages of videos messing up the top of my list. So I created a script to repeat the mythtv "save recording to pluto database" function. As a test I deleted all the id3 files for the mythtv recordings.


Code: [Select]

cd $dir
for file in *.mpg ; do
  echo "Adding $file to LMCE db"
  chanid=`mysql mythconverg -se "select chanid from recorded where basename = $f" | tail -1`
  starttime=`mysql mythconverg -se "select starttime from recorded where basename = $f" | tail -1`
  mysql mythconverg -se "select title,subtitle from recorded where basename = $f" | tail -1
  echo "Running /usr/pluto/bin/ "$chanid" "$starttime" "$dir" "$file""
  /usr/pluto/bin/ "$chanid" "$starttime" "$dir" "$file"

Hey presto - the script caused pluto to regenerate the id3 files. It did NOT add the recordings back to the db though which I found odd. I had to do a resynchronise from the web admin site. No errors in the DCERouter log.

HOWEVER, I have 7 files which LMCE will not regenerate id3 files for. These 7 files are in the mythtv db, and appear in mythweb. When the script above asks LMCE to add them there are no errors in the log. eg:

07      12/22/07 14:18:09.041           Received Message from 0 (unknown / ) to -1001 (unknown / ), type 2 id 69 Event:MythTV Show Recorded, re
try none, parameters: <0x70ce6b90>
07      12/22/07 14:18:09.041             Parameter 29(MythTV ChannelID): 8753 <0x70ce6b90>
07      12/22/07 14:18:09.042             Parameter 35(Name): /home/public/data/videos/tv_shows_1/8753_20071221210000.mpg <0x70ce6b90>
07      12/22/07 14:18:09.042             Parameter 57(DateTime): 2007-12-21 21:00:00 <0x70ce6b90>

But no id3 file.

I've learnt a lot, but have some questions:

1. Why no id3 file for a few videos?
2. Why are recordings not added to the db?
3. I have "Update media daemon" unchecked, does this affect number 2?
4. Event with Update media daemon unchecked overnight LMCE has added media in folders I never chose to synchronise. have I misunderstood this function?



Users / One file gets all the others attributes - bug?
« on: December 21, 2007, 01:56:40 am »

Is this a bug? I have 3 files which have all the other files' attributes attached to them. i.e. one movie has hundreds of titles, collected from all my CDs, movies etc. One of my CDs has performers (hundreds), and many directors!

This seems pretty crazy, though I'm not sure how it could have happened.



Users / Can you suspend/wake-up your MDs?
« on: December 15, 2007, 06:53:22 pm »
Has anyone got suspend-to-RAM/wake-up working for MDs?

If so please post your specs and any changes you had to make.



Developers / Lighting commands incorrectly routed from floorplan
« on: December 14, 2007, 03:31:04 pm »
I have a added a generic device to act as a parent to my lights and allow an external program to connect and read these commands by a TCP socket.

When choosing "Lights" from the admin website and pressing on or off the commands are correctly routed to the parent device:

Code: [Select]
08      12/14/07 14:00:11.386           Received Message from 0 (unknown / ) to 179 (Misterhouse Remote / Entrance), type 1 id 760 Command:Send Command To Child, retry none, parameters: <0x5e65fb90>
08      12/14/07 14:00:11.386             Parameter 10(ID): B3 <0x5e65fb90>
08      12/14/07 14:00:11.386             Parameter 154(PK_Command): 193 <0x5e65fb90>

However when called from the floorplan this does not happen:

Code: [Select]
08      12/14/07 14:02:16.292           Received Message from 69 (Generic Proxy Orbiter / ) to Red Cabinet Lamp (dimmable)(189), type 1 id  193 Command:Off, retry none, parameters: <0x63e6ab90>
08      12/14/07 14:02:16.292             Parameter 97(PK_Pipe):  <0x63e6ab90>

Does anyone know why?

Thanks in advance,


Developers / Having problems getting correct kernel sources
« on: December 10, 2007, 02:55:56 pm »

I am trying to recompile the kernel to remove SMP support as the timer bug causes my XP2500 CPU to be maxed at 100% all the time. I apt-get'ed linux-sources-2.6.20 but seem to have got sources for rather than the 2.6.20-15-generic which is currently running on the machine.

Where can I find the sources for the 2.6.20-15-generic kernel used in Linux MCE? Also, why does LMCE not use the standard Ubuntu kernel?



Developers / Taking mythtv preview thumbs as cover art
« on: December 04, 2007, 02:23:04 pm »
I am going to write a script to scan tv recordings folders for .png files with the same name then assign them as cover art if none exists already. What db tables do I need to be looking at?



Users / Disk is umounted and remounted a few times a minute
« on: December 03, 2007, 09:00:49 pm »
My second internal hard drive in the core is unmounted and remounted a few times a minute. Anyone else seen this?

From /var/log/messages:

Code: [Select]
Dec  3 19:35:09 dcerouter kernel: [351708.768290] EXT3 FS on hdb1, internal journal
Dec  3 19:35:31 dcerouter kernel: [351731.241902] EXT3 FS on hdb1, internal journal
Dec  3 19:35:34 dcerouter kernel: [351734.583380] EXT3 FS on hdb1, internal journal
Dec  3 19:35:46 dcerouter kernel: [351746.642541] EXT3 FS on hdb1, internal journal
Dec  3 19:35:59 dcerouter kernel: [351759.244301] EXT3 FS on hdb1, internal journal
Dec  3 19:36:12 dcerouter kernel: [351772.383059] EXT3 FS on hdb1, internal journal
Dec  3 19:36:25 dcerouter kernel: [351785.494768] EXT3 FS on hdb1, internal journal
Dec  3 19:36:26 dcerouter kernel: [351786.062511] EXT3 FS on hdb1, internal journal
Dec  3 19:36:38 dcerouter kernel: [351797.863389] EXT3 FS on hdb1, internal journal
Dec  3 19:36:51 dcerouter kernel: [351811.584782] EXT3 FS on hdb1, internal journal
Dec  3 19:36:56 dcerouter kernel: [351815.806408] EXT3 FS on hdb1, internal journal
Dec  3 19:37:09 dcerouter kernel: [351828.796895] EXT3 FS on hdb1, internal journal

Users / Security breach?
« on: November 29, 2007, 07:44:34 pm »
I have just seen the following when typing "screen -r"

        9876.RemoteAssistance_SSH_NoMon_pf      (Detached)
        9828.RemoteAssistance_Web_pf    (Detached)
        9771.RemoteAssistance_SSH_pf    (Detached)

I have never seen these before and certainly haven't enabled remote assistance. Has my system been compromised?



Users / Lots of devices never start
« on: November 29, 2007, 06:33:50 pm »

I have a number of devices which never start on my system. At first it was the disk drive on my core, then a load of devices on my diskless MD which I then had to rebuild. See:

Now I have lost the screen saver, mythtv player and xine player on my core. I can start these manually from the command line and have no problems, e.g:

/usr/pluto/bin/Photo_Screen_Saver -d 28

Works fine. But I cannot see any fail logs or Spawn logs. The app server has no mention of them.

Is anyone else seeing this? It seems very odd that only I am experiencing it.

I really hope the answer isn't going to be that I have to flatten and reinstall the system.



Pages: 1 ... 3 4 [5] 6