我正在使用Docker4Drupal项目在Docker中运行本地dev Drupal 8安装。我尝试运行drush将我的核心从Drupal8.2.4更新到Drupal8.2.6,并得到以下错误:
rmdir(/var/www/html/aadlorg/drupal-8.2.6/core/lib): Directory not empty filesystem.inc:150 [warning]
Destination directory /var/www/html/aadlorg/drupal-8.2.6 already exists. [error]
Updating project drupal failed. Attempting to roll back to previously installed version. [error]
rmdir(/var/www/html/aadlorg/drupal-8.2.6/core/modules): Directory not empty filesystem.inc:150 [warning]
Destination directory /var/www/html/aadlorg/drupal-8.2.6 already exists. [error]
Unable to move /home/www-data/drush-backups/drupal/20170303142739/drupal to [error]
/var/www/html/aadlorg/drupal-8.2.6.
Could not restore backup and rollback from failed upgrade. You will need to resolve manually. [error]
Backups were restored successfully. [ok]
Backups were restored successfully. [ok]
require_once(/var/www/html/aadlorg/core/includes/errors.inc): failed to open stream: No such file or [warning]
directory bootstrap.inc:562
[03-Mar-2017 14:32:40 UTC] PHP Fatal error: require_once(): Failed opening required '/var/www/html/aadlorg/core/includes/errors.inc' (include_path='.:') in /var/www/html/aadlorg/core/includes/bootstrap.inc on line 562
Fatal error: require_once(): Failed opening required '/var/www/html/aadlorg/core/includes/errors.inc' (include_path='.:') in /var/www/html/aadlorg/core/includes/bootstrap.inc on line 562
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: require_once(): Failed opening required '/var/www/html/aadlorg/core/includes/errors.inc'
(include_path='.:') in /var/www/html/aadlorg/core/includes/bootstrap.inc, line 562现在我的Drupal安装完全坏了:
Warning: require_once(autoload.php): failed to open stream: No such file or directory in /var/www/html/aadlorg/index.php on line 14
Fatal error: require_once(): Failed opening required 'autoload.php' (include_path='.:') in /var/www/html/aadlorg/index.php on line 14我以www数据用户的身份登录到容器中,所有目录都由该用户拥有。我做错什么了吗?我应该试着以根的方式运行drush吗?只是不使用drush更新核心?
发布于 2017-03-20 03:17:35
尝试使用docker4drupal的2.0版本,在为www-data用户安装的新版本drush中,以避免权限方面的潜在问题。
https://drupal.stackexchange.com/questions/230283
复制相似问题