LinuxMCE Forums

General => Installation issues => Topic started by: Stingly on September 26, 2007, 10:04:30 pm

Title: [SOLVED] Existing NAS Media?
Post by: Stingly on September 26, 2007, 10:04:30 pm
Two problems down (ish), heres another one that I need some help with please!

I have a Maxtor NAS attached to the internal network (192.168.80.*) which LMCE picked up fine - good start! It then proceeds to pick up the 2 shares on the drive, 1 which I ignored as its full of config data and nothing else, and the other which I added as it has subdirectories containing a LOT of ripped audio (all MP3s) and video files (mainly divx AVI's). So far so good.

My problem arises when I come to actually view some of the content on the NAS. LMCE hasn't populated any of the media lists, so when I click on video I can only see the sample ripped DVD that I've been playing with during install - and theres nothing at all in the audio one! How do I get LMCE to fill these lists? I thought that it would scan the NAS and add the files automatically?
Title: Re: Existing NAS Media?
Post by: Zaerc on September 26, 2007, 10:58:33 pm
If you chose to "use LMCE's directory structure" you'll need to put the files under /public/data/video etc.

The database should be updated every few minutes I think, you can force this in the web-admin under: Files & Media > Media Files Sync.
Title: Re: Existing NAS Media?
Post by: Stingly on September 26, 2007, 11:03:13 pm
Hmmmm... I chose the other option as it said that it was best for drives that had existing media and was used by Windows too (my main machine that uses the drive runs Vista).

When I go to Files & Media > Media Files Sync I see a blank screen with a tree file system down the left panel. Where do I navigate to to resync the NAS?

God I hate feeling so dum - hope I get to grips with LMCE soon so I can stop posing such noob questions!  ;)
Title: Re: Existing NAS Media?
Post by: Zaerc on September 26, 2007, 11:12:44 pm
Don't worry about it, we've all been there.  Just take the time to look around, get used to the way things work and you'll be answering those questions soon enough. ;)

If you chose one of the other options you shouldn't have to move anything around.  to update the DB click "[data]" on the left and the "resynchronize" on the right.  By going through the tree on the left you should also be able to find your files and see their status, just be patient as the page updates can take a little while.
Title: Re: Existing NAS Media?
Post by: Stingly on September 26, 2007, 11:28:49 pm
OK, clicked on data -> resync - is that going to sync the NAS too? It looks like it just does the HDD in the Core? I got a nice new window that said:

Code: [Select]
sudo -u root /usr/pluto/bin/UpdateMedia -d "/home/public/data"

01 09/26/07 22:01:04.155 Cannot find self in maplock! (0x80b07b4) (>2) alarm: AlarmManager.cpp:102  <0xb6b2cb90>
ready to dump locks using logger: 0x80b0858
05 09/26/07 22:01:04.155 Dumping 1 locks <0xb6b2cb90>
05 09/26/07 22:01:04.155 finished check for exceptions <0xb6b2cb90>
05 09/26/07 22:01:04.155 OL: (0x80b07b4) (>1) alarm AlarmManager.cpp l:87 time: 10:01:04p (0 s) thread: 3065173712 Rel: Y Got: Y <0xb6b2cb90>

One thing I have noticed is a little red flashing square in the top-left of the LMCE list screens every now and again - what does that mean? Also, I keep getting an alert message popup telling me that "existing device already enabled MSS 0209FF" (which is my NAS name), followed by "done with new file server added", or something like that. Why does it keep doing that? Lastly, in my shared folders on the NAS there are loads of subfolders that contain the actual music/video files - thats not going to stump LMCE is it? I assume its scans subfolders for media too?
Title: Re: Existing NAS Media?
Post by: colinjones on September 27, 2007, 12:31:27 am
A lot of people have reported the issue of continual re-detecting devices with that message in the corner (including me!).

Zaerc - do you know if anybody ever got to the bottom of this one? Its really annoying, and it can't be helping matters...
Title: Re: Existing NAS Media?
Post by: Zaerc on September 27, 2007, 02:08:28 am
A lot of people have reported the issue of continual re-detecting devices with that message in the corner (including me!).

Zaerc - do you know if anybody ever got to the bottom of this one? Its really annoying, and it can't be helping matters...

