You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deepakwipro
2:50 AM
Failed to deploy contract to fabric network: Error: Received exit code 127 while establishing SFTP session
peter_somogyvari
peter_somogyvari
8:00 AM
deepakwipro Could you please post the code that you've written to assemble the deploy contract request and the logs of the API server when the 127 exit code is returned?deepakwipro8:15 PMdeploy.jsdeepakwipro - Tue Nov 23 2021 09:45:35 GMT+0530 (India Standard Time).txtdeepakwipro12:45 AMI found some solution regarding this issue:-I made change at line 207 in node_modules/@hyperledger/cactus-plugin-ledger-connector-fabric/dist/lib/main/typescript/plugin-ledger-connector-fabric.js.I replaced await ssh.putDirectory(tmpDirPath, remoteDirPath); with await ssh.putDirectory(tmpDirPath, remoteDirPath,{concurrency: 1});peter_somogyvaripeter_somogyvari3:40 PMdeepakwipro You are the best, thank you so much for coming up with the fix at the same time. 🙂I'll commit the fix ASAP and we'll have a release with it hopefully next week in the form of 1.0.0-rc.3Please keep an eye out for the release and the release notes to know when the fix is published onto npm.
deetho
4:03 AM
I am Deepakwipro. I tried on remoteVM then it again throws same error. Last time, i tried to test it on localhost only so may be for that it started working after adding concurrency:1. Pls look into this issue for remoteVM,
peter_somogyvari
dheerajbudhiraja
4:04 AM
Getting same error:
Failed to deploy contract to fabric network: Error: Received exit code 127 while establishing SFTP session
at SFTP.onExit (/home/ubuntu/NodePro/node_modules/ssh2/lib/client.js:1500:23)
Could no longer re-produce this for a long time. Closing until we can reproduce it again. Please feel free to reopen but make sure to provide detailed reproduction steps.
Describe the bug
The original report and a suggested fix is here in the chat:
https://chat.hyperledger.org/channel/cactus?msg=ezAMbp6vphCtGzkc6
https://app.zenhub.com/files/216610150/d33b46c9-ad0c-47d7-88ca-a6c545aa6543/download
The text was updated successfully, but these errors were encountered: