Closed (fixed)
Project:
Update Status
Version:
5.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2007 at 06:45 UTC
Updated:
19 Oct 2015 at 07:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fm commentedSince 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:
and
I checked Drupal's recent logs and no error was indicated, despite the consistent in ability to resolve the page after a manual update.
Comment #2
ica commentedYep, 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
Comment #3
fm commentedThis is still a problem for me. Anyone discover a solution yet? ... or perhaps even just the cause?
Comment #4
fm commentedIt would be kinda cool if the developer at least acknowledged this issue.
Comment #5
ica commented"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'
Comment #6
dwwno, 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.
Comment #7
plantucha commentedDoesn'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.
Comment #8
ica commentedJust 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?
Comment #9
kelvinwong commentedI 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 1Don'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.
Comment #10
dww@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!
Comment #11
dwwOh, 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
Comment #12
dwwSee also http://drupal.org/node/196535 about fixing this in D6 core's update.module...
Comment #13
dwwThe 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?
Comment #14
dwwOk, committed a small "REQUIREMENTS" section to the README.txt. That's all I have energy for in here.
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #16
allella commentedI 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
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.
Comment #17
yasheshb commentedwe 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
Comment #18
sanalkumarp commentedI 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
Comment #19
evilrob commentedJust 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}
Comment #20
greg.harvey#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. =)
Comment #21
MaximusOfLondon commentedI 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?
Comment #22
MaximusOfLondon commentedA 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...
Comment #23
MakeOnlineShop commentedUpdate status was suddenly not working on Dreamhost VPS.
I just restarted the server and it is now ok.
Comment #24
MakeOnlineShop commentedWhen 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.
Comment #25
greg.harveyIt'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.
Comment #26
uzmaabdulrasheed1@gmail.com commentedCommand in #9 worked for me, Kelvin thanks for sharing your solution.