To be perfectly honest, I don't know, but I have seen it too and for me it goes away after a while.  When it happened I had a feeling that the system is still busy setting things up, or maybe indexing the content. 

Could anybody that is experiencing that problem please report back on it after a few days?  Maybe then we can rule it out as a symptom of the system getting settled.  I think most people (like me) forget about it as soon as it passes, that could also be why it has never been solved.
Title: Re: Existing NAS Media?
Post by: Hagen on September 27, 2007, 11:11:30 am
I still have that, and it's been a couple of weeks since my last install.
I haven't really been bothered, as I haven't had time to do much with the LMCE at all.
Paul did say the last update should have fixed it, but not for me apparently.

Title: Re: Existing NAS Media?
Post by: bulek on September 27, 2007, 11:47:33 am
I also have same problem. Files play fine, but I cannot snyhronize it. Funny is that sometimes doing the same from console gives different results but more or less ends in that maplock error....

HTH,

regards,

Bulek.
Title: Re: Existing NAS Media?
Post by: Stingly on September 27, 2007, 11:56:43 am
Well I can't even find my files, or the NAS, despite LMCE telling me that the shares have been installed etc. They're certainly not appearing in the Media > Audio or Media > Video lists through the UI, and when I go through the Web Admin bit to Files and Media, I can't see any new files anywhere!

If I remove the device, redetect it, and tell it to use LMCE's directory structure, will it remove any files from the NAS? Also, if I do that, will I be able to see the files I put into the newly created /public/data/video folders from a Windows PC?
Title: Re: Existing NAS Media?
Post by: Hagen on September 27, 2007, 12:19:40 pm
You can create the folder structure yourself and copy the files to it and then tell LMCE to "find" it, if the folders are allready there LMCE uses the existing folders and content pops up much faster as it's there for the initial mapping of the drive.

LMCE does not remove any files from your NAS/storage (unless you ask it to delete a file of course )
Title: Re: Existing NAS Media?
Post by: Stingly on September 27, 2007, 12:25:07 pm
...then tell LMCE to "find" it...

How do you do that?

I'm thinking that if it solves the problem of my NAS media being undetectable, it might just be worthwhile using LMCEs directory structure and be done with it... I suppose I can just hope and pray that Windows will still be able to see it!
Title: Re: Existing NAS Media?
Post by: Hagen on September 27, 2007, 12:49:09 pm
No problem for windows there.
But you have to tell it where to look (just like you did the last time you added to windows).

I would go into the LMCE web admin and delete the NAS, that way it will find it again as a "new" device and all the old potentialy troublesome settings will be errased.
Title: Re: Existing NAS Media?
Post by: Stingly on September 27, 2007, 01:05:19 pm
Thanks! I'll give this a go at lunch time and report back.

One other thing, when the device is initially recognised, it tells me its found a MSS-0209FF (the NAS product name) and installs it. Then it tells me about the shares it finds and installs them. A little while later, it tells me its found a Maxtor NAS on a different IP address - I've been telling MCE to install it, but it finds no shares on it anyway so its defunct. Why does LMCE pick 1 NAS up as 2 different devices?
Title: Re: Existing NAS Media?
Post by: Hagen on September 27, 2007, 01:08:44 pm
internal IP?
I don't know, but I have had some items report as two different entities (often because of Wlan and LAN at the same time).
I also have an external USB drive on a server that reports twice...
Just tell it to never use it. but why... no idea
Title: Re: Existing NAS Media?
Post by: Stingly on September 27, 2007, 01:38:59 pm
Yeah, the "two" devices are both on different internal IPs - I think that the MSS-0209FF device is discovered on 192.168.80.252 and the Maxtor NAS is on 192.168.80.253 (or vice versa). So I just tell LMCE to ignore the second one then? OK.
Title: Re: Existing NAS Media?
Post by: Hagen on September 27, 2007, 01:41:40 pm
that's what I did, it may not be the "ultimate sollution", but it works for me.
You can always unlock it later from the webadmin if you did an Ooooops
Title: Re: Existing NAS Media?
Post by: Stingly on September 27, 2007, 04:13:03 pm
Right then - I unlocked everything and deleted the 2 Maxtor devices, then restarted the core. I installed the MSS-0209FF device, ignored the config fileshare, installed the public fileshare, and told LMCE to use its own directory structure. I also ignored the Maxtor NAS device.

