Author Topic: [SOLVED] Orbiter does not show media from external hard drive  (Read 7003 times)

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Hello,

I have an external network drive (on a Windows machine) that stores my media (video, image and music files)
LinuxMCE didn't automatically recognize the hard drive, so I applied the maual steps described in http://wiki.linuxmce.org/index.php/Howto:_Using_Network_Shares.

Following the manual step, the UpdateMedia service kicked in and synchronized the drive

Code: [Select]
avner@dcerouter:~$ ps aux | grep Update
avner    13563  0.0  0.0   3236   804 pts/6    S+   20:51   0:00 grep Update
root     13685  0.1  0.0   3012  1112 ?        Ss   Jun28   3:50 SCREEN -d -m -S BkgSS-UpdateMediaDaemon.sh /usr/pluto/bin/UpdateMediaDaemon.sh
root     13686  0.0  0.0   2816  1404 pts/8    Ss+  Jun28   0:00 /bin/bash /usr/pluto/bin/UpdateMediaDaemon.sh
root     13705  2.0  0.9  72240 24732 pts/8    SNl+ Jun28  54:35 /usr/pluto/bin/UpdateMedia -h localhost -P 3306 -u root -D pluto_main -U /mnt/upnp -d /home/public/data||/home/user_1/data -B -t

Now, I can see the netwrok drive and its contents:

Code: [Select]
dcerouter_1015401:~# ll /home/public/data/other/
total 0
lrwxrwxrwx 1 root public 15 2011-06-28 23:25 Windows Share-F [75] -> /mnt/device/75/

I connected to the database and verified that the contents (e.g. images) from the network drive are registered in the database

Code: [Select]
avner@dcerouter:~$ mysql -u root -D pluto_media

mysql> select Path, Filename from File where Path like '%/home/public/data/other/Windows Share-F [75]/untarHP_machineDriveF/Avner/freeMind/MyMedia/MyImages/2005%' order by PK_File desc limit 1;
+---------------------------------------------------------------------------------------------------------+--------------+
| Path                                                                                                    | Filename     |
+---------------------------------------------------------------------------------------------------------+--------------+
| /home/public/data/other/Windows Share-F [75]/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2005 | DSCN8410.jpg |
+---------------------------------------------------------------------------------------------------------+--------------+

However, the Orbiter (on the Hybrid machine) doesn't show the media. Clicking on the Video button (in snapshot imgA3) results in an empty (black) list (snapshot imgA2). Quick / full regenerate and reload of the Orbiter didn't help.
Any idea on how to make the orbiter show media files from the external drive?

Thanks,
Avner


« Last Edit: July 10, 2011, 05:04:13 am by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Orbiter does not show media from external hard drive
« Reply #1 on: July 01, 2011, 08:12:32 am »
Avner,

do you have video files on that hard drive? You only show an image file in your select statement.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #2 on: July 01, 2011, 03:32:34 pm »
In video menu choose "Sort" and change to "Title" and see if they appear.

If your data grid populates you can then change the default sort in web admin.
I never quit... I just ping out.

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #3 on: July 02, 2011, 06:51:46 pm »
do you have video files on that hard drive? You only show an image file in your select statement.
 
The problem relates to all media types, i.e. video, image, audio. I also have video files:
Code: [Select]
mysql> select Path, Filename from File where Path like '%/home/public/data/other/Windows Share-F [75]/untarHP_machineDriveF/Avner/freeMind/MyMedia/MyVideos/TapesFromTheParents%' orderby PK_File desc limit 1;
+------------------------------------------------------------------------------------------------------------------------+----------+
| Path                                                                                                                   | Filename |
+------------------------------------------------------------------------------------------------------------------------+----------+
| /home/public/data/other/Windows Share-F [75]/untarHP_machineDriveF/Avner/freeMind/MyMedia/MyVideos/TapesFromTheParents | Tape9    |
+------------------------------------------------------------------------------------------------------------------------+----------+
1 row in set (0.05 sec)


After rebooting, Orbiter showed the video files but after a while they disappeared again.
I found that the network drive was dismounted and fails to mount again:

Code: [Select]
dcerouter_1015401:~# less /var/log/pluto/StorageDevices.log
...
1 Sat Jul  2 00:46:02 PDT 2011 20798 CALLED TO MOUNT DEVICE 75
1 Sat Jul  2 00:46:02 PDT 2011 29768 CALLED TO MOUNT DEVICE 75
1 Sat Jul  2 00:46:03 PDT 2011 15540 CALLED TO MOUNT DEVICE 75
...

