LinuxMCE Forums

General => Installation issues => Topic started by: pigdog on February 14, 2014, 04:27:16 PM

Title: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - Resolved
Post by: pigdog on February 14, 2014, 04:27:16 PM
Hi,

Connected my NAS to the Core/Hybrid and it was discovered.  (A little slower than usual.)

I added Volume_1 and Volume_2 as windows shares.

I waited an hour and a half but no videos were presented under Media>Video.

I checked /home/public/data/videos/ and saw only "Windows Share-Volume_1  [31]".

When I tried to "ls" the files I received the message  "Too many levels of symbolic links."

I then did a reboot.

After about 10 minutes I did an "ls" @ /home/public/data/videos/ and after about a minute was returned with "Windows Share-Volume_1  [31]" and "Windows Share-Volume_2  [32]".

I did a ls on "Windows Share-Volume_1  [31]" and after about 2-3 minutes I received the  "Too many levels of symbolic links." message.

I did the same on Volume_2 and received the same message.

Nothing was listed under Media>Video.

I'll poke around later.


Cheers.

Title: Re: FYI - D-Link DNS-323 NAS
Post by: pigdog on February 25, 2014, 12:04:11 AM
Hi,

So my NAS is still being discovered and created as a Windows Share.

On Feb.23 second Edition when I try to list the content of the directory 'Windows Share-Volume_1 [34]. I receive "No such File or directory".

It doesn't take 5 minutes anymore to provide a response.

I tried reboot the NAS but my videos are still not being populated under Menu>Media>Video

Selecting any of the sorting options does nothing.  Stay on "Title".

Cheers.
Title: Re: FYI - D-Link DNS-323 NAS
Post by: pigdog on February 25, 2014, 01:55:53 AM
Hi,

Dang!  I did an apt update/upgrade and now I'm back to the slow "ls" time and "Too many levels of symbolic links" on the Windows Share.
Title: Re: FYI - D-Link DNS-323 NAS
Post by: pigdog on February 25, 2014, 06:08:34 PM
Hi,

My NAS is not detected at all on Feb. 24 28755 load.

Rebooting of system/NAS/ethernet in/out.
Title: Re: FYI - D-Link DNS-323 NAS Not Detected on Feb.24 28755 load.
Post by: phenigma on February 26, 2014, 02:14:49 AM
There is no dhcp or internal networking at all on 28755.  Fix in the next snap.

J.
Title: Re: FYI - D-Link DNS-323 NAS Not Detected on Mar.1/14 28786 load.
Post by: pigdog on March 01, 2014, 04:23:26 PM
Hi,

On March 1/14 release No detection.

Tried regen, reload and reboot - no go.

Secondary internal HDD detection but no external (switching hub) detection.

Cheers.
Title: Re: FYI - D-Link DNS-323 NAS Not Detected on Mar.1/14 28786 load.
Post by: phenigma on March 01, 2014, 10:17:28 PM
Still been some additional networking issues.  I believe they are solved but still have to test later today when the new snapshot hits.

J.
Title: Re: FYI - D-Link DNS-323 NAS Not Detected on NEW Mar.11 28804 load.
Post by: pigdog on March 16, 2014, 09:02:57 PM
NAS was recognized and I created Windows share.

Doing a "ls" on the Windows Share Volume gave me "Too many levels of symbolic links".

Cheers.

Title: Re: DNS-323 NAS Symbolic Links on Mar.17 28817 load - still no luck.
Post by: pigdog on March 19, 2014, 12:34:44 AM
Hi,

I tried to unlink and nothing happened.

I tried rm -i/ and the symbolic links were removed but were then recreated on reboot.

Is it something to do with the file size?  I have quite a few videos in the Windows Share Volumes.

Cheers.
Title: Re: DNS-323 NAS Symbolic Links on Apr.1 28890 load - still no luck.
Post by: pigdog on April 02, 2014, 02:06:12 PM
Just reporting same issue of symbolic links on Apr.1 28890 load.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 02, 2014, 07:47:17 PM
Hi,

I've been dealing with this and I haven't hears whether anyone else is in the same position.

