BookmarkSubscribeRSS Feed
Vimal08
Obsidian | Level 7

Hi Team,

We are trying to clone repository on SAS studio in Git repositories section. We have already created the connection and using same profile to clone the repository, but while performing the same we are getting the below error. 

Error: The specified location "/home/*" is not valid for a local repository.

Vimal08_0-1661503244663.png

 

Also, we have executed the below command to add the path in safe directory section in .gitconfig file and still facing the same issue.

Command: git config --global --add safe.directory /home/*

 

Please help us to resolve this issue. Your help will be highly appreciated.

4 REPLIES 4
gwootton
SAS Super FREQ
Does the user that owns the SAS session have permission to create a directory in the path /home/sasdemo/ssh/Gitrepo?
--
Greg Wootton | Principal Systems Technical Support Engineer
Vimal08
Obsidian | Level 7

Yes, user have permission to create a directory on same path.

gwootton
SAS Super FREQ
You may wish to check the compute server logs for more detail on the failure. Typically this means that it tried and failed to create the clone in the given path.
--
Greg Wootton | Principal Systems Technical Support Engineer
Lainer
Calcite | Level 5

had the same issue with our new NAS Share which is CIFS but can do also NFS.

 

sas-launcher-* Log you can find this error message:

{"level":"error","message":"ERROR: Return code from GIT is (2). failed to set permissions on file

 

It can create the files/folders but not edit anymore, it's an issue with temp/swap files/folders.

 

Solution: ignore ntfs operations
With this change it will ignore NTFS operations and just do what NFS wants.

Here are more technical details for your NAS Admin:

https://community.netapp.com/t5/ONTAP-Discussions/How-to-set-permissions-from-NTFS-style-qtree-mount...