Error to start Process.Start("/bin/sftp", $"{args}")) #1549
-
I try to run sftp command but the lambda fails with error: I tried following paths: It looks like it's technically possible - here is suggested solution to similar issue #274:
The way I run the process
I can't change |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@LukaszGmaj Although I'm not sure, the default Lambda runtime image is quite restrictive and minimal in terms of included packages. The error An error occurred trying to start process '/bin/sftp' with working directory '/var/task'. No such file or directory is quite evident. There is no program named /bin/sftp. You may try using your customer runtime image for the Lambda function, where your Docker file includes any 3rd party packages. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@LukaszGmaj Although I'm not sure, the default Lambda runtime image is quite restrictive and minimal in terms of included packages. The error An error occurred trying to start process '/bin/sftp' with working directory '/var/task'. No such file or directory is quite evident. There is no program named /bin/sftp. You may try using your customer runtime image for the Lambda function, where your Docker file includes any 3rd party packages.
Answer:
Thanks,
Ashish