Author Topic: [solved] 1004: Video list empty, search shows the videos !?  (Read 9950 times)

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Hi,

testing the 1004 and now I would like to play some videos. Tried searching for the problem, but did not find anything.

But strangely enough the videos are not shown when i select Video. The list is empty.
They are on a second disk in the system.

If i then in the video list (empty) select "search" and press "i", then all videos with "i" are shown !? and I can then play them.


I had 804 running before that and there it worked. I thought that maybe was owner rights and set them all to "my user" and public. But that did not change anything.

Also in the web interface they are all shown.


The disc link Looks ok :
root@dcerouter:/home/public/data/videos# ll
total 8
drwxrwsr-x  2 root public 4096 2012-07-30 11:59 ./
drwxrwsr-x 11 root public 4096 2012-07-30 12:11 ../
lrwxrwxrwx  1 root public   33 2012-07-30 11:59 184G ST3500320AS (sda8) on dce [31] -> /mnt/device/31/public/data/videos/


any ideas?

Regards Viking
« Last Edit: August 07, 2012, 04:40:21 pm by Viking »

Armor Gnome

  • Guru
  • ****
  • Posts: 309
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #1 on: July 30, 2012, 12:39:30 pm »
I had a similar issue and resolved mine with changing the setting for View "watched only", "unwatched" to the "all" setting using the onscreen orbiter.
I made a wiki!  Click here to check out my system.

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #2 on: July 30, 2012, 01:44:10 pm »
I had a similar issue and resolved mine with changing the setting for View "watched only", "unwatched" to the "all" setting using the onscreen orbiter.

Thanks for the feedback :-) But there is no "all" in the orbiter!? Only "watched" and "unwatched" - and it does not matter what I select. All the other settings like genre and so on are also "All".

dextaslab

  • Veteran
  • ***
  • Posts: 77
    • View Profile
    • modlog.net
Re: 1004: Video list empty, search shows the videos !?
« Reply #3 on: July 30, 2012, 02:34:46 pm »
I had the same issue when using softraid and it kept marking it as offline when clearly it was fine (I think the UUID was detected wrong). I used to have to go into the webpage mark it as online, do a quick reload, and resync the directory. I had the issue when one of the MD's was turned off then back on again (daily).

Although I have manual mount points.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #4 on: July 30, 2012, 06:04:18 pm »
This was fixed in a more recent snapshot, and it was caused literally by the media director trying to find every single hard disk in the house, even ones that weren't locally connected.

If this is still happening in the most current snapshot, please file a bug, and we'll fix it. :)

-Thom

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #5 on: July 30, 2012, 06:46:09 pm »
Hi Thom,

my issue or the softraid issue of dextaslab?

I am using LMCE-1004-20120623013626110 which is the current recomended here

I have started an apt-get update + apt-get upgrade - lets see what happens (it is a test system, so if it breaks it is not a big problem)

Regards
Viking

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #6 on: July 30, 2012, 08:02:16 pm »
The update did fix the problem :-)

Thanks a lot Thom :-)

jamo

  • Guru
  • ****
  • Posts: 463
    • View Profile
    • LMCE user Page
Re: 1004: Video list empty, search shows the videos !?
« Reply #7 on: July 31, 2012, 09:41:21 am »
Am having similar issue with empty video list, snapshot 20120716081426238.  But I will try the upgrade script tonight and see if it sorts it out as well as filling in the snapshot details.

Running upgrade script now...

PS, just want to say again that the latest installers are so sweet. Installing was an absolute breeze.
« Last Edit: July 31, 2012, 12:12:34 pm by jamo »

jamo

  • Guru
  • ****
  • Posts: 463
    • View Profile
    • LMCE user Page
Re: 1004: Video list empty, search shows the videos !?
« Reply #8 on: July 31, 2012, 10:43:04 pm »
Same story for me- my second (media) drive has the "online" checkbox in its device data section unchecked. Once I check it, the media is available again. How can I get this setting to be persistent. I've done a global upgrade but that doesn't seem to have resolved it. Any ideas? Also not sure if shutting down an MD is what causes it to become unchecked.... will test that now.

Yup, that's it. I shut down one of the media directors and, when it starts again, it seems to take the drive (on the core) offline for some reason?

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #9 on: August 01, 2012, 04:20:28 pm »
And you did do an :

apt-get update
apt-get upgrade

first on the core and then on the MD ?
Not sure if necessary, but shutdown and rebooted everyting after that. Only the MythTV crashing problem was then there. Did not yet have time to try the fix for that.

jamo

  • Guru
  • ****
  • Posts: 463
    • View Profile
    • LMCE user Page
Re: 1004: Video list empty, search shows the videos !?
« Reply #10 on: August 01, 2012, 04:26:35 pm »
And you did do an :

apt-get update
apt-get upgrade

first on the core and then on the MD ?
Not sure if necessary, but shutdown and rebooted everyting after that. Only the MythTV crashing problem was then there. Did not yet have time to try the fix for that.