Now when I go into the Media > File Sync screens, theres another option called "Windows Share: Public" or something like that in each of the data subtrees (i.e. video, audio etc), with 0Mb in each. In the video subtree, I chose LMCE Video Files from the dropdown menu, and clicked add to database - I did the same in the audio subtree (except chose LMCE Audio Files).

It hasn't generated any folders on the drive, so I went into the Public share (from Vista) and created /data/audio and copied a folder full of MP3s into it. So now my NAS directory tree looks like:

\Public\data\audio\Artic Monkeys\ [mp3 files]

I cant change the first folder name, but I don't know if the uppercase 'P' is stumping LMCE? Something is though, cos its not discovering any MP3 files... I tried to rip a CD to the NAS, was allowed to choose the NAS drive but ripping it failed. It couldn't create the specified subdirectory. Do you think that might be to do with user permissions or something like that? Or have a done it all wrong?

I have no idea what I'm doing here, I just feel like I'm flailing round in the dark... I also discovered a username and password box in the MSS-0209FF device area on the webadmin site, so have put in the admin u&p for the hard drive, which I haven't had to do before for any reason, but I thought it couldn't hurt.

Are there any logs or anything that I could look at and post on here so someone can isolate whats going wrong?  ??? ??? ???
Title: Re: Existing NAS Media?
Post by: Hagen on September 27, 2007, 04:48:33 pm
Mine looks like this
Z:\Media\public\data\audio\Aqua\MP3s
(I chose to use the share "Media" instead of the root)
Probably the capital P...
But since it didn't create public (as it should, Public is obviously wrong) then there could be some read write access problems as well?
Do a search on the NAS for "public" or "user1" to see if they are created in some other weird place, shouldn't happen, but...

