Update module doesn't work correctly on Drupal 7

Created on 22 May 2023, over 1 year ago
Updated 24 May 2023, over 1 year ago

Problem/Motivation

Hello.

I found some issue with update module on my one site. It doesn't want to check and view available updates on Drupal 7.95 or 7.96:

There was a problem checking for available updates for Drupal. Check the available updates page for more information and to install missing updates.
There was a problem checking for available updates for your modules or themes. Check the available updates page for more information and to install missing updates.

Drupal watchdog doesn't record any error related to update module.
Some info from my PHP/NGINX logs on docker localhost:

php_1        | 192.168.176.8 -  22/May/2023:15:06:18 +0000 "POST /index.php" 200
nginx_1      | 192.168.176.5 - - [22/May/2023:15:07:18 +0000] "POST /batch?id=36984&op=do_nojs&op=do HTTP/1.1" 200 221 "https://test.docker.localhost/batch?op=start&id=36984" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
nginx_1      | 192.168.176.5 - - [22/May/2023:15:07:19 +0000] "POST /batch?id=36984&op=do_nojs&op=do HTTP/1.1" 200 242 "https://test.docker.localhost/batch?op=start&id=36984" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
nginx_1      | 192.168.176.5 - - [22/May/2023:15:07:20 +0000] "POST /batch?id=36984&op=do_nojs&op=do HTTP/1.1" 200 222 "https://test.docker.localhost/batch?op=start&id=36984" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
php_1        | 192.168.176.8 -  22/May/2023:15:07:20 +0000 "GET /index.php" 302
nginx_1      | 192.168.176.5 - - [22/May/2023:15:07:20 +0000] "GET /batch?id=36984&op=do_nojs&op=finished HTTP/1.1" 302 5 "https://test.docker.localhost/batch?op=start&id=36984" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
php_1        | 192.168.176.8 -  22/May/2023:15:07:20 +0000 "GET /index.php" 200
nginx_1      | 192.168.176.5 - - [22/May/2023:15:07:23 +0000] "GET /admin/reports/updates/update HTTP/1.1" 200 5181 "https://test.docker.localhost/batch?op=start&id=36984" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
nginx_1      | 192.168.176.5 - - [22/May/2023:15:07:23 +0000] "GET /js/admin_menu/cache/397119be3834ca5fcf5c8923cf17f044 HTTP/1.1" 200 24267 "https://test.docker.localhost/admin/reports/updates/update" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
💬 Support request
Status

Closed: works as designed

Version

7.0 ⚰️

Component
Update 

Last updated 11 days ago

  • Maintained by
  • 🇺🇸United States @tedbow
  • 🇺🇸United States @dww
Created by

🇺🇦Ukraine ankondrat4 Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ankondrat4
  • That seems more likely an issue on your end with the Docker container setup than a bug in Drupal.

  • 🇺🇦Ukraine ankondrat4 Lutsk

    cilefen, I thought as you firstly, but this issue reproduces on 2 different environments for working too except Docker container(((

  • 🇺🇦Ukraine ankondrat4 Lutsk

    Hello.

    I figured out that it doesn't relate to Drupal core 7.95-7.96. It some bug in database or in configurations, because I rollback by my git to 7,82 version of Drupal core with old database for it and have the same issue:

    There was a problem checking for available updates for Drupal. Check the available updates page for more information and to install missing updates.
    There was a problem checking for available updates for your modules or themes. Check the available updates page for more information and to install missing updates.
    
    No version available
    
    Failed to retrieve update information for 3 projects.
    

    Maybe whoes has idea for resolve this issue?

  • 🇺🇦Ukraine ankondrat4 Lutsk

    I have tried many variants, but nothing help me(
    But if I try to check by drush:
    drush pm-updatestatus --security-only then it views information.
    I am confused how it works

  • Can the container resolve and reach the updates feed URL?

  • 🇺🇦Ukraine ankondrat4 Lutsk

    I have checked php and nginx container and saw that it can reach updates:

    wodby@php.container:/var/www/html $ curl -I https://updates.drupal.org/release-history
    HTTP/2 200 
    server: nginx
    content-type: text/xml; charset=utf-8
    via: 1.1 varnish, 1.1 varnish
    accept-ranges: bytes
    date: Tue, 23 May 2023 14:35:49 GMT
    age: 541184
    x-served-by: cache-bfi-krnt7300051-BFI, cache-fra-eddf8230117-FRA
    x-cache: MISS, HIT
    x-cache-hits: 0, 1
    x-timer: S1684852549.477565,VS0,VE1
    permissions-policy: interest-cohort=()
    content-length: 121
    
    
    /var/www/html$ curl -I https://updates.drupal.org/release-history
    HTTP/2 200 
    server: nginx
    content-type: text/xml; charset=utf-8
    via: 1.1 varnish, 1.1 varnish
    accept-ranges: bytes
    date: Tue, 23 May 2023 14:37:56 GMT
    age: 541311
    x-served-by: cache-bfi-krnt7300051-BFI, cache-fra-eddf8230041-FRA
    x-cache: MISS, HIT
    x-cache-hits: 0, 1
    x-timer: S1684852677.940941,VS0,VE2
    permissions-policy: interest-cohort=()
    content-length: 121
    
  • Can PHP?

    Beyond that you will have to debug.

  • 🇧🇪Belgium BramDriesen Belgium 🇧🇪
  • 🇧🇪Belgium BramDriesen Belgium 🇧🇪

    Duplicate of 💬 Module updates fail with “File Transfer failed, reason: Cannot copy” Active ? I see the same user + issue and logs there as well.

  • 🇺🇦Ukraine ankondrat4 Lutsk

    BramDriesen this is not dublicate. These are different issues, because in #3360472 user remove some modules and got error with updates.

  • 🇺🇦Ukraine ankondrat4 Lutsk

    Hello.

    cilefen, thank you for support.

    I have found RC of this issue and want to share to other users.
    This is an old bug on Drupal site and not related to current or previous core updates.
    We couldn’t understand why UI update module didn’t render results, but in the same time after did command drush pm-updatestatus in terminal we got results of available updates.
    After some time of investigation and debugging of update module, we found a strange proxy server on project 172.24.8.4. But we don't use proxy server and configurations for it on this project.
    That’s why update module can’t get available information about updates from drupal.org.

    As a result, we removed variable with proxy_server, truncated cache_update and re-run checking of updates. We got actually information about available updates.

    Than you for attention, I will close this ticket.

  • Assigned to ankondrat4
  • Status changed to Closed: won't fix over 1 year ago
  • Issue was unassigned.
  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024