I'm not sure whether update status ever worked for me. But I know it hasn't been working for some time. It kept on asking me to check manually (or run cron), and nothing happened when doing so. Recently I updated the module to check whether that would help. And, somewhat, it did. Now, when checking manually, the following error message is printed:

"Unable to fetch any information on available new releases and updates."

Unfortunately, I have no idea why this is so, or how to fix it. Any ideas?

CommentFileSizeAuthor
#6 update_status_fetch_timeout.patch.txt745 bytesdww

Comments

fm’s picture

Since the last update, I've been having problems with the Drupal installation on my public site, but not on my local dev site.

Upon manual update, the public site throws the following errors:

Safari could not open the page “http://****/admin/logs/updates/check” because the server stopped responding.

and

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@****.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I checked Drupal's recent logs and no error was indicated, despite the consistent in ability to resolve the page after a manual update.

ica’s picture

Yep, i confirm identical problem here too
"Safari could not open the page “http://***.com/site/admin/logs/updates/check?destination=admin%2Fbuild%2Fmodules” because the server stopped responding"
its a blank page on firefox

also started to get %2 instead of / slashes
/admin/logs/updates/check?destination=admin%2Fbuild%2Fmodule

not sure its related or not but i can not cron from modules panel

/admin/logs/updates/check?destination=admin%2Fbuild%2Fmodules

and identical message as above on blank screen
"...server stopped responding"
again not sure its related to infamous
Drupal - The White Screen of Death
http://drupal.org/node/158043
http://drupal.org/node/31819
I increased settings.php memory but ot php.ini as no access on a shared server
and .htaccess as the articles suggested
but that did not help and the blank page remains as explained above

not sure its a bug or not on the newest version of update_status.module any similar experience or pointing to a fix appreciated
thanks

fm’s picture

This is still a problem for me. Anyone discover a solution yet? ... or perhaps even just the cause?

fm’s picture

It would be kinda cool if the developer at least acknowledged this issue.

ica’s picture

"It would be kinda cool if the developer at least acknowledged this issue."

- it might be reason that this issue not addressed because the issue posted as 'support' rather than a 'bug' and therefore might not be a priority... - cases like this its difficult to define as a 'bug' or the dysfunction related to something else

maybe the issue needs to re-posted as a 'bug'

dww’s picture

Status: Active » Needs review
StatusFileSize
new745 bytes

no, the reason is because merlinofchaos and i are way too over-committed with too many things, and we can't always deal with every issue. plus, i was just off-line for over a week due to a sudden death in my family, and i'm still catching up on crap that piled up while i was gone.

the first thing that comes to mind is the php timeout limit. apply the attached patch and try fetching manually again. if your site is running in PHP's safe_mode, you're screwed, and will have to change this limit in php.ini. see http://us2.php.net/manual/en/function.set-time-limit.php for more.

please report back here and let me know how it goes. if this helps, we can commit a change like this to the official code.

plantucha’s picture

Doesn't work for me. I can' go to available updates in logs. Cron always failed. I tried downgrade, but it doesn't help. Which leftover tables do I have to manually erase? I wanna install update status module from zero.

ica’s picture

Just a report back

i have applied the dww's patch and i was be able manually run the cron via (something was not working before like the original poster issue here)
/admin/build/modules

but still 'check manually' on

admin/logs/updates/check?destination=admin%2Fbuild%2Fmodules
leads a (on safari, different on each browser for the same)
Safari could not open the page “http://www.movimientos.org.uk/sitio/admin/logs/updates/check?destination...” because the server stopped responding.

meanwhile i also installed a Drupal 6 beta on a testbed on a new db - to test this issue -as 'update status' is in the core of the 6 and experienced the same
admin/logs/status/run-cron
and on
logs/updates/check?destination=admin%2Flogs%2Fstatus
...could not open the page “/admin/logs/status/run-cron” because the server stopped responding.

so that might mean the problem may not lie with the Update status 5.x-2.0 and this issue will be exist on version 6 too with the 'php timeout limit'
btw- the site i test runs on PHP's safe_mode OFF

also i a not sure why i get '%2F' URL-encode for space on the URL's on cron and update links could it be part of the issue?

kelvinwong’s picture

I got the same problem, then I found out that I got error when fsockopen() is called in drupal_http_request(). So I do a search on google and run a magic command on my server, then it works.
setsebool -P httpd_can_network_connect 1
Don't ask me why, I have no idea how it could fix my problem and I have no idea what that command does but I hope it would help somebody to understand the problem more.

dww’s picture

Version: 5.x-2.0-rc2 » 5.x-2.x-dev
Component: User interface » Documentation
Category: support » task
Priority: Normal » Critical
Status: Needs review » Active

@KelvinWong: very interesting, thanks for sharing. Yes, if your httpd is configured such that it can't make outbound network connections, update_status certainly can't work, since it depends on your httpd initiating a connection (to perform the http request) back to the updates.drupal.org server to fetch information about available releases. Looks like we need to put information about this into the help text, README, etc. Thanks!

dww’s picture

Component: Documentation » User interface
Category: task » bug
Priority: Critical » Normal

