When a Node.js module runs a .exe on my linux azure app service file this bug appears :
Error: spawn /node_modules/mso-pdf/mso-pdf.exe EACCES
2021-09-01T15:45:31.299726157Z at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
2021-09-01T15:45:31.299731257Z at onErrorNT (internal/child_process.js:465:16)
2021-09-01T15:45:31.299736257Z at processTicksAndRejections (internal/process/task_queues.js:80:21)
2021-09-01T15:45:31.299741057Z Emitted 'error' event on ChildProcess instance at:
2021-09-01T15:45:31.299746058Z at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2021-09-01T15:45:31.299763558Z at onErrorNT (internal/child_process.js:465:16)
2021-09-01T15:45:31.299768459Z at processTicksAndRejections (internal/process/task_queues.js:80:21) {
2021-09-01T15:45:31.299773059Z errno: -13,
2021-09-01T15:45:31.299777759Z code: 'EACCES',
2021-09-01T15:45:31.299782259Z syscall: 'spawn /node_modules/mso-pdf/mso-pdf.exe',
2021-09-01T15:45:31.299786859Z path: '/node_modules/mso-pdf/mso-pdf.exe',
2021-09-01T15:45:31.299814961Z spawnargs: [
2021-09-01T15:45:31.299820261Z 'WD',
2021-09-01T15:45:31.299824561Z '/home/site/wwwroot/dist/output.docx',
2021-09-01T15:45:31.299828861Z '/home/site/wwwroot/dist/output.pdf'
2021-09-01T15:45:31.299845662Z ]
2021-09-01T15:45:31.299849962Z }
I think it is a permissions problem, any ideas ?
Thanks