Drush无声地无法更新核心Drupal 7安装 - 为什么?

时间:2018-04-04 13:09:39

标签: php drupal-7 drupal-modules drush

出于某种原因,drush报告将核心Drupal安装从版本7.56成功升级到7.58,但它只是部分完成了工作!见下文。只更新一些文件,应该比所有核心modules/文件更多,至少应该更新版本号。

在此之后,如果我再次运行drush status,它会提供相同的报告,所以在它告诉我之后:

  

项目drupal已成功更新。现在安装的版本是7.58。

我仍然看到我们留在7.56。有任何想法吗?我确保用户对rwxTemporary file directory path拥有Drush temp directory权限,并通过运行touch进行测试以测试可以创建和读取文件。如何调试/解决此问题?

enter image description here

以下是带有--verbose标志的更新的另一次运行(有关详细信息),这会产生相同的结果。不过,我在这里找不到问题。

[rootuser]:public_html$ drush pm-update drupal --verbose
Executing: mysql --defaults-extra-file=/tmp/drush_XlJ3hK --database=myapp9name --host=localhost --silent  < /tmp/drush_anVSdw
Executing: mysql --defaults-extra-file=/tmp/drush_bdl4sc --database=myapp9name --host=localhost --silent  < /tmp/drush_Jr6xnY
Loading release_info engine.                                                                   [notice]
Loading version_control engine.                                                                [notice]
Loading package_handler engine.                                                                [notice]
Executing: wget --version
Loading update_status engine.                                                                  [notice]
/usr/bin/php /home/master/.composer/vendor/drush/drush/drush.php --php=/usr/bin/php            [notice]
--backend=2 --verbose --root=/home/123456.myapps.com/myapp9name/public_html
--uri=http://default  pm-updatestatus drupal 2>&1
Update information last refreshed: Wed, 04/04/2018 - 13:38
 Name    Installed Version  Proposed version  Message                   
 Drupal  7.56               7.58              SECURITY UPDATE available 


Code updates will be made to drupal core.
WARNING:  Updating core will discard any modifications made to Drupal core files, most noteworthy among these are .htaccess and robots.txt.  If you have made any modifications to these files, please back them up before updating so that you can re-create your modifications in the updated version of the file.
Note: Updating core can potentially break your site. It is NOT recommended to update production sites without prior testing.

Do you really want to continue? (y/n): y
Executing: svn info /home/123456.myapps.com/myapp9name/public_html/drupal-7.58
Executing: bzr root /home/123456.myapps.com/myapp9name/public_html/drupal-7.58
/home/master/.drush/cache/download/https---ftp.drupal.org-files-projects-drupal-7.58.tar.gz    [notice]
retrieved from cache.
Downloading drupal-7.58.tar.gz was successful.                                                 [notice]
Md5 checksum of drupal-7.58.tar.gz verified.                                                   [notice]
Executing: tar  -C /tmp/drush_tmp_1522848874_5ac4d46a6a4a4 -xzf drupal-7.58.tar.gz
Executing: tar -tzf drupal-7.58.tar.gz
Project drupal was updated successfully. Installed version is now 7.58.
Backups were saved into the directory                                                       [ok]
/home/master/drush-backups/myapp9name/20180404133418/drupal.
Command dispatch complete                                                                      [notice]
/usr/bin/php /home/master/.composer/vendor/drush/drush/drush.php --php=/usr/bin/php            [notice]
--backend=2 --verbose --root=/home/123456.myapps.com/myapp9name/public_html
--uri=http://default  updatedb 2>&1
Executing: mysql --defaults-extra-file=/tmp/drush_ewbZAj --database=myapp9name --host=localhost --silent  < /tmp/drush_KTg0dp
Executing: mysql --defaults-extra-file=/tmp/drush_Shazn8 --database=myapp9name --host=localhost --silent  < /tmp/drush_RddgZd
No database updates required                                                                [success]
Command dispatch complete                                                                      [notice]
Command dispatch complete                                                                      [notice]

2 个答案:

答案 0 :(得分:1)

通过使用选项3手动更新Drupal核心解决了这个问题,见下文。

https://www.drupal.org/docs/7/update/core-option-3

答案 1 :(得分:0)

&#34; error_log&#34;文件。也许线索就在那里......