botframework-solutions icon indicating copy to clipboard operation
botframework-solutions copied to clipboard

Sorry unable to open [Chitchat.lu] - same for other .lu files - using the virtual assistant template and following https://microsoft.github.io/botframework-solutions/virtual-assistant/tutorials/create-assistant/csharp/3-create-project/

Open ashoksamal6363 opened this issue 7 years ago • 16 comments

What project is affected?

What language is this in?

What happens?

What are the steps to reproduce this issue?

What were you expecting to happen?

Can you share any logs, error output, etc.?

Any screenshots or additional context?

ashoksamal6363 avatar Nov 05 '19 10:11 ashoksamal6363

This is the full output: > Deploying Azure services (this could take a while)...

Updating appsettings.json ... Deploying cognitive models ... Initializing dispatch model ... Parsing General LU file ... Sorry unable to open [General.lu] Stopping further processing. Deploying General LUIS app ... ! Could not deploy LUIS model. Review the log for more information. ! Log: C:\Users\assamal\source\repos\va14\va14\va14\Deployment\Scripts..\deploy_cognitive_models_log.txt Setting LUIS subscription key ... ! Could not create LUIS app. Skipping dispatch add. Parsing Chitchat LU file ... Sorry unable to open [Chitchat.lu] Stopping further processing. Deploying Chitchat QnA kb ... 2 Retrying ... 1 Retrying ... 0 Retrying ... -1 ! Unable to create QnA KB. ! Could not deploy knowledgebase. Review the log for more information. ! Log: C:\Users\assamal\source\repos\va14\va14\va14\Deployment\Scripts..\deploy_cognitive_models_log.txt ! Could not create knowledgebase. Skipping dispatch add. > Parsing Faq LU file ... Sorry unable to open [Faq.lu] Stopping further processing. Deploying Faq QnA kb ... 2 Retrying ... 1 Retrying ... 0 Retrying ... -1 ! Unable to create QnA KB. ! Could not deploy knowledgebase. Review the log for more information. ! Log: C:\Users\assamal\source\repos\va14\va14\va14\Deployment\Scripts..\deploy_cognitive_models_log.txt ! Could not create knowledgebase. Skipping dispatch add. Creating dispatch model... ! Could not create Dispatch app. Review the log for more information. ! Log: C:\Users\assamal\source\repos\va14\va14\va14\Deployment\Scripts..\deploy_cognitive_models_log.txt Summary of the deployed resources:

  • Resource Group: p14va
  • Bot Web App: p14va-ixue7o5

Command group 'bot' is in preview. It may be changed/removed in a future release.

Publishing to Azure ... ! Could not deploy automatically to Azure. Review the log for more information. ! Error: ERROR: Zip deployment failed. {'id': '84da2e763e994404a725441607de2b71', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author': 'N/A', 'deployer': 'Push-Deployer', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2019-11-05T14:51:04.2537095Z', 'start_time': '2019-11-05T14:51:04.2537095Z', 'end_time': '2019-11-05T14:51:12.5589227Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://p14va-ixue7o5.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://p14va-ixue7o5.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': 'p14va-ixue7o5', 'provisioningState': None}. Please run the command az webapp log tail ! Log: C:\Users\assamal\source\repos\va14\va14\va14\Deployment\Scripts..\publish_log.txt

ashoksamal6363 avatar Nov 05 '19 14:11 ashoksamal6363

hi @ashoksamal6363 Could you output lu_file like Write-Host $lu_file here? To check if it is the correct lu file. https://github.com/microsoft/botframework-solutions/blob/c7f0d13ac79047b8d783cab157b6c687ca79f39c/templates/Virtual-Assistant-Template/csharp/Template/VA/Deployment/Scripts/luis_functions.ps1#L9

xieofxie avatar Nov 06 '19 02:11 xieofxie

