Traversing symlinks not allow

I am trying to download swi-linux source(swi-fx30-catm_4.0.0.beta │ Release R15.0.2.001.BP2 + Legato 21.05.0) to my Ubuntu 18.04.6. I got error “traversing symlinks not allow” as below. I didn’t have issue with downloading previous version R14. Any suggestions on where the issue can be for R15 BP2?

bill@xxx:~$ leaf getsrc swi-linux
Run sync steps for fx30-catm-linux-src_R15.0.2.001.BP2

Ready to sync in /home/bill/swi-linux-src directory:
repo init -u ssh://git@github.com/legatoproject/manifest -m mdm9x06/tags/SWI9X06Y_03.00.03.00/linux.xml -g default,-cache,proprietary ; repo sync

Proceed? (Y/n)
Y
Checking credentials...

Your identity is: xxx
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/bill/swi-linux-src
Fetching: 100% (58/58), done in 8.431s
Garbage collecting: 100% (58/58), done in 0.205s
error: Cannot checkout msm-4.14: ManifestInvalidPathError: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
fatal: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
ERROR:
  Something went wrong with `repo` command
HINTS:
  Please check connection and credentials
  Then try again leaf getsrc swi-linux
Fetching: 100% (58/58), done in 8.126s
Garbage collecting: 100% (58/58), done in 0.159s
error: Cannot checkout msm-4.14: ManifestInvalidPathError: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
fatal: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
Error while sync operation on fx30-catm-linux-src_R15.0.2.001.BP2
Error during sync step for fx30-catm-linux-src_R15.0.2.001.BP2 (command returned 1)
bill@xxx:~$

does this help?

Thanks for looking into this, unfortunately, I couldn’t find the thread useful.

Hi @cchenry
Any idea on this?

Sorry @jyijyi, I don’t… maybe @lpacyk can help

Hi @jyijyi

The repo tool seems to have changed at some point and no longer supports traversing symlinks. I will open a ticket on our side for a workaround in leaf…

For now you can install the older repo tool
please install old version with these commands

mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/.bin/repo
chmod a+rx ~/.bin/repo
sed -i 's/env python/env python2/g' ~/.bin/repo (this is to shebang to python2).

If there are still issues you may have to copy this older version of repo to the path of which repo

2 Likes

Great answer. Work like a charm!

I still have this problem after typing the above commands, how do you get over this?



If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src

... A new version of repo (2.21) is available.
... You should upgrade soon:
    cp /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src/.repo/repo/repo /home/owner/.bin/repo

