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
75 stars 60 forks source link

Unable to launch app service migration assistant tool in CentOS 8.1 #33

Closed Tanusree7 closed 3 years ago

Tanusree7 commented 4 years ago

Investigative information

Please provide the following:

Repro steps

Provide the steps required to reproduce the problem:

Install on Linux 1.Download the azure-appService-migrationAssistant.tar.gz file to the machine 2.Confirm the file SHA matches the release notes SHA using command like: sha256sum azure-appService-migrationAssistant.tar.gz 3.Create (or pick) a directory where you want to place the tool, such as: mkdir DirectoryName 4.Unzip the file into that directory: tar -xzf azure-appService-migrationAssistant.tar.gz -C DirectoryName 5.Cd into the folder where you unzipped the tar.gz and launch the Migration Assistant using a command like: sudo azure-appService-migrationAssistant-1.0.5/azure-appservice-migrationassistant --no-sandbox

Expected behavior

The app mig tool ui is supposed to open. Not sure never used it for linux distribution.

Actual behavior

After I performed the last step and ran the command it's asking for certain libraries "error while loading shared libraries: libX11-xcb.so.1 cannot open shared object file: No such file or directory"

Known workarounds

Tried installing all the required libraries. Please, provide me information whether this tool can be used for linux distribution effortlessly or not. Since, this is in yet in preview.

Capture
krolson commented 4 years ago

Hi @Tanusree7, Thank you for reporting this!

The Migration Assistant Linux Preview is based on electron, and it sounds like this could be a known issue (see: https://github.com/electron/electron/issues/19205) with some Linux setups. The solution is to install a set of dependencies as outlined here: https://techoverflow.net/2018/06/05/how-to-fix-puppetteer-error-while-loading-shared-libraries-libx11-xcb-so-1-cannot-open-shared-object-file-no-such-file-or-directory/. Copying below for quick reference:

sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

Could you please try installing that set of items and see if it helps and/or confirm if you already installed all of those items in your troubleshooting? If the above works for you I will add a note about how to work around this error on the Linux Notes page.

krolson commented 4 years ago

(Also, in case you were not aware of this option, you could also use Azure CLI to move containers to App Service using just a command shell rather than a UI: https://github.com/Azure/App-Service-Migration-Assistant/wiki/Using-Azure-CLI)

krolson commented 4 years ago

could you just confirm whether we can migrate php applications hosted on centos, to app service using this Linux installer?

Couple points on this:

krolson commented 3 years ago

Closing this issue due to lack of activity in last 90 days.

krishna16101991 commented 2 years ago

Hello Krolson,

I was also getting above error but tried with your solution and this error is not there now.

but I am getting below now

(azure-appservice-migrationassistant:9300): Gtk-WARNING **: 14:28:45.358: cannot open display:

error