ludown parse toluis --in "General.lu" --luis_culture "en-us" ` --out "General.luis"

It nicely create General.luis in the folder. I think it has something to do with LUIS key . Do u think the same?

ashoksamal6363 avatar Nov 06 '19 14:11 ashoksamal6363

@ashoksamal6363 Unless, i'm mistaken, it seems as though there might be multiple failures (the one for chitchat.lu and the publishing to Azure step).

Which version of the Virtual Assistant are you using? (4.5.4?)

What versions of AZ CLI and Ludown do you have?

dmvtech avatar Nov 06 '19 20:11 dmvtech

So far i found out the reason is - luis_functions.ps1 is not getting the perfect path (Even if everything looks good) to parse the lu file.

This work - ludown parse toluis --in "General.lu" --luis_culture "en-us" ` --out "General.luis"

But this doesnt work: ludown parse toluis --in "./Deployment/resources/LU/en/General.lu" --luis_culture "en-us" ` --out "./Deployment/resources/LU/en/General.luis"

ashoksamal6363 avatar Nov 06 '19 20:11 ashoksamal6363

Just to clarify; that scenario (running the ludown command) doesn't work, even outside of the PowerShell script?

If so, are you running from the folder with the .csproj file, just as you are with the deploy.ps1?

Some of the log entry stuff does look invalid, but I didn't track down if that is just bad logging or not: image

dmvtech avatar Nov 07 '19 22:11 dmvtech

Hi @ashoksamal6363 ,

Checking in. Can you clarify that the issue happens outside the PowerShell script (if you run the ludown command on it's own)? Can you confirm you are running PowerShell script from project folder?

dmvtech avatar Nov 12 '19 17:11 dmvtech

Closing this as it seems you no longer need assistance. Please let us know if you still need assistance with this issue.

dmvtech avatar Nov 14 '19 20:11 dmvtech

I am running into similar issues and don't seem to be able to deploy the Luis and QnA files. is there a resolution for this issue?

connectmteam avatar Sep 08 '20 22:09 connectmteam

@connectmteam Same questions for you from above (and additional):

  • What version of AZ CLI are you using?
  • What version of Ludown?
  • Are you able to run the ludown command, ouside of Powershell?
  • What version of VA are you using?
  • Have you tried with the most recent version of luis_functions.ps1?

dmvtech avatar Sep 09 '20 18:09 dmvtech

PS /Users/vkbalasub> az --version azure-cli 2.11.1 core 2.11.1 telemetry 1.0.5 * Python location '/usr/local/Cellar/azure-cli/2.11.1/libexec/bin/python' Extensions directory '/Users/vkbalasub/.azure/cliextensions' Python (Darwin) 3.8.5 (default, Jul 21 2020, 10:42:08) [Clang 11.0.0 (clang-1100.0.33.17)]

I have not been able to run a Ludown command. Did not install anything specific. Please guide

The same question around VA. This is my first bot and I am following the https://microsoft.github.io/botframework-solutions/index. Appreciate your patience.

I have not used the most recent version of the script, but can see some differences right away from the download that I have from a few days ago. I had to debug the earlier script and see the luis invocation was failing as "bf" was not being used. Will clean up the environment once and run with the new script.

Is there anything specific for the QnA deployment that needs to be done? Is there a new qna_functions.ps1 that I should use and also is there a latest deploy_cognitive_models.ps1 script?

connectmteam avatar Sep 09 '20 19:09 connectmteam

PS /Users/vkbalasub> az --version azure-cli 2.11.1 core 2.11.1 telemetry 1.0.5 * Python location '/usr/local/Cellar/azure-cli/2.11.1/libexec/bin/python' Extensions directory '/Users/vkbalasub/.azure/cliextensions' Python (Darwin) 3.8.5 (default, Jul 21 2020, 10:42:08) [Clang 11.0.0 (clang-1100.0.33.17)]

I have not been able to run a Ludown command. Did not install anything specific. Please guide

The same question around VA. This is my first bot and I am following the https://microsoft.github.io/botframework-solutions/index. Appreciate your patience.

I have not used the most recent version of the script, but can see some differences right away from the download that I have from a few days ago. I had to debug the earlier script and see the luis invocation was failing as "bf" was not being used. Will clean up the environment once and run with the new script.

Is there anything specific for the QnA deployment that needs to be done? Is there a new qna_functions.ps1 that I should use and also is there a latest deploy_cognitive_models.ps1 script?

I have gone ahead and installed the BF-CLI to get all the tools in place. However, have run into some errors on the install as below and have manually installed Luisgen using dotnet.

Vinays-MacBook:~ root# npm install -g chatdown msbot ludown luis-apis qnamaker botdispatch luisgen npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

[email protected] preinstall /usr/local/lib/node_modules/luisgen node dotnetpreinstall.js

This tool requires the Dotnet SDK 2.1 to be installed. Go to https://www.microsoft.com/net/download to install on your system. NOTE: You do not need to use npm to install this tool once you have the Dotnet SDK 2.1 installed. Instead you can simply use the dotnet install command to install. To install run: dotnet tool install -g LUISGen To uninstall run: dotnet tool uninstall -g LUISGen /usr/local/bin/dispatch -> /usr/local/lib/node_modules/botdispatch/bin/dispatch.js /usr/local/bin/chatdown -> /usr/local/lib/node_modules/chatdown/bin/chatdown.js /usr/local/bin/ludown -> /usr/local/lib/node_modules/ludown/bin/ludown /usr/local/bin/luis -> /usr/local/lib/node_modules/luis-apis/bin/luis.js /usr/local/bin/msbot -> /usr/local/lib/node_modules/msbot/bin/msbot.js /usr/local/bin/qnamaker -> /usr/local/lib/node_modules/qnamaker/bin/qnamaker.js

[email protected] install /usr/local/lib/node_modules/luisgen dotnet tool install -g LUISGen

Failed to create CoreCLR, HRESULT: 0x80004005 npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! [email protected] install: dotnet tool install -g LUISGen npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2020-09-09T19_46_53_499Z-debug.log

connectmteam avatar Sep 09 '20 19:09 connectmteam

PS /Users/vkbalasub> az --version azure-cli 2.11.1 core 2.11.1 telemetry 1.0.5 * Python location '/usr/local/Cellar/azure-cli/2.11.1/libexec/bin/python' Extensions directory '/Users/vkbalasub/.azure/cliextensions' Python (Darwin) 3.8.5 (default, Jul 21 2020, 10:42:08) [Clang 11.0.0 (clang-1100.0.33.17)] I have not been able to run a Ludown command. Did not install anything specific. Please guide The same question around VA. This is my first bot and I am following the https://microsoft.github.io/botframework-solutions/index. Appreciate your patience. I have not used the most recent version of the script, but can see some differences right away from the download that I have from a few days ago. I had to debug the earlier script and see the luis invocation was failing as "bf" was not being used. Will clean up the environment once and run with the new script. Is there anything specific for the QnA deployment that needs to be done? Is there a new qna_functions.ps1 that I should use and also is there a latest deploy_cognitive_models.ps1 script?

I have gone ahead and installed the BF-CLI to get all the tools in place. However, have run into some errors on the install as below and have manually installed Luisgen using dotnet.

Vinays-MacBook:~ root# npm install -g chatdown msbot ludown luis-apis qnamaker botdispatch luisgen npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142 npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see request/request#3142 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

[email protected] preinstall /usr/local/lib/node_modules/luisgen node dotnetpreinstall.js

This tool requires the Dotnet SDK 2.1 to be installed. Go to https://www.microsoft.com/net/download to install on your system. NOTE: You do not need to use npm to install this tool once you have the Dotnet SDK 2.1 installed. Instead you can simply use the dotnet install command to install. To install run: dotnet tool install -g LUISGen To uninstall run: dotnet tool uninstall -g LUISGen /usr/local/bin/dispatch -> /usr/local/lib/node_modules/botdispatch/bin/dispatch.js /usr/local/bin/chatdown -> /usr/local/lib/node_modules/chatdown/bin/chatdown.js /usr/local/bin/ludown -> /usr/local/lib/node_modules/ludown/bin/ludown /usr/local/bin/luis -> /usr/local/lib/node_modules/luis-apis/bin/luis.js /usr/local/bin/msbot -> /usr/local/lib/node_modules/msbot/bin/msbot.js /usr/local/bin/qnamaker -> /usr/local/lib/node_modules/qnamaker/bin/qnamaker.js

[email protected] install /usr/local/lib/node_modules/luisgen dotnet tool install -g LUISGen

Failed to create CoreCLR, HRESULT: 0x80004005 npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! [email protected] install: dotnet tool install -g LUISGen npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2020-09-09T19_46_53_499Z-debug.log

I am able to run the Ludown and Dispatch commands now directly. Let me try the deployment once again after cleaning up with the new Luis_functions script you provided.

connectmteam avatar Sep 09 '20 19:09 connectmteam

PS /Users/vkbalasub> az --version azure-cli 2.11.1 core 2.11.1 telemetry 1.0.5 * Python location '/usr/local/Cellar/azure-cli/2.11.1/libexec/bin/python' Extensions directory '/Users/vkbalasub/.azure/cliextensions' Python (Darwin) 3.8.5 (default, Jul 21 2020, 10:42:08) [Clang 11.0.0 (clang-1100.0.33.17)] I have not been able to run a Ludown command. Did not install anything specific. Please guide The same question around VA. This is my first bot and I am following the https://microsoft.github.io/botframework-solutions/index. Appreciate your patience. I have not used the most recent version of the script, but can see some differences right away from the download that I have from a few days ago. I had to debug the earlier script and see the luis invocation was failing as "bf" was not being used. Will clean up the environment once and run with the new script. Is there anything specific for the QnA deployment that needs to be done? Is there a new qna_functions.ps1 that I should use and also is there a latest deploy_cognitive_models.ps1 script?

I have gone ahead and installed the BF-CLI to get all the tools in place. However, have run into some errors on the install as below and have manually installed Luisgen using dotnet. Vinays-MacBook:~ root# npm install -g chatdown msbot ludown luis-apis qnamaker botdispatch luisgen npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142 npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see request/request#3142 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

[email protected] preinstall /usr/local/lib/node_modules/luisgen node dotnetpreinstall.js

This tool requires the Dotnet SDK 2.1 to be installed. Go to https://www.microsoft.com/net/download to install on your system. NOTE: You do not need to use npm to install this tool once you have the Dotnet SDK 2.1 installed. Instead you can simply use the dotnet install command to install. To install run: dotnet tool install -g LUISGen To uninstall run: dotnet tool uninstall -g LUISGen /usr/local/bin/dispatch -> /usr/local/lib/node_modules/botdispatch/bin/dispatch.js /usr/local/bin/chatdown -> /usr/local/lib/node_modules/chatdown/bin/chatdown.js /usr/local/bin/ludown -> /usr/local/lib/node_modules/ludown/bin/ludown /usr/local/bin/luis -> /usr/local/lib/node_modules/luis-apis/bin/luis.js /usr/local/bin/msbot -> /usr/local/lib/node_modules/msbot/bin/msbot.js /usr/local/bin/qnamaker -> /usr/local/lib/node_modules/qnamaker/bin/qnamaker.js

[email protected] install /usr/local/lib/node_modules/luisgen dotnet tool install -g LUISGen

Failed to create CoreCLR, HRESULT: 0x80004005 npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! [email protected] install: dotnet tool install -g LUISGen npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2020-09-09T19_46_53_499Z-debug.log

I am able to run the Ludown and Dispatch commands now directly. Let me try the deployment once again after cleaning up with the new Luis_functions script you provided.

I ran the deployment again and the script errored out while deploying the models. Log below -

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle [email protected]~prebuild: [email protected] 6 verbose lifecycle [email protected]~prebuild: unsafe-perm in lifecycle true 7 verbose lifecycle [email protected]~prebuild: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/vkbalasub/meli/node_modules/.bin:/usr/local/microsoft/powershell/7:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/vkbalasub/Library/Python/3.7/lib/python/site-packages:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Python/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools 8 verbose lifecycle [email protected]~prebuild: CWD: /Users/vkbalasub/meli 9 silly lifecycle [email protected]~prebuild: Args: [ '-c', 'npm run lint' ] 10 silly lifecycle [email protected]~prebuild: Returned: code: 0  signal: null 11 info lifecycle [email protected]~build: [email protected] 12 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true 13 verbose lifecycle [email protected]~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/vkbalasub/meli/node_modules/.bin:/usr/local/microsoft/powershell/7:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/vkbalasub/Library/Python/3.7/lib/python/site-packages:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Python/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools 14 verbose lifecycle [email protected]~build: CWD: /Users/vkbalasub/meli 15 silly lifecycle [email protected]~build: Args: [ '-c', 'tsc --p tsconfig.json && npm run copy-templates' ] 16 silly lifecycle [email protected]~build: Returned: code: 2  signal: null 17 info lifecycle [email protected]~build: Failed to exec build script 18 verbose stack Error: [email protected] build: tsc --p tsconfig.json && npm run copy-templates 18 verbose stack Exit status 2 18 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 18 verbose stack     at EventEmitter.emit (events.js:314:20) 18 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 18 verbose stack     at ChildProcess.emit (events.js:314:20) 18 verbose stack     at maybeClose (internal/child_process.js:1047:16) 18 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) 19 verbose pkgid [email protected] 20 verbose cwd /Users/vkbalasub/meli/deployment/scripts 21 verbose Darwin 18.6.0 22 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" 23 verbose node v14.9.0 24 verbose npm  v6.14.8 25 error code ELIFECYCLE 26 error errno 2 27 error [email protected] build: tsc --p tsconfig.json && npm run copy-templates 27 error Exit status 2 28 error Failed at the [email protected] build script. 28 error This is probably not a problem with npm. There is likely additional logging output above. 29 verbose exit [ 2, true ]

Creating resource group ...Done. Done.

Deploying Azure services (this could take a while)...Done. Updating appsettings.json ...Done. /Users/vkbalasub/meli/deployment/scripts resetting log file You have 1 updates available. Consider updating your CLI installation with 'az upgrade' Get mandatory parameters westus 33886c4a9e6d438bb390e128ab5afcd3 meli-luisruntime-xtjipev en-us Initializing en-us dispatch model ...Done. Deploying LUIS apps

Directory: /Users/vkbalasub/meli/deployment/resources/LU/en-us

Mode LastWriteTime Length Name


----- 9/7/2020 2:27 PM 10341 general.lu ----- 9/7/2020 2:27 PM 10341 general.lu ----- 9/7/2020 2:27 PM 10341 general.lu Join-Path: /Users/vkbalasub/meli/deployment/scripts/luis_functions.ps1:4 Line | 4 | $outFile = Join-Path $luFile.DirectoryName "$($id).json" | ~~~~~~~~~~~~~~~~~~~~~ | Cannot bind argument to parameter 'Path' because it is null.

Converting en-us LU file ...Unexpected argument: meli_ See more help with --help (node:27549) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27549) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency Done. Deploying en-us LUIS app ...Unexpected argument: meli_ See more help with --help (node:27554) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27554) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency ! Could not deploy LUIS model. Review the log for more information. ! Log: -gov: /Users/vkbalasub/meli/deployment/scripts/deploy_cognitive_models.ps1:213 Line | 213 | -gov $gov ` | ~~~~ | The term '-gov' is not recognized as the name of a cmdlet, | function, script file, or operable program. Check the spelling | of the name, or if a path was included, verify that the path | is correct and try again.

