Opened 3 months ago

Closed 3 months ago

#3129 closed help (answered)

too many levels of symbolic links

Reported by: ggxmy Owned by: um_support
Component: Rose/Cylc Keywords:
Cc: Platform: Monsoon2
UM Version: 11.1

Description

Dear CMS,

I'm trying to run my UKESM job u-bq507 but I got an error;

OSError: [Errno 40] Too many levels of symbolic links: /home/d03/myosh/cylc-run/u-bq507'

I cannot access the directory in the command line either

$ ll /projects/ukca-leeds/myosh/cylc-run/u-bq507/
ls: cannot access /projects/ukca-leeds/myosh/cylc-run/u-bq507/: Too many levels of symbolic links

I copied my suite u-bn684 that previously ran OK to make this suite and made a few minor changes on it (added a few stash requests and one branch for bugfix). Before I tried to run it I did "Auto-fix all configurations". I suspected this might have caused the problem but the problem persists after I reversed this change by clicking the back button. Could you please help me?

Thanks,
Masaru

Attachments (1)

too.many.levels.of.symbolic.links1.jpeg (40.1 KB) - added by ggxmy 3 months ago.

Download all attachments as: .zip

Change History (7)

Changed 3 months ago by ggxmy

comment:1 Changed 3 months ago by grenville

Masaru

You have some soft links which point to themselves eg

lrwxrwxrwx 1 myosh ukca-leeds 43 Jan 10 17:07 u-bq514 → /projects/ukca-leeds/myosh/cylc-run/u-bq514

I can't create an example to test, but can you try something like

mv u-bq514 <something else>,

or

rm u-bq514.

Grenville

comment:2 Changed 3 months ago by ggxmy

HI Grenville,

Although I didn't say this, I knew what the error message means. So in fact I have tried running the suite many times after deleting the symbolic link. But every attempt of running the suite seemed to create that symbolic link and got crashed. That's the same whether I run from gui or from the command line. Can you see what's wrong?

Thanks,
Masaru

comment:3 Changed 3 months ago by grenville

please delete the link u-bq514. Confirm that it has been deleted. Then submit the suite and send us the output that appears on the screen. Your suite u-bq514 works OK fort Ros.

Grenville

comment:4 Changed 3 months ago by ggxmy

I thought I had removed both u-bq514 and u-bq507 before I replied… Now I tried again.

myosh@xcslc0:u-bq507 $ rose suite-run &
[2] 191294                             
myosh@xcslc0:u-bq507 $ [INFO] export CYLC_VERSION=7.8.3
[INFO] export ROSE_ORIG_HOST=xcslc0                    
[INFO] export ROSE_SITE=                               
[INFO] export ROSE_VERSION=2019.01.2                   
[INFO] create: /projects/ukca-leeds/myosh/cylc-run/u-bq507
[INFO] delete: /home/d03/myosh/cylc-run/u-bq507/          
[INFO] symlink: /projects/ukca-leeds/myosh/cylc-run/u-bq507 <= /home/d03/myosh/cylc-run/u-bq507
[FAIL] [Errno 40] Too many levels of symbolic links: '/home/d03/myosh/cylc-run/u-bq507'        

[2]+  Exit 1                  rose suite-run
myosh@xcslc0:u-bq507 $ lltr /home/d03/myosh/cylc-run/
total 20
drwxr-sr-x 10 myosh ukca-leeds 4096 Oct 21 10:09 u-bn915
drwxr-sr-x 10 myosh ukca-leeds 4096 Oct 23 12:56 u-bn684
drwxr-sr-x 10 myosh ukca-leeds 4096 Oct 23 13:00 u-bo048
drwxr-sr-x 10 myosh ukca-leeds 4096 Oct 23 13:01 u-bo127
drwxr-sr-x 10 myosh ukca-leeds 4096 Nov  6 15:16 u-bo323
lrwxrwxrwx  1 myosh ukca-leeds   43 Jan 13 15:05 u-bq507 -> /projects/ukca-leeds/myosh/cylc-run/u-bq507
myosh@xcslc0:u-bq507 $ ll /home/d03/myosh/cylc-run/u-bq507
lrwxrwxrwx 1 myosh ukca-leeds 43 Jan 13 15:05 /home/d03/myosh/cylc-run/u-bq507 -> /projects/ukca-leeds/myosh/cylc-run/u-bq507
myosh@xcslc0:u-bq507 $ rm -i /home/d03/myosh/cylc-run/u-bq507
OK to remove specified files? (Press Return to proceed or ^C to exit)
rm: remove symbolic link `/home/d03/myosh/cylc-run/u-bq507'? y
myosh@xcslc0:u-bq507 $ rm -i /projects/ukca-leeds/myosh/cylc-run/u-bq507
OK to remove specified files? (Press Return to proceed or ^C to exit)
rm: cannot remove `/projects/ukca-leeds/myosh/cylc-run/u-bq507': No such file or directory
myosh@xcslc0:u-bq507 $ ll /home/d03/myosh/cylc-run/u-bq507
ls: cannot access /home/d03/myosh/cylc-run/u-bq507: No such file or directory
myosh@xcslc0:u-bq507 $ ll /projects/ukca-leeds/myosh/cylc-run/u-bq507
ls: cannot access /projects/ukca-leeds/myosh/cylc-run/u-bq507: No such file or directory
myosh@xcslc0:u-bq507 $ rose suite-run &
[2] 54904
myosh@xcslc0:u-bq507 $ [INFO] export CYLC_VERSION=7.8.3
[INFO] export ROSE_ORIG_HOST=xcslc0
[INFO] export ROSE_SITE=
[INFO] export ROSE_VERSION=2019.01.2
[INFO] create: /projects/ukca-leeds/myosh/cylc-run/u-bq507
[INFO] delete: /home/d03/myosh/cylc-run/u-bq507/
[INFO] symlink: /projects/ukca-leeds/myosh/cylc-run/u-bq507 <= /home/d03/myosh/cylc-run/u-bq507
[FAIL] [Errno 40] Too many levels of symbolic links: '/home/d03/myosh/cylc-run/u-bq507'

[2]+  Exit 1                  rose suite-run
myosh@xcslc0:u-bq507 $

What else can I try?

Masaru

comment:5 Changed 3 months ago by grenville

Your home directory has a strange link:
gmslis@xcslc0:/home/d03/myosh> ls -lrt


lrwxrwxrwx 1 myosh mo_users 35 Nov 7 11:46 cylc-run → /projects/ukca-leeds/myosh/cylc-run

delete this link (cylc-run should be a directory in your home space), delete the bad link in

rwxrwxrwx 1 myosh ukca-leeds 43 Jan 13 15:17 u-bq507 → /projects/ukca-leeds/myosh/cylc-run/u-bq507

try again

comment:6 Changed 3 months ago by ggxmy

  • Resolution set to answered
  • Status changed from new to closed

That is it! Many thanks! Masaru

Note: See TracTickets for help on using tickets.