我正在尝试通过NodeJs
lambda上的AWS
代码执行 linux可执行文件。我的NodeJs
日志记录代码运行正常,但是由于某种原因可执行文件无法运行。我使用PyInstaller
生成python文件的可执行文件。
我在AWS lambda日志上遇到以下错误:
START RequestId: baf8-e14b8147bc1f Version: $LATEST
2018-07-05T22:56:24.849Z baf8-e14b8147bc1f executing hello exe
2018-07-05T22:56:25.092Z baf8-e14b8147bc1f { Error: Command failed: ./application/hello
./application/hello: ./application/hello: cannot execute binary file
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false,
code: 126,
signal: null,
cmd: './application/hello' }
我尝试了其他选项,例如将其设置为.exe文件,chmod + x等。
附加my project setup and folder structure