Cannot clone an aegir site

133 Views Asked by At

I am getting this error while cloning the site on aegir

Unknown option: --profile. See drush help provision-backup for available >options. To suppress this error, add the option --strict=0. [2.39 sec, 21.19 MB]

I am using aegir3 on ubuntu 14.04.4. Can anyone please help me solve this. I have searched on web but there is no solution regarding this issue. This issue also occurs while migrating.

2

There are 2 best solutions below

0
On

you might find more Aegir users at the new community support forum

http://ask.aegir.support/

I had a similar issue and found a solution there

0
On

I found that debugging Aegir issues was a lot easier if you executed the Drush commands directly.

You can find the command by looking through the Log Messages keeping an eye out for entries like

Backend invoke: /usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runti... (Expand)

enter image description here

Below entries like the above you will find the command that was executed, expand that by clicking the (Expand) and copy the command (I found sometimes the expand did not work, in cases like this I just use chrome tools to look at the source and copy it)

/usr/bin/php  -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off /var/aegir/.composer/vendor/drush/drush/drush.php --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off'  --backend=2 --yes @centosintranet provision-install-backend   --client_email='[email protected]' 2>&1

All you need to do now is run this as the Aegir user via bash. If you use the apt-get package to install Aegir you should be able to open a terminal and enter

sudo su - aegir -s /bin/bash

You will be prompted for your password, after entering it you will have a bash shell as the Aegir user. Paste in the above drush command and press enter.

Watch it execute, I found it easier to work out what was going on by removing the --backend=2 option. If you still can't see what the issue is try adding -vvv or --debug to the drush command.

Using this method I have solves all issues I have run into thus far when Aegir falls over.