Drush 无法自动更新核心 Drupal 7 安装 - 为什么?
Drush silently fails to update core Drupal 7 installation - why?
出于某种原因,drush
报告核心 Drupal 安装从版本 7.56
成功升级到 7.58
,但它只是完成了部分工作!见下文。只更新几个文件,应该比所有核心modules/
文件都多很多,至少应该更新版本号。
在此之后,如果我再次 运行 drush status
它会给出相同的报告,所以在它告诉我之后:
Project drupal was updated successfully. Installed version is now 7.58.
我仍然看到我们仍在 7.56
。有任何想法吗?我已确保用户对 Temporary file directory path
和 Drush temp directory
有 rwx
权限,并使用 运行ning touch
进行测试以测试是否可以创建和读取文件。我怎样才能debug/resolve这个问题?
这是带有 --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]
"error_log" 文件没什么大不了的。也许线索就在那里...
这已通过使用选项 3 手动更新 Drupal 核心解决,见下文。
出于某种原因,drush
报告核心 Drupal 安装从版本 7.56
成功升级到 7.58
,但它只是完成了部分工作!见下文。只更新几个文件,应该比所有核心modules/
文件都多很多,至少应该更新版本号。
在此之后,如果我再次 运行 drush status
它会给出相同的报告,所以在它告诉我之后:
Project drupal was updated successfully. Installed version is now 7.58.
我仍然看到我们仍在 7.56
。有任何想法吗?我已确保用户对 Temporary file directory path
和 Drush temp directory
有 rwx
权限,并使用 运行ning touch
进行测试以测试是否可以创建和读取文件。我怎样才能debug/resolve这个问题?
这是带有 --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]
"error_log" 文件没什么大不了的。也许线索就在那里...
这已通过使用选项 3 手动更新 Drupal 核心解决,见下文。