Setting LUIS subscription key ...writing host to set subscription key ----- 9/7/2020 2:27 PM 10341 general.lu error ! Could not create LUIS app. Skipping dispatch add. Converting en-us chitchat QnA file ...Done. Deploying en-us chitchat QnA kb ...Done. inside qna details (node:27600) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27600) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (node:27605) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27605) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency Converting en-us faq QnA file ...Done. Deploying en-us faq QnA kb ...Done. Adding en-us faq kb to dispatch model ...Done. inside qna details (node:27638) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27638) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (node:27644) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27644) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency Creating en-us dispatch model ...Done. Setting LUIS subscription key ...Done. adding to config You have 1 updates available. Consider updating your CLI installation with 'az upgrade' WARNING: This command should normally be run in the same folder as the package.json for Node.js bots. When using 'az webapp deployment source config-zip' the package.json and web.config are usually in the same folder and at the root level of the .zip file. See 'az bot prepare-deploy --help'. npm WARN [email protected] No repository field.

up to date in 7.954s

39 packages are looking for funding run npm fund for details

[email protected] prebuild /Users/vkbalasub/meli npm run lint

[email protected] lint /Users/vkbalasub/meli eslint ./src/**/*.ts

/Users/vkbalasub/meli/src/adapters/defaultAdapter.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/authentication/allowedCallersClaimsValidator.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/bots/defaultActivityHandler.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/dialogs/mainDialog.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion 40:10 warning 'IBotSettings' is defined but never used @typescript-eslint/no-unused-vars 407:93 warning 'locale' is defined but never used @typescript-eslint/no-unused-vars

