Posted by drahman on November 6, 2012 at 7:33pm
I have found a lot of threads on the "Failed to get available update data" error, but I have yet to find a solution.
My Drupal 7.16 installation fails to get status updates on modules or the core update.
I am able to run cron from the server. That does not seem to be an issue.
It appears to be a very common problem, so I am a bit confused on how I can't seem to find someone who has solved it.
Comments
My Solution
As I have searched and searched for an answer, I have found that there seem to be plenty of them, or at least many possible answers. This is what worked for me.
In my hosting control panel on a shared server, I added the following to Allowed Outgoing connections. Your control panel may call it something else.
140.211.166.21/32
140.211.166.6/32
140.211.10.16/32
I am not sure if all 3 were needed, but those were the Drupal related IPs that were being blocked.
The next thing that I needed to do, and I am not sure if this a coincidence or not, I disabled the core Drupal search module. The updates status did not work until I did this part. The strange part is that I reenabled the search mod and the updating still worked. So perhaps this portion of my solution was just a coincidence and it merely took a minute or so before the unblocking took affect?
I hope this helps someone. I know I was frustrated trying to solve this.
TechnoMinds - Mac Tech Support in Montreal
Same idea, different setting
I run drupal on my own server, and it was a php problem (fsockopen or whatever didn't work). It seems to have appeared when I upgraded php, and I got around it by adding the following line to my /etc/hosts file (I'm running Arch Linux, but I think the file is pretty standard):
140.211.10.16 drupal.orgNot a perfect solution, but it seems to be a pesky problem to actually solve, and I didn't want to revert to the older version of php. Oddly, the problem seemed to go away of its own now and then but then it comes back.