Without my NAS videos, music, pictures, documents, (backups) etc. there's no use even trying to get an MD up because there's nothing for it (the NAS) to do in my environment.

(so sad) Cheers.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: huh on April 03, 2014, 01:35:05 AM
I tried adding a nas last night, 1204.  Found the nas and win share, put in user/pass and put everything as public.  Overnight let it sit and next am didn't have any media.  I can't reproduce your sym links.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 03, 2014, 01:21:41 PM
Hi,

The NAS get detected you have your Windows_Share(s) and no media.

In my case when I try to cd or ls the [Windows-Share XX] files from a terminal window I get the symbolic link message.


Thanks for looking.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: Marie.O on April 03, 2014, 01:34:42 PM
A side note: All of my audio library is on a NAS and it works without a hitch. It didn't get autodetected, as it is on the outside network, but everything is working fine.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 05, 2014, 05:28:11 PM
Hi,

I tried a little experiment just in case I had some kinduva "content limit" issue.

My NAS has 2 HDDs so I removed one drive, reloaded 12.04 software from scratch and rediscovered the NAS.

The HDD was picked up as a Windows share, added, however no media was populated into LMCE from the LMCE directory tree.

The first drive had 442 foflders of content.

The same steps were done with the second HDD with 26 folders of content.

No changes in the results.

I'll have to think of something else.

I've already checked ownership, privilages, tried deleting sym links, tried deleting in SQL, ...

...any other ideas?
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: phenigma on April 05, 2014, 10:20:13 PM
Cannot say I'm going to be much help here, but can you run 'ps ax | grep autofs' and pastebin the results?  If there are no results then autofs isn't mounted.  If you do have a result then I'm out of ideas.

J.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 06, 2014, 02:56:22 PM
Hi,

Installed the April 5 svr 28895 and am getting "failed to load PLUTO VDR" message.

Results of ps ax | grep autofs ...

8762 tty1       S+     0:00  grep  --color=auto  autofs

Cheers

Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 07, 2014, 01:58:48 AM
Hi,

I deleted the symlink from /home/public/data/videos/Windows Share-Volume_X [XX] -> /mnt/device/XX/public/data/videos

Then from /mnt/device I tried to cd into XX but got the 'too many symbolic links' message.

I couldn't rm -r or -R from /mnt/device because of 'too many - you guessed it! - symbolic links.'

Sym links get recreated on boot.

I noticed the permissions were 555 so I chmod to 777 but no luck.  They get written back to 555 on boot.

I've gone through smb.conf, dhcp stuff, other silly things but I can't see anything.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 07, 2014, 05:02:14 AM
Hi,

So I used the following command to count the number of symlinks ...

find $directory -type l -exec echo symlinks \; | sort | uniq -c

as root and cd .. back to main dir.

10.04 had 86242 symlinks

12.04 complained during find: ' ./mnt/device/XX' : Too many levels of symbolic links ... and reported only 53044 symlinks.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 11, 2014, 06:49:57 PM
Hi,

I have been spending a lot of time on this issue.  MAXSYMLINKS on 10.04 and 12.04 appears to be set @ 20.

Nothing I do seems to correct the problem.

Not being to access the content on my NAS with 12.04 is a game stopper.

I have been following the symbolic link error but could it be something else?

My NAS is being queried/accessed (there seems to be communication to the hardware controller but the HDD's don't act like they normally would when being interrogated by UpdateMedia).

Right now I'm "what the heck has changed between the 10.04 and 12.04 OS's"?