Code: [Select]
dcerouter_1015401:~# less /var/log/pluto/umount-wrapper.log
...
21407 CALLED TO 'mount -t cifs -s -o username=family,password=*****,dir_mode=0777,file_mode=0777,iocharset=utf8 //192.168.80.129/F /mnt/device/75'
21407 EXIT WITH STATUS 0
21497 CALLED TO 'mount -t cifs -s -o username=family,password=*****,dir_mode=0777,file_mode=0777,iocharset=utf8 //192.168.80.129/F /mnt/device/75'
21497 EXIT WITH STATUS 0
...

tty2 shows the following error repeatedly:
Code: [Select]
...
cifs_read_super: get root inode failed
cifs_read_super: get root inode failed
...



Trying to run the mount command manually from the command line fails:
Code: [Select]
dcerouter_1015401:~# mount -t cifs -s -o username=family,password=*****,dir_mode=0777,file_mode=0777,iocharset=utf8 //192.168.80.129/F /mnt/device/75
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

However, mounting the drive using fstab succeeds. Adding the following line in /etc/fstab
Code: [Select]
mount -t cifs -s -o username=family,password=*****,dir_mode=0777,file_mode=0777,iocharset=utf8 //192.168.80.129/F /mnt/device/75
and mounting the drive using
Code: [Select]
mount -a from the command line mounts the network drive successfully.

I tried to work around the problem by mounting through fstab. The drive mounts succesfully first, but after a while dismounts, and then fails to mount again.

Solving the problem of the network drive mount failure is the next step to solve the original problem.
Any ideas?
« Last Edit: July 02, 2011, 07:20:37 pm by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #4 on: July 02, 2011, 06:57:57 pm »
Can you replace the ethernet cable?

ps, you should probably edit out your password on a public board.
I never quit... I just ping out.

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #5 on: July 02, 2011, 07:30:01 pm »
Thanks l3mce, I edited out the password.

I don't think the problem is with the ethernet cable, because the problem is systematic.
- mounting through fstab always succeeds
- mounting using the following command fails:
Code: [Select]
mount -t cifs -s -o username=family,password=*****,dir_mode=0777,file_mode=0777,iocharset=utf8 //192.168.80.129/F /mnt/device/75
In fact, at the time when getting the mount failures, the drive is actually mounted successfully to a different mount point and I can see its content.

I googled the mount problem, and found some hints to possible kernel failure. dmesg shows the following error:
Code: [Select]
dcerouter_1015401:~# dmesg -c
...
[50638.131144]  CIFS VFS: cifs_read_super: get root inode failed
[50638.699850]  CIFS VFS: cifs_read_super: get root inode failed
...

I am using Ubuntu 8.10, kernel: 2.6.27-7-generic.
« Last Edit: July 02, 2011, 08:49:51 pm by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #6 on: July 02, 2011, 07:40:43 pm »
I would unplug it, delete it from the device tree, reload router, and plug it back in.

