Azure / App-Service-Migration-Assistant

Azure Websites Migration Assistant for Windows is a tool that allows customers to move their existing sites hosted on IIS servers into the cloud on Azure App Service. For more information check out https://appmigration.microsoft.com .
https://appmigration.microsoft.com
MIT License
74 stars 60 forks source link

Web App Migration hangs at 10% in portal. White page on web server app migration tool #44

Closed lsgordon78 closed 3 years ago

lsgordon78 commented 3 years ago

Hang

Investigative information

Please provide the following:

Repro steps

Provide the steps required to reproduce the problem:

Expected behavior

Provide a description of the expected behavior.

Actual behavior

Provide a description of the actual behavior observed.

Known workarounds

Provide a description of any known workarounds.

lsgordon78 commented 3 years ago

Attached image shows where the tool is at right before it goes white.

lsgordon78 commented 3 years ago

white

krolson commented 3 years ago

Hello @lsgordon78

This looks a like an issue that was fixed in the most recent (Preview) version. Could you try using the latest 1.0.8 version and let us know if that does not resolve this issue for you?

As an alternative you have the option to complete the migration for this site manually - this is outlined a bit in comments in https://github.com/Azure/App-Service-Migration-Assistant/issues/31, but to summarize:

  1. the site has been created and your content was zipped and should be in a location similar to this one (with your username/sitename and different numbers at the end): C:\Users[username]\AppData\Local\Temp[siteName]_1234567890123.zip", locate it (or you can create the zip using command noted in that linked issue)
  2. Go to the "scm" for the site you created during the migration: YourSiteName.scm.azurewebsites.net
  3. Click on "Debug Console" and choose either the CMD or PowerShell option to get to the file content view
  4. You should see 2 folders listed: "LogFiles" and "Site". Drag the .zip file over the folders list in the browser and a blue square should appear with the text "Drag here to unload and unzip" - release the .zip there. Once that unzips your site content should then be placed (and you can check it here by clicking Site folder, then wwwroot to see site contents. You should also now be able to browse your site at YourSiteName.azurewebsites.net.
lsgordon78 commented 3 years ago

Thanks for the feedback, I’ll try this out and reply with my results as soon as I can.

From: krolson notifications@github.com Sent: Friday, November 20, 2020 12:05 PM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Gordon, Sam Sam.Gordon@gdit.com; Mention mention@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] Web App Migration hangs at 10% in portal. White page on web server app migration tool (#44)

[External: Use caution with links & attachments]

Hello @lsgordon78https://urldefense.us/v2/url?u=https-3A__github.com_lsgordon78&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=6VoQG07Cs4rj-GT7EDOW_IS-JdNrK4JXWpf4mLe7tXc&e=

This looks a like an issue that was fixed in the most recent (Preview) version. Could you try using the latest 1.0.8 version and let us know if that does not resolve this issue for you?

As an alternative you have the option to complete the migration for this site manually - this is outlined a bit in comments in #31https://urldefense.us/v2/url?u=https-3A__github.com_Azure_App-2DService-2DMigration-2DAssistant_issues_31&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=aZEIDVp9SdbbMKlwHRMavJ86r_8YaOBZIVb4iybeVVA&e=, but to summarize:

  1. the site has been created and your content was zipped and should be in a location similar to this one (with your username/sitename and different numbers at the end): C:\Users[username]\AppData\Local\Temp[siteName]_1234567890123.zip", locate it (or you can create the zip using command noted in that linked issue)
  2. Go to the "scm" for the site you created during the migration: YourSiteName.scm.azurewebsites.net
  3. Click on "Debug Console" and choose either the CMD or PowerShell option to get to the file content view
  4. You should see 2 folders listed: "LogFiles" and "Site". Drag the .zip file over the folders list in the browser and a blue square should appear with the text "Drag here to unload and unzip" - release the .zip there. Once that unzips your site content should then be placed (and you can check it here by clicking Site folder, then wwwroot to see site contents. You should also now be able to browse your site at YourSiteName.azurewebsites.net.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.us/v2/url?u=https-3A__github.com_Azure_App-2DService-2DMigration-2DAssistant_issues_44-23issuecomment-2D731324399&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=S6rTP2dIYST0BC_w4n9rGR8dnzeDopKlFNn9SdMDE8s&e=, or unsubscribehttps://urldefense.us/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AR2QWZEFOQAKILJQ7G2R3C3SQ2VT3ANCNFSM4T42TFHA&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=4Y2ogntdR5lAtExw3zWkh8-weKl-oy8azpqjEq2RFcg&e=.

lsgordon78 commented 3 years ago

I updated to 1.0.8 and kicked off the migration. After about 30 mins I have this error AzureWebMigrate

krolson commented 3 years ago

Hi @lsgordon78, I'm sorry this happened to you!

Based on your description it looks like the Creating site resources operation was taking an unusually long time (over 30 minutes rather than a more typical under 10). I believe the token the tool uses to talk to Azure is usually granted for 1 hour, so if it is more than 1 hour from when you go through the login to when publishing site content step starts, then calls to do things like check the deployment status will start failing. I suspect if you try again it might succeed - as that kind of very long amount of time in "Creating site resources" seems really abnormal and thus may have been a one-off (definitely let me know if this is happening to you repeatedly!) - I'd expect the content publish step to be the one that takes a long time (and that step only needs the token right at the beginning to get your publishing credentials, so a long time should be okay there). Note that if you click back to Choose a Site step in the left menu you can re-select your site and click through to refresh the token and not have to re-enter your Azure Option selections.

Was this by chance creating a new app service plan on an ASE (dedicated App Service Environment)? That is a case that can take 30-60 minutes as it provisions new machines to the ASE environment - in that case if you were to retry after the new server farm was created (click back to first step to refresh login and get back to Azure Options page with most of your selections remembered) - you should be able to pick a new site name and complete the migration with the new serverfarm.

lsgordon78 commented 3 years ago

At Step 4 I don’t have the option to unload and unzip. Please see image. Is there another option?

[cid:image001.png@01D6C979.D0F262A0]

From: krolson notifications@github.com Sent: Friday, November 20, 2020 12:05 PM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Gordon, Sam Sam.Gordon@gdit.com; Mention mention@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] Web App Migration hangs at 10% in portal. White page on web server app migration tool (#44)

[External: Use caution with links & attachments]

Hello @lsgordon78https://urldefense.us/v2/url?u=https-3A__github.com_lsgordon78&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=6VoQG07Cs4rj-GT7EDOW_IS-JdNrK4JXWpf4mLe7tXc&e=

This looks a like an issue that was fixed in the most recent (Preview) version. Could you try using the latest 1.0.8 version and let us know if that does not resolve this issue for you?

As an alternative you have the option to complete the migration for this site manually - this is outlined a bit in comments in #31https://urldefense.us/v2/url?u=https-3A__github.com_Azure_App-2DService-2DMigration-2DAssistant_issues_31&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=aZEIDVp9SdbbMKlwHRMavJ86r_8YaOBZIVb4iybeVVA&e=, but to summarize:

  1. the site has been created and your content was zipped and should be in a location similar to this one (with your username/sitename and different numbers at the end): C:\Users[username]\AppData\Local\Temp[siteName]_1234567890123.zip", locate it (or you can create the zip using command noted in that linked issue)
  2. Go to the "scm" for the site you created during the migration: YourSiteName.scm.azurewebsites.net
  3. Click on "Debug Console" and choose either the CMD or PowerShell option to get to the file content view
  4. You should see 2 folders listed: "LogFiles" and "Site". Drag the .zip file over the folders list in the browser and a blue square should appear with the text "Drag here to unload and unzip" - release the .zip there. Once that unzips your site content should then be placed (and you can check it here by clicking Site folder, then wwwroot to see site contents. You should also now be able to browse your site at YourSiteName.azurewebsites.net.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.us/v2/url?u=https-3A__github.com_Azure_App-2DService-2DMigration-2DAssistant_issues_44-23issuecomment-2D731324399&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=S6rTP2dIYST0BC_w4n9rGR8dnzeDopKlFNn9SdMDE8s&e=, or unsubscribehttps://urldefense.us/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AR2QWZEFOQAKILJQ7G2R3C3SQ2VT3ANCNFSM4T42TFHA&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=4Y2ogntdR5lAtExw3zWkh8-weKl-oy8azpqjEq2RFcg&e=.

lsgordon78 commented 3 years ago

Correction update!

I was able to drag the zip file and noticed the advertised message but the file doesn’t appear to unzip or proceed to the next step. See image

[cid:image001.png@01D6C97B.980C1F60]

From: krolson notifications@github.com Sent: Friday, November 20, 2020 12:05 PM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Gordon, Sam Sam.Gordon@gdit.com; Mention mention@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] Web App Migration hangs at 10% in portal. White page on web server app migration tool (#44)

[External: Use caution with links & attachments]

Hello @lsgordon78https://urldefense.us/v2/url?u=https-3A__github.com_lsgordon78&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=6VoQG07Cs4rj-GT7EDOW_IS-JdNrK4JXWpf4mLe7tXc&e=

This looks a like an issue that was fixed in the most recent (Preview) version. Could you try using the latest 1.0.8 version and let us know if that does not resolve this issue for you?

As an alternative you have the option to complete the migration for this site manually - this is outlined a bit in comments in #31https://urldefense.us/v2/url?u=https-3A__github.com_Azure_App-2DService-2DMigration-2DAssistant_issues_31&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=aZEIDVp9SdbbMKlwHRMavJ86r_8YaOBZIVb4iybeVVA&e=, but to summarize:

  1. the site has been created and your content was zipped and should be in a location similar to this one (with your username/sitename and different numbers at the end): C:\Users[username]\AppData\Local\Temp[siteName]_1234567890123.zip", locate it (or you can create the zip using command noted in that linked issue)
  2. Go to the "scm" for the site you created during the migration: YourSiteName.scm.azurewebsites.net
  3. Click on "Debug Console" and choose either the CMD or PowerShell option to get to the file content view
  4. You should see 2 folders listed: "LogFiles" and "Site". Drag the .zip file over the folders list in the browser and a blue square should appear with the text "Drag here to unload and unzip" - release the .zip there. Once that unzips your site content should then be placed (and you can check it here by clicking Site folder, then wwwroot to see site contents. You should also now be able to browse your site at YourSiteName.azurewebsites.net.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.us/v2/url?u=https-3A__github.com_Azure_App-2DService-2DMigration-2DAssistant_issues_44-23issuecomment-2D731324399&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=S6rTP2dIYST0BC_w4n9rGR8dnzeDopKlFNn9SdMDE8s&e=, or unsubscribehttps://urldefense.us/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AR2QWZEFOQAKILJQ7G2R3C3SQ2VT3ANCNFSM4T42TFHA&d=DwMCaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=iCZDESt3rsvynJq60K4fZBrxlWjNale3Mc9UxP4aCg8&m=G98AGNma6A99xQ3FX92QcIWXMxw5AfkDN4ZorYlwQGI&s=4Y2ogntdR5lAtExw3zWkh8-weKl-oy8azpqjEq2RFcg&e=.

krolson commented 3 years ago

Hi @lsgordon78 ,

I am afraid I am not able to view the images you've sent. :^(

I wonder if it may be that (especially with larger .zips) it takes some time for them to unzip and there is just a small visual indicator, a little moving tool icon in the upper right, so: Right before dropping .zip: image

Right after but before unzipping complete: image

That little icon should appear after you release the zip and have some movement to it, and may even show a percentage complete indicator, but until it is 100% you may not see the actual folders and files appear in the directory view, and it could take a few minutes for the unzipping and file placement to complete.

lsgordon78 commented 3 years ago

Thank you very much for the assistance through this migration. This has been my first attempt at using this tool. I have successfully imported and unzipped the file. The website is working perfectly ! I have several more over the course of this year and in to 2021. My latest concern would be the automated method of the migration and looking into why that isn’t working. At least we have a manual process working. Thanks again! Happy to have this community git hub to get me through it.

From: krolson notifications@github.com Sent: Thursday, December 3, 2020 2:04 PM To: Azure/App-Service-Migration-Assistant App-Service-Migration-Assistant@noreply.github.com Cc: Gordon, Sam Sam.Gordon@gdit.com; Mention mention@noreply.github.com Subject: Re: [Azure/App-Service-Migration-Assistant] Web App Migration hangs at 10% in portal. White page on web server app migration tool (#44)

[External: Use caution with links & attachments]

Hi @lsgordon78https://urldefense.us/v3/__https:/github.com/lsgordon78__;!!JRQnnSFuzw7wjAKq6ti6!jwCbNVWGCLf3qpNM66R-Jcotjl0MMKdY9PndmATRnMxZJO9LYTNXIzLx80kBmYY$ ,

I am afraid I am not able to view the images you've sent. :^(

I wonder if it may be that (especially with larger .zips) it takes some time for them to unzip and there is just a small visual indicator, a little moving tool icon in the upper right, so: Right before dropping .zip: [image]https://urldefense.us/v3/__https:/user-images.githubusercontent.com/4675080/101081805-6a81f880-355f-11eb-8548-c8b8119540f9.png__;!!JRQnnSFuzw7wjAKq6ti6!jwCbNVWGCLf3qpNM66R-Jcotjl0MMKdY9PndmATRnMxZJO9LYTNXIzLxT1N4zZM$

Right after but before unzipping complete: [image]https://urldefense.us/v3/__https:/user-images.githubusercontent.com/4675080/101081287-b84a3100-355e-11eb-8fe6-c4d1ba20da24.png__;!!JRQnnSFuzw7wjAKq6ti6!jwCbNVWGCLf3qpNM66R-Jcotjl0MMKdY9PndmATRnMxZJO9LYTNXIzLxSYjkwwE$

That little icon should appear after you release the zip and have some movement to it, and may even show a percentage complete indicator, but until it is 100% you may not see the actual folders and files appear in the directory view, and it could take a few minutes for the unzipping and file placement to complete.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/Azure/App-Service-Migration-Assistant/issues/44*issuecomment-738275849__;Iw!!JRQnnSFuzw7wjAKq6ti6!jwCbNVWGCLf3qpNM66R-Jcotjl0MMKdY9PndmATRnMxZJO9LYTNXIzLx7weT3oo$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/AR2QWZGP6RJLKKFNOYIDOZ3SS7VJRANCNFSM4T42TFHA__;!!JRQnnSFuzw7wjAKq6ti6!jwCbNVWGCLf3qpNM66R-Jcotjl0MMKdY9PndmATRnMxZJO9LYTNXIzLxL-oTc7U$.

krolson commented 3 years ago

Closing this issue due to lack of activity in last 90 days. Please open a new issue if you are experiencing a similar issue.