/Users/vkbalasub/meli/src/dialogs/onboardingDialog.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion 16:33 warning 'DialogContextEx' is defined but never used @typescript-eslint/no-unused-vars

/Users/vkbalasub/meli/src/models/stateProperties.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/models/userProfileState.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/services/botServices.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/services/botSettings.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

✖ 12 problems (0 errors, 12 warnings)

[email protected] build /Users/vkbalasub/meli tsc --p tsconfig.json && npm run copy-templates

error TS6059: File '/Users/vkbalasub/meli/deployment/scripts/src/index.ts' is not under 'rootDir' '/Users/vkbalasub/meli/src'. 'rootDir' is expected to contain all source files.

Found 1 error.

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] build: tsc --p tsconfig.json && npm run copy-templates npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/vkbalasub/.npm/_logs/2020-09-09T22_23_29_912Z-debug.log

Publishing to Azure ...Done. + Summary of the deployed resources: - Resource Group: meli - Bot Web App: meli-xtjipev - Microsoft App Id: 4e5c24e0-a0c6-4cb2-8d7e-9dea79bf7b7f - Microsoft App Password: Deployment complete. Test your deployed bot on the bot framework emulator with the following link (copy and paste link into windows -> run to open the emulator with your deployed bot configured) bfemulator://livechat.open?botUrl=https://meli-xtjipev.azurewebsites.net/api/messages&msaAppId=4e5c24e0-a0c6-4cb2-8d7e-9dea79bf7b7f&msaAppPassword=ConnectM@2MRA550!