Something is gummed up.
I never quit... I just ping out.

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #7 on: July 04, 2011, 01:09:42 am »
I unplugged the network drive, deleted the device from the device tree, rebooted the machine, and plugged back the network drive.
After this the Orbiter behavior changed as follows:
Video files: the data grid shows the video files as expected (see img1.jpg).
Audio files: the data grid is empty (see img2.jpg). Only after I click on the "AB" button, it populates as expected (see img3.jpg)
... (continued in next post)
« Last Edit: July 04, 2011, 01:20:47 am by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #8 on: July 04, 2011, 01:16:37 am »
... (continued from previous post)
Image files: the data grid shows flickr and the local drive (see img4.jpg) but the files for the network drive don't show up.
When searching for a file from the external drive it shows up (see img5.jpg) and the actual image displays when selecting a search result, but I cannot get the data grid to show the image files (I tried clicking arbitrarily on the letter buttons, e.g. on the "AB" button as I did for the audio files but the data grid still doesn't show the images from the external drive.

Is there a way to reset and repopulate the data grid?
« Last Edit: July 04, 2011, 01:21:33 am by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #9 on: July 04, 2011, 04:08:19 am »
The only way I am aware of is in files & media > media files sync
click the dir on the left, then Delete ALL missing files from database... then Resynchronize.
I never quit... I just ping out.

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #10 on: July 08, 2011, 06:28:32 am »
Code: [Select]
...
cifs_read_super: get root inode failed
cifs_read_super: get root inode failed
...

The reason I was getting the messages above (and all the other mount failures) was due to the samba service.
These messages were swamping all terminals, and freezing the Orbiter (it wouldn't redraw and appear completely black).
I stopped the service from starting at reboot by doing:
Code: [Select]
update-rc.d -f samba remove This solved the mounting problem.

« Last Edit: July 08, 2011, 06:56:36 am by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #11 on: July 08, 2011, 06:59:54 am »
The pictures still don't show the external drive and only show the flickr directory and the local drive (WDC_WD800JB-00JJ) (see img4.jpg from previous post)

When I created the network shared drive, the external hard drive was symlinked from the directory /home/public/data/other as expected.

Just to be sure I created a symlink to the external drive, from the directory /home/public/data/pictures
Code: [Select]
sudo ln -s /mnt/device/74 /home/public/data/pictures/family-PC

avner@dcerouter:~$ ll /home/public/data/pictures/
total 0
lrwxrwxrwx 1 root public 14 2011-07-07 21:07 family-PC -> /mnt/device/74
lrwxrwxrwx 1 root public 12 2011-01-03 22:39 flickr -> /home/flickr
lrwxrwxrwx 1 root public 35 2011-07-07 19:51 WDC_WD800JB-00JJ (sda1) on dce [31] -> /mnt/device/31/public/data/pictures

I can see an example picture from the external drive from both symlinks:
Code: [Select]
avner@dcerouter:~$ ll /home/public/data/pictures/family-PC/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2006/2006_04_14/IMG_0069.JPG
-rwxrwxrwx 1 root root 1034604 2006-04-14 13:06 /home/public/data/pictures/family-PC/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2006/2006_04_14/IMG_0069.JPG

avner@dcerouter:~$ ll /home/public/data/other/WindowsShare-F\ \[74\]/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2006/2006_04_14/IMG_0069.JPG
-rwxrwxrwx 1 root root 1034604 2006-04-14 13:06 /home/public/data/other/WindowsShare-F [74]/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2006/2006_04_14/IMG_0069.JPG

The picture from the external drive is also in the database:

Code: [Select]
mysql> select * from File where Path = '/home/public/data/other/WindowsShare-F [74]/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2006/2006_04_14' and Filename = 'IMG_0069.JPG' order byPK_File desc limit 1;
+---------+--------------+-----------------+---------------+--------------+---------------------+-------------------------------------------------------------------------------------------------------------------+--------------+---------+-------------+------------------+-----------+---------------------+-----------+---------------------+----------------+-------+--------+--------+----------------------------------+--------+--------+-----------+----------+------------+---------------------+--------------+
| PK_File | EK_MediaType | FK_MediaSubType | FK_FileFormat | FK_FileGroup | DateAdded           | Path                  | Filename     | Missing | IsDirectory | EK_Users_Private | EK_Device | ModificationDate    | AttrCount | AttrDate            | DateLastViewed | IsNew | Ignore | INode  | MD5                            | Source | psc_id | psc_batch | psc_user | psc_frozen | psc_mod             | psc_restrict |
+---------+--------------+-----------------+---------------+--------------+---------------------+-------------------------------------------------------------------------------------------------------------------+--------------+---------+-------------+------------------+-----------+---------------------+-----------+---------------------+----------------+-------+--------+--------+----------------------------------+--------+--------+-----------+----------+------------+---------------------+--------------+
|  191495 |            7 |            NULL |          NULL |         NULL | 2011-07-07 00:52:34 | /home/public/data/other/WindowsShare-F [74]/untarHP_machineDriveF/Avner/freeMind/MyMedia/myImages/2006/2006_04_14 | IMG_0069.JPG |       0 |           0 |             NULL |        74 | 2011-06-20 23:57:42 |         0 | 0000-00-00 00:00:00 | NULL           |     1 |      0 | 611745 | 4cfa26b644f17f62f184f3e279659cfb | F      |   NULL |      NULL |     NULL |          0 | 2011-07-07 20:12:13 |         NULL |
+---------+--------------+-----------------+---------------+--------------+---------------------+-------------------------------------------------------------------------------------------------------------------+--------------+---------+-------------+------------------+-----------+---------------------+-----------+---------------------+----------------+-------+--------+--------+----------------------------------+--------+--------+-----------+----------+------------+---------------------+--------------+
1 row in set (0.00 sec)

Still, Orbiter -> Picture is stuck on the flickr directory and the local drive (WDC_WD800JB-00JJ), and won't show the external drive (img4.jpg from previous post)
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

Avner

  • Veteran
  • ***
  • Posts: 76
    • View Profile
Re: Orbiter does not show media from external hard drive
« Reply #12 on: July 10, 2011, 05:02:52 am »
I used the solution in: http://forum.linuxmce.org/index.php?topic=11387.0 and specifically created a symlink to the directory: "pictures" in the local drive, as follows:
Code: [Select]
ln -s   /mnt/device/74/untarHP_machineDriveF/ /mnt/device/31/public/data/pictures/untarHP_machineDriveFThis solved the problem. Now, Orbiter shows the video, audio and pictures.

« Last Edit: July 10, 2011, 05:05:15 am by Avner »
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850