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

[Node.js, Azure Bot Service] Error trying to migrate bot

Open bpleao opened this issue 8 years ago • 26 comments

Bot Info

  • SDK Platform: Node.js
  • SDK Version: 3.14.0
  • Active Channels: Webchat, Direct Line, Skype
  • Deployment Environment: Azure App Service

Issue Description

I'm trying to migrate the bot to the new Azure service, but after clicking the migrate button and starting the process I get the following error message and the process stops: An error occurred: 500 An internal error occurred at the server.

bpleao avatar Feb 24 '18 00:02 bpleao

Do you have access to multiple azure subscriptions? We have a workaround on our troubleshooting guide that might help: https://docs.microsoft.com/en-us/bot-framework/bot-service-troubleshoot-general-problems#why-cant-i-migrate-my-bot Please review, and let us know if this workaround resolves the migration issue.

EricDahlvang avatar Feb 26 '18 18:02 EricDahlvang

@EricDahlvang, thanks, but I've tried the solution and it did not work. Only the error code changed from 500 to 400. Not sure if I've followed the guide exactly as described though. I don't know what "From the target directory" means in the instructions. I've added a guest user through Azure Active Directory, provided him with the proper roles and tried to migrate the bot using this user. Any further advice?

bpleao avatar Feb 27 '18 22:02 bpleao

The target directory is the directory to which the bot is being migrated, not the directory the bot is currently in.

EricDahlvang avatar Feb 28 '18 00:02 EricDahlvang

Ok, but then how do I know what is the target directory and, more important, how do I add a new user from this target directory as stated in the instructions?

bpleao avatar Feb 28 '18 10:02 bpleao

Go to https://aad.portal.azure.com and in the top right, choose the directory you are migrating the bot into (that is the target directory). Then on the left, choose Users and add a new user:

image

EricDahlvang avatar Feb 28 '18 17:02 EricDahlvang

I have no option to change directory in the top right: image

bpleao avatar Feb 28 '18 21:02 bpleao

This means that your user has access to just the one azure tenant. Do you see error details in the browser console? Also, please share your MicrosoftAppId and BotHandle, and I will investigate further.

EricDahlvang avatar Feb 28 '18 23:02 EricDahlvang

Indeed there are error details in browser console. It seems to be 17 repetitions of the same error. Here is the log: dev.botframework.com-1519903368390.log Microsoft App Id: e513659a-768f-4c0b-89cb-dd5b46d42d60 Bot Handle: consolador

Thanks!

bpleao avatar Mar 01 '18 11:03 bpleao

@EricDahlvang, any news on this topic? Thanks.

bpleao avatar Mar 07 '18 21:03 bpleao

@bpleao I apologize for the delayed response. It is not clear to me what the issue is with migrating your bot. I will escalate this today.

EricDahlvang avatar Mar 08 '18 21:03 EricDahlvang

Hi @bpleao, sorry about the inconvenience, we're seeing the issue in our logs and we're investigating. Will let you know as soon as we understand what's causing this.

Andrea-Orimoto avatar Mar 08 '18 23:03 Andrea-Orimoto

Hi @Andrea-Orimoto, any news on this?

bpleao avatar Mar 15 '18 11:03 bpleao

Hi @EricDahlvang, any news on this? I'm worried because we're getting close to the end of the month and I suppose my bot will stop working if I don't migrate it by then, right?

bpleao avatar Mar 18 '18 13:03 bpleao

Hi @bpleao, sorry about the delay, no news yet. If we can't unblock you in time, we will whitelist your bot until we fix your issue. Will be in touch soon.

Andrea-Orimoto avatar Mar 19 '18 22:03 Andrea-Orimoto

Hi @bpleao, can you contact me at [email protected], so we can discuss how to unblock you? thanks and sorry for the inconvenience.

Andrea-Orimoto avatar Mar 19 '18 23:03 Andrea-Orimoto

Hi @Andrea-Orimoto, just sent you an email. Thanks

bpleao avatar Mar 20 '18 01:03 bpleao

Hi, I'm also having the same issue migrating my bot to the new Azure service. When I clicked migrate button, I got the following error (code 400):

The operation is not permitted for namespace 'Microsoft.BotService'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'.

I also have only access to one azure tenant and the bot I have has the same specs as bpleao's bot. Should I send Andrea an email too?

Fujihita avatar Mar 22 '18 14:03 Fujihita

@Fujihita If you are still experiencing a problem with migration, please open a new issue. https://github.com/Microsoft/BotBuilder/issues/new

Closing this, as Andrea-Orimioto is handling it via email. Thanks Andrea!

EricDahlvang avatar Apr 11 '18 21:04 EricDahlvang

This is still open, we've put this on hold, but still looking at it. I'll follow up on this one.

Andrea-Orimoto avatar Apr 11 '18 22:04 Andrea-Orimoto

I have the same problem as @bpleao, sent an email to @Andrea-Orimoto with the details.

laidbackindustries avatar Apr 12 '18 12:04 laidbackindustries