Title: Re: Existing NAS Media?
Post by: Zaerc on September 27, 2007, 05:01:25 pm
All (or at least most) of the logs can be found under /var/log where pluto has it's own subdirectory.  I don't know which one you'd have to look in specificly though.  To keep track of them all and see the new entries you could try:
Code: [Select]
tail -f /var/log/pluto/*
That can be a bit overwhelming, but could give you an idea what logfile you are looking for.
Title: Re: Existing NAS Media?
Post by: Stingly on September 27, 2007, 07:51:13 pm
Do a search on the NAS for "public" or "user1" to see if they are created in some other weird place, shouldn't happen, but...

Ok, noob questions: how do I do a search? Where are the NAS folder in Linux?
Title: Re: Existing NAS Media?
Post by: Zaerc on September 27, 2007, 09:23:22 pm
I still have that, and it's been a couple of weeks since my last install.
I haven't really been bothered, as I haven't had time to do much with the LMCE at all.
Paul did say the last update should have fixed it, but not for me apparently.

Hmm so much for that hypothesis then, has the machine been on the whole time?

Do a search on the NAS for "public" or "user1" to see if they are created in some other weird place, shouldn't happen, but...

Ok, noob questions: how do I do a search? Where are the NAS folder in Linux?

I think he meant: look on the NAS itself.  I suspect you're having permission problems too, there should be some instructions on the forum somewhere to create a proper user account on the NAS that has the right permissions I think.
Title: Re: Existing NAS Media?
Post by: Stingly on September 28, 2007, 01:01:01 am
Did a search, but found nothing untoward... This is a bit strange though - in the webadmin media file sync bit I can see this:
(http://www.bdrs.co.uk/lmce/screen1.jpg)

Do I need to do anything here? The videos, pictures etc lists all have the same 2 items in them? Whats really odd is that when I ssh into the /home/public/data/audio directory, I can see that it has made 2 alias (I presume) files, but when you go to the address they refer to, theres no directory. In fact, theres nothing below /mnt/device:
(http://www.bdrs.co.uk/lmce/screen2.jpg)

Sorry for the images, but I'm sure that my terminology is wrong!

I can only think of file permissions, but the Public share has everything opened up for all users, so LMCE should surely have no problem creating whatever directories it feels like?
Title: Re: Existing NAS Media?
Post by: Stingly on September 28, 2007, 01:06:58 am
...Just found this in /var/log/syslog:

Code: [Select]
linuxmce@dcerouter:/var/log$ tail syslog
Sep 27 23:49:20 dcerouter automount[8735]: >> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Sep 27 23:49:20 dcerouter automount[8735]: mount(generic): failed to mount //192.168.80.253/Brian (type cifs) on /mnt/device/38
Sep 27 23:49:20 dcerouter automount[8735]: failed to mount /mnt/device/38
Sep 27 23:49:21 dcerouter kernel: [16834.580839]  CIFS VFS: Send error in SessSetup = -13
Sep 27 23:49:21 dcerouter kernel: [16834.710877]  CIFS VFS: cifs_mount failed w/return code = -13
Sep 27 23:49:21 dcerouter automount[8846]: >> mount error 13 = Permission denied
Sep 27 23:49:21 dcerouter automount[8846]: >> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Sep 27 23:49:21 dcerouter automount[8846]: mount(generic): failed to mount //192.168.80.253/Public (type cifs) on /mnt/device/37
Sep 27 23:49:21 dcerouter automount[8846]: failed to mount /mnt/device/37
Sep 27 23:50:01 dcerouter /USR/SBIN/CRON[9391]: (root) CMD (/usr/pluto/bin/StorageDevices_Radar.sh)

So its failing to mount - yes? Any ideas?
Title: Re: Existing NAS Media?
Post by: Stingly on September 28, 2007, 02:07:32 am
Ooo - I think I might have sorted it! Followed the instructions here:

http://forum.linuxmce.org/index.php?topic=1694.msg7919#msg7919

and manually added the NAS share - I can only assume its working cos when I resynced the media I now get a VERY big list of the files its detecting. I'm gonna leave it overnight and report in the morning!  ;D
Title: Re: Existing NAS Media?
Post by: Stingly on September 28, 2007, 10:55:27 am
Well that seems to have kinda worked! It populated my audio media list in LMCE at any rate, I had a quick check this morning before leaving for work - so hardly an in-depth analysis this - thing is, there are no images for any of the album art, even though when I ripped my CDs (through windows) I got the artwork for each one and the JPG files sit in the same directory?

The other thing I noticed is that despite the files being there, I can't hear anything when I play them. I haven't tried anything yet to fix this, but I wondered if it was a common problem?
Title: Re: Existing NAS Media?
Post by: Hagen on September 28, 2007, 11:16:35 am
The coverart is embedded in "Ac-3" tags, and currently LMCE does not read those.
I agree that should be added.
Title: Re: Existing NAS Media?
Post by: Stingly on October 01, 2007, 04:15:21 pm
The other thing I noticed is that despite the files being there, I can't hear anything when I play them. I haven't tried anything yet to fix this, but I wondered if it was a common problem?

Duh - I'm such an idiot! Had the headphones plugged into the wrong socket! Everything seems to be working perfectly now! Woohoo!  ::)
Title: Re: Existing NAS Media?
Post by: Zaerc on October 01, 2007, 04:33:38 pm
Duh - I'm such an idiot! Had the headphones plugged into the wrong socket! Everything seems to be working perfectly now! Woohoo!  ::)

LOL, glad to hear it's fixed.
Title: Re: Existing NAS Media?
Post by: totallymaxed on October 01, 2007, 06:34:09 pm
The coverart is embedded in "Ac-3" tags, and currently LMCE does not read those.
I agree that should be added.

Well thats not quite correct... it does not read the embedded cover art thats true but;

The data collected about each ripped file is stored in 'id3' tags. Currently this data is stored in user defined tags that 3rd party applications would not know about ie they are tags defined by lmce. In the case of mp3 files ripped by another app then if that app has embedded the cover art in the mp3 tag data then at present lmce will not look for that.

I understand that standard id3 tags will be used in future and that embedded cover art will be extracted to.
Title: Re: [SOLVED] Existing NAS Media?
Post by: Hagen on October 01, 2007, 07:12:26 pm
roger that lol "ac3", sorry, I meant id3