Too many levels of symbolics links ?

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Too many levels of symbolics links ?

Postby BaldBoy » Tue Sep 18, 2007 12:53 pm

How can I troubleshoot this error I get in the Administration server error log ?

Code: Select all

ERROR Administration(Scalix Admin C) 09.18.07 18:46:43
[SYS 40] Too many levels of symbolic links
Current errno value: 40
<- /build/scalix-MAIN/src/lib/ombase/os/os_stat.c:58[1,40]
<- /build/scalix-MAIN/src/bin/omtc/omtc_tree.c:220[1,40]

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Postby gren » Wed Sep 19, 2007 5:32 am

This is typically a problem where you have a symbolic link loop in your Linux filesystem.

For instance :
mkdir /tmp/a /tmp/a/b
ln -s /tmp/a /tmp/a/b/c # This means that /tmp/a is inside /tmp/a/b. i.e. inside itself

Then, as root do :
omtree /tmp/a

This will throw the error you are seeing.

I strongly suggest you fix this up afterwards using :
rm /tmp/a/b/c; rm -rf /tmp/a

The problem is probably somewhere underneath the Scalix hierarchy. Find symbolic links as follows :
find /var/opt/scalix -type l

Then check where the links you find link to (ls is your friend there)

Regards,
Gren.

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Postby BaldBoy » Wed Sep 19, 2007 1:22 pm

Here is the problem. Due to disk space limitations I had to move storage area at another mounting point.

Therefore I have moved /var/opt/scalix/<server>/s/data to another location (eg. /usr/scalix/data) and have created in /var/opt/scalix/<server>/s/ a "data" link to the new location.

Scalix seems to work perfectly but if I do a omtree /var/opt/scalix I get
/var/opt/scalix/<server>/s/data/data/data/data/data<and-over-and-over> till I get the error.

How to manage this ?

P.s.
Figured it out ... I had another "data" link in the new location pointing back to the source location. Ty.


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 5 guests