Sreekanth
Sreekanth

Reputation: 1947

No URLs matched- while copying file to google cloud storage

I am copying two files into Google Cloud Storage (GCS). When I run the script from informatica, I get error but when I run the same script from Unix it works fine.

Below is a link from GitHub where a similar issue is discussed. I don't understand what's the issue.

------------------------PART OF SCRIPT------------------------

echo "$LFS_File_Path/$File_Name";

gsutil cp "$LFS_File_Path/$File_Name" $GCS_Path;

if [[ $? -eq 0 ]]; then
    echo "copy to GCS success for LFS Data File";
else
    echo "copy to GCS Failed for LFS" >> $Log_File_Path/$Workflow_Name.txt ;
    exit 1
fi

echo "$LFS_File_Path/$Del_File_Name";

gsutil cp "$LFS_File_Path/$Del_File_Name" $GCS_Path;

if [[ $? -eq 0 ]]; then
    echo "copy to GCS success for LFS Delete Data File";
else
    echo "copy to GCS Failed for LFS" >> $Log_File_Path/$Workflow_Name.txt ;
    exit 1
fi

------------------------PART OF SCRIPT------------------------

error:-

CommandException: No URLs matched: /opt/u01/app/informatica/server/infa_shared/TgtFiles/BQ_RT/DW_ORDER_HEADER_DEL.csv

Similar topic:-

https://github.com/GoogleCloudPlatform/gsutil/issues/501

Upvotes: 2

Views: 3963

Answers (2)

vamcparimi
vamcparimi

Reputation: 1

resolved it after creating another directory its because of the hiddenfiles in that directory,the hidden file used the gstuil commands and found some escape characters init try to create one more directory on the same filesystem and move the files from the directory

its mainly because of the escape characters,try to remove/move the hidden files it will avoid the the above error

errors: 1)"No URLS matched" 2)CommandException: No URLs matched

Upvotes: 0

Temu
Temu

Reputation: 879

It might be related to the permissions in that file or maybe the command is being run as a user but only root has access to read inside that folder.

Upvotes: 1

Related Questions