Author Topic: Windows shared directories  (Read 1229 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 :(

rodercot

  • Guest
Re: Windows shared directories
« Reply #1 on: August 28, 2008, 01:22:05 pm »
FireMail,

 I do not think your scan is finding any files in your shares. Put your system inside LMCE. I fought that tooth and nail, wanting to leave my servers on the external network but actually now that it is said and done I am glad I put them inside.

 here is some code for one resync on one movie on one drive but you will notice the amount of sub-dirs it found upon starting. My shares are not setup as pluto-structure and are all public hence the user_0 attrib at the bottom. if they were private they would be user_1, user_2 etc...


 
Code: [Select]
sudo -u root /usr/pluto/bin/UpdateMedia -d \"/home/public/data/other/Windows Share-disk1 [41]/Movies1\"10 08/28/08 7:14:15.497 Activating Pluto Media Identifier... <0xb6aa46c0>
10 08/28/08 7:14:15.514 Pluto Media Identifier activated. Extensions 27 <0xb6aa46c0>
10 08/28/08 7:14:15.515 MediaState::LoadDbInfo ready to run big query <0xb6aa46c0>
10 08/28/08 7:14:15.603 MediaState::LoadDbInfo got 125 rows <0xb6aa46c0>
10 08/28/08 7:14:15.604 UpdateMedia::ReadDirectory /home/public/data/other/Windows Share-disk1 [41]/Movies1 <0xb6aa46c0>
10 08/28/08 7:14:16.256 UpdateMedia::ScanSubfolders dir /home/public/data/other/Windows Share-disk1 [41]/Movies1: subdirs found: 114 <0xb6aa46c0>
10 08/28/08 7:14:16.257 UpdateMedia::ReadDirectory /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 <0xb6aa46c0>
10 08/28/08 7:14:16.260 UpdateMedia::ScanSubfolders dir /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3: subdirs found: 2 <0xb6aa46c0>
10 08/28/08 7:14:16.260 '/home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3' is a ripped dvd <0xb6aa46c0>
10 08/28/08 7:14:16.260 Need to update file for /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3: current attr date 2008-07-26 11:01:21, has attr 1 <0xb6aa46c0>
10 08/28/08 7:14:16.260 Sync mode for dir /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3: modeBoth <0xb6aa46c0>
05 08/28/08 7:14:16.260 # PlutoMediaFile STARTED: dir /home/public/data/other/Windows Share-disk1 [41]/Movies1 file MI3 <0xb6aa46c0>
10 08/28/08 7:14:16.260 # ID3FileHandler::LoadAttributes: loading 0 attributes in the attribute file /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3/MI3.id3 <0xb6aa46c0>
10 08/28/08 7:14:16.267 Serialize read bookmarks: 0 <0xb6aa46c0>
10 08/28/08 7:14:16.267 # LoadPlutoAttributes: pluto attributes loaded (from id3 file - general object tag) 10 <0xb6aa46c0>
=== GEOB (General encapsulated object): ()[]: , 806 bytes
=== TPE1 (Lead performer(s)/Soloist(s)): Tom Cruise
=== TIT2 (Title/songname/content description): Mission Impossible III (Two-Disc Collector's Edition)
=== APIC (Attached picture): ()[, 0]: , 58282 bytes
10 08/28/08 7:14:16.271 # LoadPlutoAttributes: id3 attributes loaded (from id3 file - common tags) 3 <0xb6aa46c0>
10 08/28/08 7:14:16.271 MergePictures: merging 0 pictures from our tag with 1 pictures from PIC tags <0xb6aa46c0>
10 08/28/08 7:14:16.272 LoadPlutoAttributes: loading picture with size 58282 from PIC tag - md5sum 57a3c9ed663c6e4442a57add1745df6b <0xb6aa46c0>
10 08/28/08 7:14:16.272 Processing path /home/public/data/other/Windows Share-disk1 [41]/Movies1, file MI3. Found 10 attributes, 1 long attributes in file <0xb6aa46c0>
10 08/28/08 7:14:16.272 SetFileAttribute /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 23 <0xb6aa46c0>
10 08/28/08 7:14:16.272 Attr in db : type 2 value Tom Cruise <0xb6aa46c0>
10 08/28/08 7:14:16.272 Attr in db : type 2 value Philip Seymour Hoffman <0xb6aa46c0>
10 08/28/08 7:14:16.272 Attr in db : type 2 value Ving Rhames <0xb6aa46c0>
10 08/28/08 7:14:16.272 Attr in db : type 2 value Billy Crudup <0xb6aa46c0>
10 08/28/08 7:14:16.273 Attr in db : type 2 value Michelle Monaghan <0xb6aa46c0>
10 08/28/08 7:14:16.273 Attr in db : type 13 value Mission Impossible III (Two-Disc Collector's Edition) <0xb6aa46c0>
10 08/28/08 7:14:16.273 Attr in db : type 31 value Dolby <0xb6aa46c0>
10 08/28/08 7:14:16.273 Attr in db : type 31 value Widescreen <0xb6aa46c0>
10 08/28/08 7:14:16.273 # LoadPlutoAttributes: pluto attributes merged with those from database 10 <0xb6aa46c0>
10 08/28/08 7:14:16.273 Long attribute in db : type 37 value Agent Ethan Hunt who faces the mission of his life in  Mission: Impossible III." Director J. J. Abrams ("Lost"  "Alias") brings his unique blend of action and drama to the billion-dollar franchise.System Requirements:Running Time: 125 MinutesFormat: DVD MOVIE Genre:Â ACTION/ADVENTURE Rating:Â PG-13 UPC:Â 097361184647 Manufacturer No:Â 118464... <0xb6aa46c0>
10 08/28/08 7:14:16.273 # LoadPlutoAttributes: pluto long attributes merged with those from database 1 <0xb6aa46c0>
10 08/28/08 7:14:16.273 LoadCoverarts: loaded 1 unique pictures from file <0xb6aa46c0>
10 08/28/08 7:14:16.274 LoadCoverarts: not loading picture with size 58282 from database, because we already have it in file - md5sum 57a3c9ed663c6e4442a57add1745df6b <0xb6aa46c0>
10 08/28/08 7:14:16.274 LoadBookmarkPictures: clear bookmarks from file.We'll use those from db: 0 <0xb6aa46c0>
10 08/28/08 7:14:16.274 # SaveMiscInfo: FK_FileFormat 2, FK_MediaSubType 2 <0xb6aa46c0>
10 08/28/08 7:14:16.275 File 23 has now media type 3 <0xb6aa46c0>
10 08/28/08 7:14:16.275 # GetPicAttribute: file 23 <0xb6aa46c0>
10 08/28/08 7:14:16.275 Found 1 pics for file <0xb6aa46c0>
10 08/28/08 7:14:16.275 # GetPicAttribute: got picture 1 associated to file 23 <0xb6aa46c0>
10 08/28/08 7:14:16.275 SetPicAttribute /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 PK_Picture 1 <0xb6aa46c0>
10 08/28/08 7:14:16.275 SetPicAttribute /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 PK_Picture 1 <0xb6aa46c0>
10 08/28/08 7:14:16.275 # GetPicAttribute: file 23 <0xb6aa46c0>
10 08/28/08 7:14:16.275 Found 1 pics for file <0xb6aa46c0>
10 08/28/08 7:14:16.275 # GetPicAttribute: got picture 1 associated to file 23 <0xb6aa46c0>
10 08/28/08 7:14:16.275 SetPicAttribute /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 PK_Picture 1 <0xb6aa46c0>
10 08/28/08 7:14:16.276 # ID3FileHandler::SaveAttributes: saving 10 attributes in the attribute file /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3/MI3.id3 <0xb6aa46c0>
05 08/28/08 7:14:16.276 # ID3FileHandler::SaveAttributes: saving 1 pictures into APIC tags to /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3/MI3.id3 <0xb6aa46c0>
10 08/28/08 7:14:16.276 # ID3FileHandler::SaveAttributes: saving into APIC picture size 58282 <0xb6aa46c0>
Writing: PK_Attr = -1000 ()[]:
Don't know yet how to save tag with PK_Attr = -1000 and value ()[]:
Writing: PK_Attr = 2 Tom Cruise
Writing: PK_Attr = 13 Mission Impossible III (Two-Disc Collector's Edition)
Writing: PK_Attr = 31 Widescreen
Don't know yet how to save tag with PK_Attr = 31 and value Widescreen
10 08/28/08 7:14:16.282 Serialize write bookmarks: 0 <0xb6aa46c0>
10 08/28/08 7:14:16.292 # SyncDbAttributes: ready to sync db with attributes found in attribute file <0xb6aa46c0>
10 08/28/08 7:14:16.292 # SyncDbAttributes: attributes is db 8, total 10 <0xb6aa46c0>
10 08/28/08 7:14:16.292 # SyncDbAttributes: long attributes is db 1, total 1 <0xb6aa46c0>
10 08/28/08 7:14:16.293 SaveCoverarts: got 1 coverarts in db. Merging with 1 from file <0xb6aa46c0>
10 08/28/08 7:14:16.294 SaveCoverarts: not adding picture with size 58282, md5sum 57a3c9ed663c6e4442a57add1745df6b since is already in db <0xb6aa46c0>
10 08/28/08 7:14:16.294 # SaveMiscInfo: FK_FileFormat 2, FK_MediaSubType 2 <0xb6aa46c0>
10 08/28/08 7:14:16.294 File /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3, PK_File 23 - midmd5 is d41d8cd98f00b204e9800998ecf8427e <0xb6aa46c0>
Mapped file /mnt/device/50 : 34 -> 50
Mapped file /mnt/device/45 : 33 -> 45
Mapped file /mnt/device/42 : 32 -> 42
Mapped file /mnt/device/44 : 31 -> 44
Mapped file /mnt/device/46 : 30 -> 46
Mapped file /mnt/device/43 : 29 -> 43
Mapped file /mnt/device/49 : 27 -> 49
Mapped file /mnt/device/41 : 26 -> 41
Mapped file /mnt/device/48 : 25 -> 48
Mapped file /mnt/device/47 : 28 -> 47
10 08/28/08 7:14:16.296 File /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 on pluto device 41 <0xb6aa46c0>
10 08/28/08 7:14:16.296 File /home/public/data/other/Windows Share-disk1 [41]/Movies1/MI3 assigned to user 0 <0xb6aa46c0>


 rgds,

 Dave

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Re: Windows shared directories
« Reply #2 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 ;)

rodercot

  • Guest
Re: Windows shared directories
« Reply #3 on: August 28, 2008, 03:50:31 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 ;)

 Make sure that LMCE is finding the MAC Address of that share PC as well.

 Dave

FireMail

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Re: Windows shared directories
« Reply #4 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 #5 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 #6 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 #7 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 #8 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 #9 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: 5495
  • DOES work for LinuxMCE.
    • View Profile
Re: Windows shared directories
« Reply #10 on: August 30, 2008, 05:57:21 pm »
you may want to try a different machine for your core, bro.

-Thom