Fetching: 100% (58/58), done in 11.751s
Garbage collecting:  0% [4 jobs] (0/58) started legato-Apps-AtAirVantageBin-wp76Garbage collecting:  6% [3 jobs] (4/58) finished legato-Apps-AtAirVantageBin-wp7Garbage collecting:  6% [4 jobs] (4/58) started legato-Apps-AtQmiLinkerBin-wp76xGarbage collecting:  8% [4 jobs] (5/58) finished legato-Apps-AtAirVantageBin-wp8Garbage collecting:  8% [4 jobs] (5/58) started legato-Apps-QmiAirVantageBin-wp7Garbage collecting: 12% [4 jobs] (7/58) started legato-PlatformAdaptor-QmiBin-wpGarbage collecting: 13% [4 jobs] (8/58) finished legato-Apps-AtQmiLinkerBin-wp76Garbage collecting: 15% [4 jobs] (9/58) finished legato-Apps-QmiAirVantageBin-wpGarbage collecting: 17% [3 jobs] (10/58) started legato-Apps-QmiAirVantageBin-wpGarbage collecting: 17% [3 jobs] (10/58) started legato-PlatformAdaptor-QmiBin-aGarbage collecting: 18% [3 jobs] (11/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 18% [4 jobs] (11/58) started legato-PlatformAdaptor-QmiBin-aGarbage collecting: 18% [4 jobs] (11/58) started legato-PlatformAdaptor-QmiBin-aGarbage collecting: 20% [4 jobs] (12/58) finished legato-Apps-QmiAirVantageBin-wGarbage collecting: 22% [4 jobs] (13/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 24% [3 jobs] (14/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 25% [3 jobs] (15/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 34% [3 jobs] (20/58) started legato-PlatformAdaptor-QmiBin-wGarbage collecting: 37% [4 jobs] (22/58) finished legato-Apps-AtQmiLinkerBin-wp8Garbage collecting: 39% [4 jobs] (23/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 43% [4 jobs] (25/58) started legato-Service-AirVantageConnecGarbage collecting: 44% [4 jobs] (26/58) finished meta-swi-bin-files-mdm9x06le21Garbage collecting: 50% [1 job] (29/58) finished legato-Service-AirVantageConnecGarbage collecting: 55% [2 jobs] (32/58) finished legato-PlatformAdaptor-FwUpdatGarbage collecting: 56% [4 jobs] (33/58) started legato-3rdParty-kconfig-frontenGarbage collecting: 63% [4 jobs] (37/58) finished legato-3rdParty-kconfig-fronteGarbage collecting: 67% [3 jobs] (39/58) started legato-3rdParty-paho.mqtt.embedGarbage collecting: 70% [4 jobs] (41/58) finished legato-3rdParty-paho.mqtt.embeGarbage collecting: 77% [3 jobs] (45/58) finished legato-PlatformAdaptor-DcsLinuGarbage collecting: 84% [4 jobs] (49/58) started legato-PlatformAdaptor-WdogLinuGarbage collecting: 89% [4 jobs] (52/58) started legato-PlatformAdaptor-ClockLinGarbage collecting: 94% [2 jobs] (55/58) finished legato-PlatformAdaptor-WdogLinGarbage collecting: 96% [3 jobs] (56/58) finished legato-PlatformAdaptor-ClockLiGarbage collecting: 100% (58/58), done in 0.265s
error: Cannot checkout msm-4.14: ManifestInvalidPathError: /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
legato/platformAdaptor/dcs/linux/: leaving master; does not track upstream
fatal: /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
ERROR:
  Something went wrong with `repo` command
HINTS:
  Please check connection and credentials
  Then try again leaf getsrc swi-linux

... A new version of repo (2.21) is available.
... You should upgrade soon:
    cp /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src/.repo/repo/repo /home/owner/.bin/repo

Fetching: 100% (58/58), done in 12.069s
Garbage collecting:  0% [4 jobs] (0/58) started legato-Apps-AtAirVantageBin-wp76Garbage collecting:  3% [4 jobs] (2/58) started legato-Apps-QmiAirVantageBin-wp7Garbage collecting:  6% [4 jobs] (4/58) finished legato-Apps-AtAirVantageBin-wp7Garbage collecting:  8% [4 jobs] (5/58) finished legato-Apps-AtAirVantageBin-wp8Garbage collecting: 10% [3 jobs] (6/58) finished legato-Apps-QmiAirVantageBin-wpGarbage collecting: 12% [2 jobs] (7/58) started legato-Apps-AtQmiLinkerBin-wp76xGarbage collecting: 12% [3 jobs] (7/58) started legato-PlatformAdaptor-QmiBin-arGarbage collecting: 13% [4 jobs] (8/58) started legato-PlatformAdaptor-QmiBin-wpGarbage collecting: 15% [4 jobs] (9/58) finished legato-PlatformAdaptor-QmiBin-aGarbage collecting: 17% [4 jobs] (10/58) finished legato-Apps-AtQmiLinkerBin-wp7Garbage collecting: 17% [3 jobs] (10/58) started legato-Apps-QmiAirVantageBin-wpGarbage collecting: 17% [4 jobs] (10/58) started legato-PlatformAdaptor-QmiBin-aGarbage collecting: 20% [3 jobs] (12/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 20% [3 jobs] (12/58) started legato-PlatformAdaptor-QmiBin-aGarbage collecting: 22% [4 jobs] (13/58) finished legato-Apps-QmiAirVantageBin-wGarbage collecting: 24% [4 jobs] (14/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 25% [4 jobs] (15/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 32% [4 jobs] (19/58) started legato-PlatformAdaptor-QmiBin-wGarbage collecting: 34% [4 jobs] (20/58) finished legato-Apps-AtQmiLinkerBin-wp8Garbage collecting: 36% [4 jobs] (21/58) finished meta-swi-bin-files-mdm9x06le21Garbage collecting: 39% [4 jobs] (23/58) finished legato-PlatformAdaptor-QmiBin-Garbage collecting: 44% [3 jobs] (26/58) started legato-Service-AirVantageConnecGarbage collecting: 50% [4 jobs] (29/58) finished legato-Service-AirVantageConneGarbage collecting: 56% [3 jobs] (33/58) finished legato-PlatformAdaptor-FwUpdatGarbage collecting: 67% [3 jobs] (39/58) started legato-3rdParty-paho.mqtt.embedGarbage collecting: 72% [2 jobs] (42/58) finished legato-3rdParty-paho.mqtt.embeGarbage collecting: 72% [3 jobs] (42/58) started legato-3rdParty-kconfig-frontenGarbage collecting: 75% [4 jobs] (44/58) finished legato-PlatformAdaptor-DcsLinuGarbage collecting: 77% [4 jobs] (45/58) finished legato-3rdParty-kconfig-fronteGarbage collecting: 91% [4 jobs] (53/58) started legato-PlatformAdaptor-WdogLinuGarbage collecting: 91% [4 jobs] (53/58) started legato-PlatformAdaptor-ClockLinGarbage collecting: 94% [4 jobs] (55/58) finished legato-PlatformAdaptor-WdogLinGarbage collecting: 98% [2 jobs] (57/58) finished legato-PlatformAdaptor-ClockLiGarbage collecting: 100% (58/58), done in 0.255s
error: Cannot checkout msm-4.14: ManifestInvalidPathError: /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
fatal: /home/owner/LEAF/test_swi-fx30_catm_4.0.0.beta/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
Error while sync operation on fx30-catm-linux-src_R15.0.2.001.BP2
Error during sync step for fx30-catm-linux-src_R15.0.2.001.BP2 (command returned 1)
owner@owner-ThinkPad-X220:~/LEAF/test_swi-fx30_catm_4.0.0.beta$ which repo
/home/owner/.bin/repo

As @lpacyk advised, an previous version of repo which supports traversing symlinks can be the workaround for now. You may want to check if your repo is the same version as mine?

r15bp2@xxx:~/swi-linux-src$ repo --version
repo version v1.13.11
       (from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.27
       (from /home/r15bp2/.bin/repo)
       (currently at 1.13.11)
repo User-Agent git-repo/1.13.11 (Linux) git/2.17.1 Python/2.7.17
git 2.17.1
git User-Agent git/2.17.1 (Linux) git-repo/1.13.11
Python 2.7.17 (default, Mar 18 2022, 13:21:42)
[GCC 7.5.0]
r15bp2@xxx:~/swi-linux-src$