connectmteam avatar Sep 09 '20 22:09 connectmteam

PS /Users/vkbalasub> az --version azure-cli 2.11.1 core 2.11.1 telemetry 1.0.5 * Python location '/usr/local/Cellar/azure-cli/2.11.1/libexec/bin/python' Extensions directory '/Users/vkbalasub/.azure/cliextensions' Python (Darwin) 3.8.5 (default, Jul 21 2020, 10:42:08) [Clang 11.0.0 (clang-1100.0.33.17)] I have not been able to run a Ludown command. Did not install anything specific. Please guide The same question around VA. This is my first bot and I am following the https://microsoft.github.io/botframework-solutions/index. Appreciate your patience. I have not used the most recent version of the script, but can see some differences right away from the download that I have from a few days ago. I had to debug the earlier script and see the luis invocation was failing as "bf" was not being used. Will clean up the environment once and run with the new script. Is there anything specific for the QnA deployment that needs to be done? Is there a new qna_functions.ps1 that I should use and also is there a latest deploy_cognitive_models.ps1 script?

I have gone ahead and installed the BF-CLI to get all the tools in place. However, have run into some errors on the install as below and have manually installed Luisgen using dotnet. Vinays-MacBook:~ root# npm install -g chatdown msbot ludown luis-apis qnamaker botdispatch luisgen npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142 npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see request/request#3142 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

