首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Docker中的Drush核心更新失败

Docker中的Drush核心更新失败
EN

Drupal用户
提问于 2017-03-03 15:34:16
回答 1查看 268关注 0票数 2

我正在使用Docker4Drupal项目在Docker中运行本地dev Drupal 8安装。我尝试运行drush将我的核心从Drupal8.2.4更新到Drupal8.2.6,并得到以下错误:

代码语言:javascript
运行
复制
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安装完全坏了:

代码语言:javascript
运行
复制
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更新核心?

EN

回答 1

Drupal用户

发布于 2017-03-20 03:17:35

尝试使用docker4drupal的2.0版本,在为www-data用户安装的新版本drush中,以避免权限方面的潜在问题。

票数 1
EN
页面原文内容由Drupal提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://drupal.stackexchange.com/questions/230283

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档