Author Topic: Windows shared directories  (Read 4896 times)

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Windows shared directories
« on: August 28, 2008, 09:22:25 am »
hi there,

on my workstation i have 3 network shares without password:
- music
- images
- movies

you can imagine in what folder is what type of files ;)
after turning off the firewall and adding my workstation manually (because of external ip adress, not internal network), mce found my shares, i added them correctly.
when i have a closer look on them (Advanced->Configuration->Devices->[Windows Share-Movies]) i see that "Online" is ticked on. (This is important as i read on some threads in this forum).
MCE ran over night and now i see in the "images" share many many .TNJ files (thumbnails of my jpegs). That means that mce can access my files. But when i now click in my windows orbiter on "Pictures", "Movies" or "Audio" i dont see anything!
Even calling "Media Files Sync" on /home/public/data or /mnt/upnp adds my media to lmce.

Calling media sync on public/data results in the following:
Quote
sudo -u root /usr/pluto/bin/UpdateMedia -d \"/home/public/data\"

10   08/28/08 8:33:44.165      Activating Pluto Media Identifier... <0xb6afc6c0>
10   08/28/08 8:33:44.170      Pluto Media Identifier activated. Extensions 27 <0xb6afc6c0>
10   08/28/08 8:33:44.174      MediaState::LoadDbInfo ready to run big query <0xb6afc6c0>
10   08/28/08 8:33:46.135      MediaState::LoadDbInfo got 128 rows <0xb6afc6c0>
10   08/28/08 8:33:46.136      UpdateMedia::ReadDirectory /home/public/data <0xb6afc6c0>
10   08/28/08 8:33:46.137      UpdateMedia::ScanSubfolders dir /home/public/data: subdirs found: 8 <0xb6afc6c0>
10   08/28/08 8:33:46.137      UpdateMedia::ReadDirectory /home/public/data/avwizard-sounds <0xb6afc6c0>
10   08/28/08 8:33:46.138      UpdateMedia::ScanFiles dir /home/public/data/avwizard-sounds: files found: 2 <0xb6afc6c0>
10   08/28/08 8:33:46.139      UpdateMedia::ReadDirectory /home/public/data/pictures <0xb6afc6c0>
10   08/28/08 8:33:46.139      UpdateMedia::ScanSubfolders dir /home/public/data/pictures: subdirs found: 1 <0xb6afc6c0>
10   08/28/08 8:33:46.139      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr <0xb6afc6c0>
10   08/28/08 8:33:46.139      UpdateMedia::ScanSubfolders dir /home/public/data/pictures/flickr: subdirs found: 1 <0xb6afc6c0>
10   08/28/08 8:33:46.139      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008 <0xb6afc6c0>
10   08/28/08 8:33:46.140      UpdateMedia::ScanSubfolders dir /home/public/data/pictures/flickr/2008: subdirs found: 1 <0xb6afc6c0>
10   08/28/08 8:33:46.140      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08 <0xb6afc6c0>
10   08/28/08 8:33:46.140      UpdateMedia::ScanSubfolders dir /home/public/data/pictures/flickr/2008/08: subdirs found: 11 <0xb6afc6c0>
10   08/28/08 8:33:46.140      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/21 <0xb6afc6c0>
10   08/28/08 8:33:46.148      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/21: files found: 3 <0xb6afc6c0>
10   08/28/08 8:33:46.149      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/27 <0xb6afc6c0>
10   08/28/08 8:33:46.152      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/27: files found: 1 <0xb6afc6c0>
10   08/28/08 8:33:46.152      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/18 <0xb6afc6c0>
10   08/28/08 8:33:46.156      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/22 <0xb6afc6c0>
10   08/28/08 8:33:46.167      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/22: files found: 8 <0xb6afc6c0>
10   08/28/08 8:33:46.170      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/26 <0xb6afc6c0>
10   08/28/08 8:33:46.179      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/26: files found: 7 <0xb6afc6c0>
10   08/28/08 8:33:46.181      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/23 <0xb6afc6c0>
10   08/28/08 8:33:46.191      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/23: files found: 5 <0xb6afc6c0>
10   08/28/08 8:33:46.193      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/20 <0xb6afc6c0>
10   08/28/08 8:33:46.201      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/20: files found: 5 <0xb6afc6c0>
10   08/28/08 8:33:46.202      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/25 <0xb6afc6c0>
10   08/28/08 8:33:46.217      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/25: files found: 13 <0xb6afc6c0>
10   08/28/08 8:33:46.221      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/19 <0xb6afc6c0>
10   08/28/08 8:33:46.236      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/19: files found: 21 <0xb6afc6c0>
10   08/28/08 8:33:46.253      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/24 <0xb6afc6c0>
10   08/28/08 8:33:46.275      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/24: files found: 33 <0xb6afc6c0>
10   08/28/08 8:33:46.282      UpdateMedia::ReadDirectory /home/public/data/pictures/flickr/2008/08/17 <0xb6afc6c0>
10   08/28/08 8:33:46.285      UpdateMedia::ScanFiles dir /home/public/data/pictures/flickr/2008/08/17: files found: 4 <0xb6afc6c0>
10   08/28/08 8:33:46.287      UpdateMedia::ReadDirectory /home/public/data/other <0xb6afc6c0>
10   08/28/08 8:34:22.438      UpdateMedia::ScanSubfolders dir /home/public/data/other: subdirs found: 2 <0xb6afc6c0>
10   08/28/08 8:34:22.438      UpdateMedia::ReadDirectory /home/public/data/other/Windows Share-Bilder [57] <0xb6afc6c0>
10   08/28/08 8:35:05.045      UpdateMedia::ReadDirectory /home/public/data/other/Windows Share-Movies [58] <0xb6afc6c0>
10   08/28/08 8:35:30.630      UpdateMedia::ReadDirectory /home/public/data/videos <0xb6afc6c0>
10   08/28/08 8:35:30.630      UpdateMedia::ScanSubfolders dir /home/public/data/videos: subdirs found: 1 <0xb6afc6c0>
10   08/28/08 8:35:30.630      UpdateMedia::ReadDirectory /home/public/data/videos/tv_shows_1 <0xb6afc6c0>
10   08/28/08 8:35:30.631      UpdateMedia::ReadDirectory /home/public/data/audio <0xb6afc6c0>
10   08/28/08 8:35:30.631      UpdateMedia::ReadDirectory /home/public/data/documents <0xb6afc6c0>
10   08/28/08 8:35:30.632      UpdateMedia::ReadDirectory /home/public/data/tts <0xb6afc6c0>
10   08/28/08 8:35:30.632      Sync'ing db with directory... <0xb6afc6c0>