Oh, and we should check the return value of drupal_http_request(), and if it failed, print a useful error message about it (and log it to watchdog()), in the hopes of informing the site admin why it's not working. I don't know if it's possible to query the httpd configuration from within php, but perhaps we could even add a check for this to the status report?

Can any of the other folks reporting this problem confirm their httpd configuration, and see if the above command solves the problem (assuming you're on a linux server)?

Thanks!
-Derek

dww’s picture

See also http://drupal.org/node/196535 about fixing this in D6 core's update.module...

dww’s picture

Status: Active » Patch (to be ported)

The core patch landed with more far-reaching changes. However, we could probably harvest some of that goodness and make it specific to this module. Perhaps someone wants to attempt a backport? At the very least, I guess we should add some of the text that made it into core's INSTALL.txt into update_status's README.txt.

Also, is #6 worth committing anyway, just to be on the safe side?

dww’s picture

Status: Patch (to be ported) » Fixed

Ok, committed a small "REQUIREMENTS" section to the README.txt. That's all I have energy for in here.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

allella’s picture

I also found the message was being generated by fsockopen not resolving the DNS for updates.drupal.org This started happening after the Linux server was migrated from one IP to a new IP.

A temporary fix for Linux was to update /etc/hosts to include a static entry for

140.211.166.6 updates.drupal.org

In the end, updating the nameservers in /etc/resolv.conf seemed to do the trick for good. The server can now ping updates.drupal.org and the manual update status checks are working.

yasheshb’s picture

we had a similar problem today.. our isp changed their dns servers and we had to update our /etc/resolv.conf files. our simplefeed curl was breaking down
and so was drupal update status check.

so we restarted our machine -
$ shutdown -r now and it worked fine.

yashesh

sanalkumarp’s picture

I installed version 6.10 today and cannot see the q=admin node. I can see all other admin nodes, although they are slow. I see a "Unable to fetch any information about available new releases and updates." in the watchdog table. Looks like my node is timing out and I'm getting a blank page. I commented some of the code to isolate the problem. This solves the issue, but of course this is not the solution (It works for me though). I'm new to drupal, but I hope this gives some ideas as what could be wrong.

module: update.fetch.inc
function: _update_refresh()
code snippet:

/*
foreach ($projects as $key => $project) {
$url = _update_build_fetch_url($project, $site_key);
$xml = drupal_http_request($url);
if (isset($xml->data)) {
$data[] = $xml->data;
}
}
*/

Thanks
Sanal

evilrob’s picture

Just in case this helps anyone else who's in a similar situation;

I got a whole slew of these errors when trying to set up a new drupal install. Even more curiously they suddenly turned into success this evening.

Turns out that it was adding an /etc/resolv.conf into the chroot gaol that the webserver runs in happened to be the fix.

I'm running openbsd, so my apache runs in a chroot'd environment.

I actually wound up fixing this 'by accident' while getting mail delivery working.

Don't even get me started on the rant that php has smtp support for its mail() function if _and_only_if_ you're running on windows. SMTP is the 'right' way to get mail out of a chroot'd environment and the fact that I had to install a package (and even worse, install /bin/sh) inside the chroot to 'pretend' to be sendmail so as to throw the mails over smtp to localhost.... \end{whinge}

greg.harvey’s picture

#9 worked for me on Drupal 5.x

What was really weird is I started having problems totally out of the blue. Shut down my computer (Fedora 10) one night, next morning httpd has no Internet access! Weird! Still, fix worked. Thanks. =)

MaximusOfLondon’s picture

I have same problem with 6.x on share host but I can dpm( drupal_http_request('http://www.google.com')); with success so issue is not httpd.
My update check stopped working yesterday for some reason I cannot figure out. Anyone has any ideas what else might be causing this?

MaximusOfLondon’s picture

A followup for those who experience same issue:
I have tested from dev run php code if I can reach drupal update site

dpm( drupal_http_request('http://updates.drupal.org/release-history'));

The result was
# code (Integer) -101
# error (String, 22 characters ) Network is unreachable

I will be checking with my provider if they block my httpd, that possibly seems to be an issue...

MakeOnlineShop’s picture

Update status was suddenly not working on Dreamhost VPS.

I just restarted the server and it is now ok.

MakeOnlineShop’s picture

When i restart the VPS it usually works, but can you explain what is the problem as it seems that I also have other problems with shops installed on this VPS ? (transactions with Paypal fail when i don't restart the VPS just before)

Thanks a lot.

greg.harvey’s picture

It's usually because PHP cannot resolve DNS any more. It's a known issue with no known fix, as far as I'm aware. It's not a VPS thing either, it's a PHP/Apache/Linux thing. (I don't know if PHP for Windows exhibits the same issues.) I get it with Fedora sometimes.

You can just restart Apache (or whatever web server software your VPS runs) you shouldn't need to restart the entire VPS.

Also, adding lines to /etc/hosts for the addresses you need (e.g. Drupal update checks, PayPal gateway URLs, etc.) means the issue will not affect your server should it manifest, however you'll need to stay aware of what's in your hosts file and remember to update it if the service providers change IP addresses.

uzmaabdulrasheed1@gmail.com’s picture

Issue summary: View changes

Command in #9 worked for me, Kelvin thanks for sharing your solution.