Cheers

Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: phenigma on April 13, 2014, 04:12:15 PM
I have not seen this issue at all so I'm really at a loss as to what to suggest.  I don't know of anything that has changed in this regard and it all *just works (tm)* here.  :(  Sorry that I cannot seem to be of much use.  Delete and recreate the device in your device tree?  You've probably done that already.  Does your NAS need a username/password to access?  That will prevent mounts.  I've not encountered the too many symlinks error, that seems fishy to me.

J.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 13, 2014, 08:48:35 PM
Hi phenigma,

I've downloaded many snaps, reloaded many from scratch (because I tried so many things I lost continuity) with the same results.

I run LMCE on a dedicated network without username/password access.

On 12.04 I've deleted the symlinks from Windows Shares [34 & 35] and when I go to /mnt/device/XX and try an cd or ls I get symbolic link error.

The NAS HDD's are using the LMCE directory tree, nothing is different on it from 10.04.

I can run the NAS fine under 10.04 and have even reloaded 10.04 from scratch (more than once after playing with it).

One thing is that with the  ls -l cmd file permissions on 10.04 for /mnt/device are drwxrwxrwx (777) with ownership root:root

When i go down the tree to /mnt/device/XX permissions are the same but ownership changes to 501:501 (DNS-323 ownership format)

On 12.04 the /mnt/device permissions are 555 (why?).  I chmod 777 XX but can't change them -R option because of symlink error.

On a reboot the deleted Windows Share links gets recreated and the permissions for /mnt/device/XX go back to 555.

On 10.04 & 12.04 the Windows Shares are lrwxrwxrwx (777) permission and ownership root:public.

However on 10.04 using the ls -l command on /home/public/data/videos the Windows Share is cyan with the symlink to /mnt/device/XX/public/data/videos with green background.

On 12.04 the Windows Share-Volume-X [XX] is red and symlink -> mnt/device/XX/public/data/videos as well.

Red is bad.  Why is it red?  It was autodetected and created but the drives aren't being handled the same.

So. do I look into detection scripts for 12.04 permissions/etc,  or do I look into NAS ownership?  (I don't know if I can do ownership changes on the DNS.)

There are other DNS 323 users out there but I haven't heard from any.

I've tried smb.conf follow symlinks=yes but no joy.

I could try to build NAS4Free or FreeNAS and see if that'll work.  It might give me a hint.

I don't really want to run funplug or jerk around with the DLink if I don't have to.

Cheers.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: phenigma on April 14, 2014, 08:49:11 PM
This is one area where I have really little to no knowledge.  The autofs system that is used is completely foreign to me.  If you were can jump into irc we might be able to do some testing.  The dns-323 is an amazing little device, linux based, you can run your own distro on it, but that should not be required.  I do not own one so I cannot test your specific device here.  I have a QNAP NAS, very similar in many respects, and have no issues.  This seems like a permissions issue based on what you are saying and I would look into any differences there.

With autofs the links will not show in /mnt/device unless something is trying to access files through /home/public/data/*/Windows Share.  autofs will mount each mount as it is required and dynamically create and destroy links in /mnt/device.  You should not alter /mnt/device/*.  What you are describing sounds like a permission issue but I couldn't say where.  Nothing has changed in LCME configuration regarding shares, only the distro upgrade.  Check in webadmin that the proper share name is defined AND that it has the proper IP/MAC for the device.  I've had issues in the past where 1004/1204 testing back and forth and the IPs got messed up on my NAS.  That could cause what you are seeing.  Umm.  Yeah....    :-\

J.
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - pls?
Post by: pigdog on April 15, 2014, 01:20:27 AM
Hi phenigma,

Even though I might not get anywhere with this, (a.k.a. get discouraged), I appreciate your feedback.

It's all about the challenge.  Thanks!

Cheers
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - Resolved
Post by: pigdog on April 16, 2014, 11:06:31 PM
Hi phenigma,

Well...       http://forum.linuxmce.org/index.php?topic=13655.0

From my earlier statement in this post.

QuoteI run LMCE on a dedicated network without username/password access.

....basically don't be lazy and not use username/password credentials on 12.04 NAS drives.

The errors in topic=13655.0 helped a bit.

But why symbolic link errors? - that throws you way off.  At least it did me.

I feel kinda silly being lazy with an unsecured NAS but I at least learned something - I hope.

Thank you very much for your time (that I wasted).

Cheers
Title: Re: NAS Symbolic Links on 12.04 loads - Anybody else with sym link issues - Resolved
Post by: phenigma on April 22, 2014, 09:01:42 PM
Not a waste of my time at all.  I'm glad you were able to sort things out!

J.