I'm really confused now, for me it looks like everything would be ok (UpdateMedia::ReadDirectory /home/public/data/other/Windows Share-Movies [58])

Hope you can help me :(

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Re: Windows shared directories
« Reply #1 on: August 28, 2008, 03:45:09 pm »
ok i will try it - then the only problem is to get my vista 64bit to use 2 different ips ... damn it under linux its much more easier ;)

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Re: Windows shared directories
« Reply #2 on: August 28, 2008, 04:37:44 pm »
i will post my results on this, but first of all: my box is not booting anymore. this will be a long evening ;)

jimmejames

  • Guru
  • ****
  • Posts: 183
    • View Profile
Re: Windows shared directories
« Reply #3 on: August 28, 2008, 05:49:18 pm »
You may also try adding a password to the folders.  I fought with my DNS-323 to access shared media as you did, but I don't have any pictures, so I can't say that I experienced exactly the same symptoms as you.  At any rate, the media would not show when I didn't have a username and password set (the "password required" radio button was not checked but the "online" radio button was checked.). 

By simply adding a password and checking the "password required" radio button, my media started populating the Audio and Video menus in LMCE.

Just my $0.02

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Windows shared directories
« Reply #4 on: August 28, 2008, 09:24:28 pm »
Put your media internal or you won't get much help! And you do not need two IPs for your Vista machine, that is missing the point.

If you didn't say yes to using the LMCE folder structure, which you probably didn't as you added the shares manually, then you will not see any media in the Filename sort mode, and unless you have tagged all your media in the database you won't see anything in the other Sort modes either. Normal behaviour.

This is why you don't add manually and use media internally as designed..

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Re: Windows shared directories
« Reply #5 on: August 28, 2008, 11:31:25 pm »
alright i reinstalled lmce, used internal ips, said "yes" to use the lmce directory structure.

Works very well for me now with some audio files, but importing all my 10gb of audio does not work. i tried to have a look at the directory mounted (via ssh), and found out that 1gb of memory for lmce is not enough. because all the 10gb audio files are in one single directory and doing a simple "ls" fails with the message "cannot allocate memory".

are there any workarounds know? dont want to insert more memory ;)

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Windows shared directories
« Reply #6 on: August 29, 2008, 12:08:43 am »
Start by googling the error, inserting more memory won't fix your problem, it appears to be a known issue. It is unlikely to be anything to do with how much media you have in a directory - 20GB is not a lot, so this would have come up long ago otherwise.

The only thing I can suggest is to avoid cifs altogether and reconfig the share parameters with a filesystem type of smbfs instead of the cifs that you have in there already.

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Re: Windows shared directories
« Reply #7 on: August 29, 2008, 04:41:45 pm »
i talked with tschak yesterday for a very long time and we found out that its not the memory, its the kernel that wants me to piss off.
because i dont want to compile a new kernel (i did this yesterday in the night for 10 gentoo boxes, i'm sick of it now) i can't use lmce :( but thanks for your help anyway

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Windows shared directories
« Reply #8 on: August 30, 2008, 05:57:21 pm »
you may want to try a different machine for your core, bro.

-Thom