Page 1 of 1
Too many levels of symbolics links ?
Posted: Tue Sep 18, 2007 12:53 pm
by BaldBoy
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]
Posted: Wed Sep 19, 2007 5:32 am
by gren
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.
Posted: Wed Sep 19, 2007 1:22 pm
by BaldBoy
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.