[email protected] preinstall /usr/local/lib/node_modules/luisgen node dotnetpreinstall.js

This tool requires the Dotnet SDK 2.1 to be installed. Go to https://www.microsoft.com/net/download to install on your system. NOTE: You do not need to use npm to install this tool once you have the Dotnet SDK 2.1 installed. Instead you can simply use the dotnet install command to install. To install run: dotnet tool install -g LUISGen To uninstall run: dotnet tool uninstall -g LUISGen /usr/local/bin/dispatch -> /usr/local/lib/node_modules/botdispatch/bin/dispatch.js /usr/local/bin/chatdown -> /usr/local/lib/node_modules/chatdown/bin/chatdown.js /usr/local/bin/ludown -> /usr/local/lib/node_modules/ludown/bin/ludown /usr/local/bin/luis -> /usr/local/lib/node_modules/luis-apis/bin/luis.js /usr/local/bin/msbot -> /usr/local/lib/node_modules/msbot/bin/msbot.js /usr/local/bin/qnamaker -> /usr/local/lib/node_modules/qnamaker/bin/qnamaker.js

[email protected] install /usr/local/lib/node_modules/luisgen dotnet tool install -g LUISGen

Failed to create CoreCLR, HRESULT: 0x80004005 npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! [email protected] install: dotnet tool install -g LUISGen npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2020-09-09T19_46_53_499Z-debug.log

