Closed Tanusree7 closed 3 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.
(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)
could you just confirm whether we can migrate php applications hosted on centos, to app service using this Linux installer?
Couple points on this:
Migration Assistant tool will help migrate containers - so you would need the php applications to be running as Docker containers already in order to use the azure-appService-migrationAssistant.tar.gz tool to migrate. Beyond that, it has been tested primarily on Debian installations, but should also work on CentOS. If you already have a docker container you can either use the Migration Assistant (installing the tool and using the UI), or an alternate approach such as by using just shell with Azure's multi-platform command line: AzureCLI (like this sample https://github.com/Azure/App-Service-Migration-Assistant/wiki/Using-Azure-CLI).
You can also migrate PHP applications to App Service without creating a container. For this option you would create a default blank Linux PHP site on App Service and then push just the site code. This can be done primarily using the browser without installing things locally. This page details how to do this with a sample app which creates a Linux site using Azure CLI (also called Azure Cloud Shell) and syncs the site content by way of a github repo: https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-php
Closing this issue due to lack of activity in last 90 days.
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:
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.