将Drupal版本从7.34更新为最新版本,但每次都获取错误消息“无法获取可用的更新数据”。因此无法更新。从数据库中清除缓存表的各种事项以及所有增加的执行时间和所有内容,但是没有用。请帮忙
答案 0 :(得分:0)
在过去的几个小时里,我一直在努力解决这个问题。我使用的更新方法是通过User
尝试将所有内容更新为最新版本。
我认为核心和/或其他模块正在更新,但在验证管理界面时无法获取X项目的可用更新数据错误消息。
对我来说,运行drush pm-update
会显示以下结果:
drush pm-update -v
运行vagrant@localhost:/var/www/web$ drush pm-update -v
Initialized Drupal 7.41 root directory at /opt/web [notice]
Initialized Drupal site default at sites/default [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_TwuPwr --database=dbname --host=localhost --silent < /tmp/drush_c6bIwC
Executing: mysql --defaults-extra-file=/tmp/drush_tzSPy5 --database=dbname --host=localhost --silent < /tmp/drush_CiqLxg
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/vagrant/.composer/vendor/drush/drush/drush.php --php=/usr/bin/php --backend=2 --verbose --root=/opt/web --uri=http://default pm-updatestatus 2>&1 [notice]
Update information last refreshed: 27 Oct
Name Installed Version Proposed version Message
Better Exposed Filters (better_exposed_filters) 7.x-3.2 7.x-3.2 Up to date
Date (date) 7.x-2.9 7.x-2.9 Up to date
Devel (devel) 7.x-1.5 7.x-1.5 Up to date
Display Suite (ds) 7.x-2.11 7.x-2.11 Up to date
Entity Reference (entityreference) 7.x-1.1 7.x-1.1 Up to date
features_extra 7.x-1.0 7.x-1.0 Up to date
Field collection (field_collection) 7.x-1.0-beta10 7.x-1.0-beta10 Up to date
jQuery Update (jquery_update) 7.x-3.0-alpha3 7.x-3.0-alpha3 Up to date
MultiBlock (multiblock) 7.x-1.4 7.x-1.4 Up to date
Reg With Pic (reg_with_pic) 7.x-1.0 7.x-1.0 Up to date
Search pages (search_api_page) 7.x-1.2 7.x-1.2 Up to date
Solr search (search_api_solr) 7.x-1.9 7.x-1.9 Up to date
simplehtmldom API (simplehtmldom) 7.x-1.12 7.x-1.12 Up to date
No code updates available. [ok]
Command dispatch complete [notice]
Command dispatch complete [notice]
可提供有关更新数据的更多详细信息:
drush pm-updatestatus -v
我可以从中看到很多vagrant@localhost:/var/www/web$ drush pm-updatestatus -v
Initialized Drupal 7.41 root directory at /opt/web [notice]
Initialized Drupal site default at sites/default [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_V95fLt --database=dbname --host=localhost --silent < /tmp/drush_R3mRJd
Executing: mysql --defaults-extra-file=/tmp/drush_EX6oPZ --database=dbname --host=localhost --silent < /tmp/drush_rlKjNJ
Loading outputformat engine. [notice]
Loading update_status engine. [notice]
Checking available update data ... [ok]
Checking available update data for Drupal. [ok]
Downloading release history from https://updates.drupal.org/release-history/drupal/7.x [notice]
Executing: wget --version
Executing: wget -q --timeout=30 -O /tmp/download_file8oKYNz https://updates.drupal.org/release-history/drupal/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/drupal/7.x [error]
Checking available update data for Better Exposed Filters (better_exposed_filters). [ok]
Downloading release history from https://updates.drupal.org/release-history/better_exposed_filters/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-better_exposed_filters-7.x retrieved from cache. [notice]
Checking available update data for Chaos tools (ctools). [ok]
Downloading release history from https://updates.drupal.org/release-history/ctools/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_file6oSaWv https://updates.drupal.org/release-history/ctools/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/ctools/7.x [error]
Checking available update data for Facet API (facetapi). [ok]
Downloading release history from https://updates.drupal.org/release-history/facetapi/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_fileHuM94a https://updates.drupal.org/release-history/facetapi/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/facetapi/7.x [error]
Checking available update data for Date (date). [ok]
Downloading release history from https://updates.drupal.org/release-history/date/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-date-7.x retrieved from cache. [notice]
Checking available update data for Devel (devel). [ok]
Downloading release history from https://updates.drupal.org/release-history/devel/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-devel-7.x retrieved from cache. [notice]
Checking available update data for Diff (diff). [ok]
Downloading release history from https://updates.drupal.org/release-history/diff/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_fileZvaTnA https://updates.drupal.org/release-history/diff/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/diff/7.x [error]
Checking available update data for Display Suite (ds). [ok]
Downloading release history from https://updates.drupal.org/release-history/ds/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-ds-7.x retrieved from cache. [notice]
Checking available update data for Entity API (entity). [ok]
Downloading release history from https://updates.drupal.org/release-history/entity/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_filenmNtZH https://updates.drupal.org/release-history/entity/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/entity/7.x [error]
Checking available update data for Entity Reference (entityreference). [ok]
Downloading release history from https://updates.drupal.org/release-history/entityreference/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-entityreference-7.x retrieved from cache. [notice]
Checking available update data for features_extra. [ok]
Downloading release history from https://updates.drupal.org/release-history/features_extra/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-features_extra-7.x retrieved from cache. [notice]
Checking available update data for Features (features). [ok]
Downloading release history from https://updates.drupal.org/release-history/features/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_fileVcZnYa https://updates.drupal.org/release-history/features/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/features/7.x [error]
Checking available update data for Field collection (field_collection). [ok]
Downloading release history from https://updates.drupal.org/release-history/field_collection/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-field_collection-7.x retrieved from cache. [notice]
Checking available update data for jQuery Update (jquery_update). [ok]
Downloading release history from https://updates.drupal.org/release-history/jquery_update/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-jquery_update-7.x retrieved from cache. [notice]
Checking available update data for Module filter (module_filter). [ok]
Downloading release history from https://updates.drupal.org/release-history/module_filter/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_file2k1kpX https://updates.drupal.org/release-history/module_filter/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/module_filter/7.x [error]
Checking available update data for MultiBlock (multiblock). [ok]
Downloading release history from https://updates.drupal.org/release-history/multiblock/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-multiblock-7.x retrieved from cache. [notice]
Checking available update data for Reg With Pic (reg_with_pic). [ok]
Downloading release history from https://updates.drupal.org/release-history/reg_with_pic/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-reg_with_pic-7.x retrieved from cache. [notice]
Checking available update data for Search API (search_api). [ok]
Downloading release history from https://updates.drupal.org/release-history/search_api/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_fileveChtP https://updates.drupal.org/release-history/search_api/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/search_api/7.x [error]
Checking available update data for Search API attachments (search_api_attachments). [ok]
Downloading release history from https://updates.drupal.org/release-history/search_api_attachments/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_fileQZQIGN https://updates.drupal.org/release-history/search_api_attachments/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/search_api_attachments/7.x [error]
Checking available update data for Search pages (search_api_page). [ok]
Downloading release history from https://updates.drupal.org/release-history/search_api_page/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-search_api_page-7.x retrieved from cache. [notice]
Checking available update data for Solr search (search_api_solr). [ok]
Downloading release history from https://updates.drupal.org/release-history/search_api_solr/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-search_api_solr-7.x retrieved from cache. [notice]
Checking available update data for simplehtmldom API (simplehtmldom). [ok]
Downloading release history from https://updates.drupal.org/release-history/simplehtmldom/7.x [notice]
/home/vagrant/.drush/cache/download/https---updates.drupal.org-release-history-simplehtmldom-7.x retrieved from cache. [notice]
Checking available update data for Views (views). [ok]
Downloading release history from https://updates.drupal.org/release-history/views/7.x [notice]
Executing: wget -q --timeout=30 -O /tmp/download_fileH8g7Uo https://updates.drupal.org/release-history/views/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72 [warning]
Failed to get available update data from https://updates.drupal.org/release-history/views/7.x [error]
Name Installed Version Proposed version Message
Better Exposed Filters (better_exposed_filters) 7.x-3.2 7.x-3.2 Up to date
Date (date) 7.x-2.9 7.x-2.9 Up to date
Devel (devel) 7.x-1.5 7.x-1.5 Up to date
Display Suite (ds) 7.x-2.11 7.x-2.11 Up to date
Entity Reference (entityreference) 7.x-1.1 7.x-1.1 Up to date
features_extra 7.x-1.0 7.x-1.0 Up to date
Field collection (field_collection) 7.x-1.0-beta10 7.x-1.0-beta10 Up to date
jQuery Update (jquery_update) 7.x-3.0-alpha3 7.x-3.0-alpha3 Up to date
MultiBlock (multiblock) 7.x-1.4 7.x-1.4 Up to date
Reg With Pic (reg_with_pic) 7.x-1.0 7.x-1.0 Up to date
Search pages (search_api_page) 7.x-1.2 7.x-1.2 Up to date
Solr search (search_api_solr) 7.x-1.9 7.x-1.9 Up to date
simplehtmldom API (simplehtmldom) 7.x-1.12 7.x-1.12 Up to date
Command dispatch complete
错误。
稍后修改
5分钟后重新运行simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72
会显示大量 [ok] ,而不是上面的 [错误] 或 [警告] 。验证管理员还显示了一条正面消息:检查了X项目的可用更新数据。
所以最后我认为这是一个更新细节可用性问题。