I am able to run the Ludown and Dispatch commands now directly. Let me try the deployment once again after cleaning up with the new Luis_functions script you provided.

I ran the deployment again and the script errored out while deploying the models. Log below -

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle [email protected]~prebuild: [email protected] 6 verbose lifecycle [email protected]~prebuild: unsafe-perm in lifecycle true 7 verbose lifecycle [email protected]~prebuild: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/vkbalasub/meli/node_modules/.bin:/usr/local/microsoft/powershell/7:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/vkbalasub/Library/Python/3.7/lib/python/site-packages:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Python/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools 8 verbose lifecycle [email protected]~prebuild: CWD: /Users/vkbalasub/meli 9 silly lifecycle [email protected]~prebuild: Args: [ '-c', 'npm run lint' ] 10 silly lifecycle [email protected]~prebuild: Returned: code: 0  signal: null 11 info lifecycle [email protected]~build: [email protected] 12 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true 13 verbose lifecycle [email protected]~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/vkbalasub/meli/node_modules/.bin:/usr/local/microsoft/powershell/7:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/vkbalasub/Library/Python/3.7/lib/python/site-packages:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Python/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools 14 verbose lifecycle [email protected]~build: CWD: /Users/vkbalasub/meli 15 silly lifecycle [email protected]~build: Args: [ '-c', 'tsc --p tsconfig.json && npm run copy-templates' ] 16 silly lifecycle [email protected]~build: Returned: code: 2  signal: null 17 info lifecycle [email protected]~build: Failed to exec build script 18 verbose stack Error: [email protected] build: tsc --p tsconfig.json && npm run copy-templates 18 verbose stack Exit status 2 18 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 18 verbose stack     at EventEmitter.emit (events.js:314:20) 18 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 18 verbose stack     at ChildProcess.emit (events.js:314:20) 18 verbose stack     at maybeClose (internal/child_process.js:1047:16) 18 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) 19 verbose pkgid [email protected] 20 verbose cwd /Users/vkbalasub/meli/deployment/scripts 21 verbose Darwin 18.6.0 22 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" 23 verbose node v14.9.0 24 verbose npm  v6.14.8 25 error code ELIFECYCLE 26 error errno 2 27 error [email protected] build: tsc --p tsconfig.json && npm run copy-templates 27 error Exit status 2 28 error Failed at the [email protected] build script. 28 error This is probably not a problem with npm. There is likely additional logging output above. 29 verbose exit [ 2, true ]

Creating resource group ...Done. Done.

Deploying Azure services (this could take a while)...Done. Updating appsettings.json ...Done. /Users/vkbalasub/meli/deployment/scripts resetting log file You have 1 updates available. Consider updating your CLI installation with 'az upgrade' Get mandatory parameters westus 33886c4a9e6d438bb390e128ab5afcd3 meli-luisruntime-xtjipev en-us Initializing en-us dispatch model ...Done. Deploying LUIS apps

Directory: /Users/vkbalasub/meli/deployment/resources/LU/en-us

Mode LastWriteTime Length Name

----- 9/7/2020 2:27 PM 10341 general.lu ----- 9/7/2020 2:27 PM 10341 general.lu ----- 9/7/2020 2:27 PM 10341 general.lu Join-Path: /Users/vkbalasub/meli/deployment/scripts/luis_functions.ps1:4 Line | 4 | $outFile = Join-Path $luFile.DirectoryName "$($id).json" | ~~~~~~~~~~~~~~~~~~~~~ | Cannot bind argument to parameter 'Path' because it is null.

