cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Sender Communication Channel "Exception received: 4: cd Maybe the directory does not exist

former_member354078
Participant
0 Kudos

HI Team,

I have existing working interface, which is picking files from source SFTP server via SFTP sender channel. All of sudden, it started throwing error in channel

cd to /folderName/ failed. Maybe the directory does not exist. Error message is:

Below are exact logs in channel monitoring:

OK 8/26/2020 2:19:46 PM UTC Ignoring errors on pwd: false

OK 8/26/2020 2:19:46 PM UTC Listing /folderName/ OK

8/26/2020 2:20:12 PM UTC Directory under file Path returned 7,523. These include directories and links.

OK 8/26/2020 2:32:36 PM UTC Found 7523 file s 8/26/2020 2:32:36 PM UTC Exception received: 4: cd to /folderName/ failed. Maybe the directory does not exist. Error message is:

Investigated on below things:

I have checked by login to source sftp server , folder has, 0777 and files has 0777 permissions .. and default landing page is root/home directory..

if I put the single files name in channel as "Filename" parameter, its working .. but its not working when there are more files in source server ?

I tried to use permanent mode with parameter name - >connection.mode.permanent = true

I have also referred few notes - 1692819, 1859563 and 2401292 but could not fixed.

Regards,

Shiv

View Entire Topic
former_member190293
Active Contributor
0 Kudos

Hi!

I've faced similar issue once.

The point was that listing using the mask was prohibited by SFTP server settings. One could get the file by full name but it didn't return anything when the mask has been used in file name.

As the result, I requested changing settings on server side.

Regards, Evgeniy.

former_member354078
Participant
0 Kudos

Hi Evgeniy,

Thanks for reverting. Could you please help exactly what /which setting I need to ask SFTP server admin team to change?

and until this setting is removed from their end, we wont be able to pick files, even if directory has less files like 10 , is this understanding right?

Regards,

Shiv A

former_member190293
Active Contributor
0 Kudos

Hi Shiv!

In my case there was a dedicated setting for particular FTP server software. It enabled/disabled listing the files in directory using wildcards.

You can check it, using any command line FTP client. If server doesn't return anything when you use the wildcards - it's definitely the server's restriction.

Regards, Evgeniy.