microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
867 stars 369 forks source link

Node Core Bot With Language failed to deploy to Linux #9384

Closed BruceHaley closed 1 year ago

BruceHaley commented 2 years ago

Describe the bug

My bot made from Node template "Core Bot With Language" deployed OK to Azure Windows, but errored deploying to Azure Linux.

To Reproduce

Using Composer 2.1.2 in Windows, I created a bot using the Node template "Core Bot With Language".

I chose a LUIS region of West US.

Creating a publishing profile, I chose:

Publishing with that profile, the process ran for more than an hour, then errored with:

"{"name":"DEPLOY_ZIP_ERROR","message":"There was a problem publishing bot assets (zip deploy). "Getting status of zip upload processing failed. {"stack":"Error: Request failed with status code 403
    at createError (C:\Program Files\Bot Framework Composer\resources\app.asar.unpacked\extensions\azurePublish\dist\extension.js:105969:17)
    at settle (C:\Program Files\Bot Framework Composer\resources\app.asar.unpacked\extensions\azurePublish\dist\extension.js:105983:14)
    at IncomingMessage.handleStreamEnd (C:\Program Files\Bot Framework Composer\resources\app.asar.unpacked\extensions\azurePublish\dist\extension.js:106970:13)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1183:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)","message":"Request failed with status code 403","config":{}}"","stack":"Error
    at new CustomizeError (C:\Program Files\Bot Framework Composer\resources\app.asar.unpacked\extensions\azurePublish\dist\extension.js:276830:25)
    at createCustomizeError (C:\Program Files\Bot Framework Composer\resources\app.asar.unpacked\extensions\azurePublish\dist\extension.js:276835:10)
    at BotProjectDeploy.deployZip (C:\Program Files\Bot Framework Composer\resources\app.asar.unpacked\extensions\azurePublish\dist\extension.js:277366:13)"}"

Publishing with this profile got the same error:

Publishing with this profile succeeded:

Suggested fix:

The guys here say that Composer deploys to Linux for all types of bots are broken, not just this one.

If the fix for this is not too difficult and is low risk, we suggest fixing it. Otherwise, the Composer Linux deploy option ought to be disabled.

dmvtech commented 2 years ago

Linking other issues:

https://github.com/microsoft/BotFramework-Composer/issues/8890 https://github.com/microsoft/BotFramework-Composer/issues/9360