Converting en-us LU file ...Unexpected argument: meli_ See more help with --help (node:27549) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27549) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency Done. Deploying en-us LUIS app ...Unexpected argument: meli_ See more help with --help (node:27554) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27554) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency ! Could not deploy LUIS model. Review the log for more information. ! Log: -gov: /Users/vkbalasub/meli/deployment/scripts/deploy_cognitive_models.ps1:213 Line | 213 | -gov $gov ` | ~~~~ | The term '-gov' is not recognized as the name of a cmdlet, | function, script file, or operable program. Check the spelling | of the name, or if a path was included, verify that the path | is correct and try again.

Setting LUIS subscription key ...writing host to set subscription key ----- 9/7/2020 2:27 PM 10341 general.lu error ! Could not create LUIS app. Skipping dispatch add. Converting en-us chitchat QnA file ...Done. Deploying en-us chitchat QnA kb ...Done. inside qna details (node:27600) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27600) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (node:27605) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27605) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency Converting en-us faq QnA file ...Done. Deploying en-us faq QnA kb ...Done. Adding en-us faq kb to dispatch model ...Done. inside qna details (node:27638) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27638) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (node:27644) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:27644) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency Creating en-us dispatch model ...Done. Setting LUIS subscription key ...Done. adding to config You have 1 updates available. Consider updating your CLI installation with 'az upgrade' WARNING: This command should normally be run in the same folder as the package.json for Node.js bots. When using 'az webapp deployment source config-zip' the package.json and web.config are usually in the same folder and at the root level of the .zip file. See 'az bot prepare-deploy --help'. npm WARN [email protected] No repository field.

up to date in 7.954s

39 packages are looking for funding run npm fund for details

[email protected] prebuild /Users/vkbalasub/meli npm run lint

[email protected] lint /Users/vkbalasub/meli eslint ./src/**/*.ts

/Users/vkbalasub/meli/src/adapters/defaultAdapter.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/authentication/allowedCallersClaimsValidator.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/bots/defaultActivityHandler.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/dialogs/mainDialog.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion 40:10 warning 'IBotSettings' is defined but never used @typescript-eslint/no-unused-vars 407:93 warning 'locale' is defined but never used @typescript-eslint/no-unused-vars

/Users/vkbalasub/meli/src/dialogs/onboardingDialog.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion 16:33 warning 'DialogContextEx' is defined but never used @typescript-eslint/no-unused-vars

/Users/vkbalasub/meli/src/models/stateProperties.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/models/userProfileState.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/services/botServices.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

/Users/vkbalasub/meli/src/services/botSettings.ts 1:1 warning Definition for rule '@typescript-eslint/no-object-literal-type-assertion' was not found @typescript-eslint/no-object-literal-type-assertion

✖ 12 problems (0 errors, 12 warnings)

[email protected] build /Users/vkbalasub/meli tsc --p tsconfig.json && npm run copy-templates

error TS6059: File '/Users/vkbalasub/meli/deployment/scripts/src/index.ts' is not under 'rootDir' '/Users/vkbalasub/meli/src'. 'rootDir' is expected to contain all source files.

Found 1 error.

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] build: tsc --p tsconfig.json && npm run copy-templates npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/vkbalasub/.npm/_logs/2020-09-09T22_23_29_912Z-debug.log

Publishing to Azure ...Done. + Summary of the deployed resources: - Resource Group: meli - Bot Web App: meli-xtjipev - Microsoft App Id: 4e5c24e0-a0c6-4cb2-8d7e-9dea79bf7b7f - Microsoft App Password: Deployment complete. Test your deployed bot on the bot framework emulator with the following link (copy and paste link into windows -> run to open the emulator with your deployed bot configured) bfemulator://livechat.open?botUrl=https://meli-xtjipev.azurewebsites.net/api/messages&msaAppId=4e5c24e0-a0c6-4cb2-8d7e-9dea79bf7b7f&msaAppPassword=ConnectM@2MRA550!

Reinstalled npm and all components and went through install with the latest luis_functions.ps1 script. Install went fine. Appreciate the support. Will seek help on any other issue on appropriate threads if there is a need.

connectmteam avatar Sep 10 '20 13:09 connectmteam

Glad to hear. Glad you got it working!!!

If you continue to have problems, please create a new issue on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.

dmvtech avatar Sep 11 '20 18:09 dmvtech