我用(aegir3,drush 7.1.0,provision7.x-3.4,hostmaster 7.x-3.4)在debian服务器jessie上手动安装了aegir包,除备份功能外,一切都很顺利,下面是我所做的:
我激活了托管站点备份管理器模块,以自动备份我的网站。
*********我无法在/var/aegir中安装aegir(因为我对该服务器上的其他目录没有权限),但它安装了/production/my_aegir_user,该用户拥有所有aegir权限user*********
使用aegir安装新站点后,当备份任务运行时,它将失败,并显示以下日志:

Task starts processing: Backup: www.mydomain.com
-
Returned from hook drush_hosting_task_validate
-
Calling hook drush_hosting_alias_pre_hosting_task
-
Returned from hook drush_hosting_alias_pre_hosting_task
-
Calling hook drush_hosting_clone_pre_hosting_task
-
Returned from hook drush_hosting_clone_pre_hosting_task
-
Calling hook drush_hosting_migrate_pre_hosting_task
-
Returned from hook drush_hosting_migrate_pre_hosting_task
-
Calling hook drush_hosting_package_pre_hosting_task
-
Returned from hook drush_hosting_package_pre_hosting_task
-
Calling hook drush_hosting_remote_import_pre_hosting_task
-
Returned from hook drush_hosting_remote_import_pre_hosting_task
-
Calling hook drush_hosting_site_pre_hosting_task
-
Returned from hook drush_hosting_site_pre_hosting_task
-
Calling hook drush_hosting_site_backup_manager_pre_hosting_task
-
Returned from hook drush_hosting_site_backup_manager_pre_hosting_task
-
Calling hook drush_hosting_sync_pre_hosting_task
-
Returned from hook drush_hosting_sync_pre_hosting_task
-
Calling hook drush_hosting_task
1 s.
Loaded alias @www.mydomain.com from file /production/my_aegir_user/.drush/www.mydomain.com.alias.drushrc.php
-
Backend invoke: php /production/my_aegir_user/.composer/vendor/drush/drush/drush.php --backend=2 @www.mydomain.com provision-backup 2>&1
-
php /production/my_aegir_user/.composer/vendor/drush/drush/drush.php --backend=2 @www.mydomain.com provision-backup 2>&1
-
Bootstrap to phase 0.
-
Bootstrap to phase 1.
-
Drush bootstrap phase : bootstrap_drupal_root()
-
Loading drushrc "/production/my_aegir_user/platforms/template-uni-to/sites/all/drush/drushrc.php" into "drupal" scope.
-
Initialized Drupal 7.43 root directory at /production/my_aegir_user/platforms/template-uni-to
-
Find command files for phase 1 (max=1)
-
Cache HIT cid: 7.1.0-commandfiles-1-a127e16d6e2aa0bf2587b0cbe8d820d4
-
Found command: provision-backup (commandfile=provision)
-
Loaded alias @server_localhost from file /production/my_aegir_user/.drush/server_localhost.alias.drushrc.php
-
Loaded alias @server_master from file /production/my_aegir_user/.drush/server_master.alias.drushrc.php
-
Driver type not specified for the db service, provide it with --db_service_type
-
Loading apache driver for the http service
-
Driver type not specified for the remote_import service, provide it with --remote_import_service_type
-
Loading mysql driver for the db service
-
Driver type not specified for the http service, provide it with --http_service_type
-
Driver type not specified for the remote_import service, provide it with --remote_import_service_type
-
Loaded alias @platform_templateUniTo from file /production/my_aegir_user/.drush/platform_templateUniTo.alias.drushrc.php
-
Including /production/my_aegir_user/.drush/provision/db/backup.provision.inc
-
Including /production/my_aegir_user/.drush/provision/platform/backup.provision.inc
-
Calling hook drush_provision_drupal_provision_backup_validate
-
Drush bootstrap phase : bootstrap_drupal_site()
-
Loading drushrc "/production/my_aegir_user/platforms/template-uni-to/sites/www.mydomain.com/drushrc.php" into "site" scope.
-
Initialized Drupal site www.mydomain.com at sites/www.mydomain.com
-
Find command files for phase 2 (max=)
-
Cache HIT cid: 7.1.0-install_profile-c07b6dfdb3c6ead14c4903f1c5a39aca
-
Cache HIT cid: 7.1.0-commandfiles-2-cb52137e732e7de23aae2ebaea799bcb
-
Drush bootstrap phase : bootstrap_drupal_configuration()
-
Find command files for phase 3 (max=)
-
Returned from hook drush_provision_drupal_provision_backup_validate
-
Calling hook drush_db_pre_provision_backup
-
fopen(/production/my_aegir_user/platforms/template-uni-to/sites/www.mydomain.com/database.sql): failed to open stream: Permission denied mysql.php:227
-
Could not write database backup file mysqldump
-
filesize(): stat failed for /production/my_aegir_user/platforms/template-uni-to/sites/www.mydomain.com/database.sql mysql.php:263
-
Undefined variable: err mysql.php:265
-
Could not generate database backup from mysqldump. (error: )
-
Returned from hook drush_db_pre_provision_backup
-
Deleted mysql dump from sites directory
-
Changes made in drush_db_pre_provision_backup have been rolled back.
-
Command dispatch complete
-
Returned from hook drush_hosting_task
-
Invoking hosting_backup_task_rollback hooks.
-
Changes made in drush_hosting_task have been rolled back.
-
Command dispatch complete
-
Updated task status to "Failed"

****my aegir root is not /var/aegir, but it is at /production/my_aegir_user

最佳答案

主要错误似乎是:
fopen(/production/my_aegir_user/platforms/template uni to/sites/www.mydomain.com/database.sql):
无法打开流:权限被拒绝mysql.php:227
不过,可能还有其他原因。找到它的最佳方法是在调试模式下运行任务。
例如,作为“aegir”用户:

drush @example.org provision-backup --debug

附言:我偶然发现这个问题是因为我遇到了类似的问题。您可能有更好的机会在https://drupal.stackexchange.com/上获得回答(并用“aegir”标记您的问题)。

10-05 18:13