Not exactly, I used L3mce's global_upgrades script which is a pretty neat alternative and I think it does practically the same thing. However, I did not shut down the core after that I think so perhaps I'll do that. Shut it down, un plug it, count to 10 and stuff. Kind of a windows approach but worth a shot ;-)

Will report back.

jamo

  • Guru
  • ****
  • Posts: 463
    • View Profile
    • LMCE user Page
Re: 1004: Video list empty, search shows the videos !?
« Reply #11 on: August 02, 2012, 08:20:40 am »
Definitely not resolved. To confirm behaviour- I can get to a movie by doing a "search" and typing any letter on the screen and then I can select it and play it fine but none displayed in the default grid/list when I pop up movies from the media menu.

It seems to be, as stated, the drive being marked as offline everytime a media director starts up. In other words, after manually marking the drive as "online" in the webadmin device details, the movies all appear. Then, shutting down any of the MDs doesn't affect it but as soon as one of them starts up, it disappears again.

I'll search for the ticket because Thom mentioned earlier this had been resolved. Perhaps that'll give me some clues.

Edit: Couldn't find the ticket. Next step, I'll watch the logs when starting an MD and see if I can pick up the event that is causing the drive to go offline.
« Last Edit: August 02, 2012, 08:28:29 am by jamo »

pigdog

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1105
    • View Profile
Re: 1004: Video list empty, search shows the videos !?
« Reply #12 on: August 02, 2012, 04:50:29 pm »
Hi,

Not sure if this is related...

http://forum.linuxmce.org/index.php/topic,11615.0.html

I could search for movies and find them but under videos all was blank.

Hope this helps.

jamo

  • Guru
  • ****
  • Posts: 463
    • View Profile
    • LMCE user Page
Re: 1004: Video list empty, search shows the videos !?
« Reply #13 on: August 02, 2012, 09:24:18 pm »
Hi,

Not sure if this is related...

http://forum.linuxmce.org/index.php/topic,11615.0.html

I could search for movies and find them but under videos all was blank.

Hope this helps.

No, thanks for the idea but I'm pretty sure it's not that. I've fiddled with all the sort by settings and the movies don't appear at all but you can make them appear by marking the drive online in the webadmin. Something is setting the drive to offline occasionally.

jamo

  • Guru
  • ****
  • Posts: 463
    • View Profile
    • LMCE user Page
Re: 1004: Video list empty, search shows the videos !?
« Reply #14 on: August 05, 2012, 09:02:29 pm »
OK, I'm getting somewhere on my side. I discovered StorageDevices_StatusRadar.sh which runs on all MDs and the core and, among other things, sets drives on or offline.

It doesn't log by default so I set it to log and discovered the following.

On the core, the log reads:
Code: [Select]
Sun Aug  5 18:54:54 SAST 2012 ----------------- DEVICE 37 1
Sun Aug  5 18:55:00 SAST 2012 ----------------- DEVICE 37 1 (unchanged)
Sun Aug  5 18:55:05 SAST 2012 ----------------- DEVICE 37 1 (unchanged)
Sun Aug  5 18:55:11 SAST 2012 ----------------- DEVICE 37 1 (unchanged)

Weird.... so the core sets the drive online when it starts up the script and thinks it is still online the whole time. Which is not surprising because the code doesn't actually check the drive status each time via the database... it just checks what it was set to last time. Which is fine if last time it was set, it was set from this script.... but what if it was set somewhere else... like the same script on one of the MDs....

So I got one of my moons logging, which revealed:
Code: [Select]
un Aug  5 20:27:27 SAST 2012 Drive 37 (debb5bd0-682a-4ec4-8bd2-75a66b2678ae) is not advertised by it's parent smb server (192.168.80.1)
Sun Aug  5 20:27:29 SAST 2012 ----------------- DEVICE 37 0
Sun Aug  5 20:27:35 SAST 2012 Drive 37 (debb5bd0-682a-4ec4-8bd2-75a66b2678ae) is not advertised by it's parent smb server (192.168.80.1)
Sun Aug  5 20:27:35 SAST 2012 ----------------- DEVICE 37 0 (unchanged)
Sun Aug  5 20:27:40 SAST 2012 Drive 37 (debb5bd0-682a-4ec4-8bd2-75a66b2678ae) is not advertised by it's parent smb server (192.168.80.1)
Sun Aug  5 20:27:40 SAST 2012 ----------------- DEVICE 37 0 (unchanged)
.
.

Aha.... so when the MD starts up, it sets the drive OFFLINE because it can't connect to a samba share.

So on the moon I try
Code: [Select]
root@moon22:/var/log/pluto# smbclient -A /usr/pluto/var/sambaCredentials.secret --list=//192.168.80.1 --grepable
session setup failed: NT_STATUS_LOGON_FAILURE

So I guess it is a SMB problem?