Some times checking available modules updates is extemely very slow at admin/modules/update.
After fininsh and saying the number of modules checked it shows a number which if 10 maybe times more than I have.

Other times the checking update works normally.

I have the system to check automatically and I also check manually.

Maybe the saperate check processes/queues are mixed in one somehow?

Thanks

Comments

catch’s picture

Status: Active » Closed (duplicate)
dropbydrop’s picture

Status: Closed (duplicate) » Active

Are you sure it's duplicate? The other ticket says about "no available releases found".

I suppose you are mentioning to #13 at http://drupal.org/node/952394#comment-4321800
"Projects status checks are queued and this queue is only processed for 5 seconds long, so on slower connections or an unresponsive drupal.org, the queue will not be completely processed in one run."

Do you mean that also in my case all the queues sum up and check alltogether in one?

So what is the solution you propose?
drush vset update_max_fetch_time 60 ?

How the same is at settings.php:
ini_set('update_max_fetch_time', 60); or $conf['update_max_fetch_time'] = 60; ?

And when this bug will be fixed?
Why should new drupal user have this problem for long time and dig inside issues instead of a default update_max_fetch_time=60 at settings.php ?

catch’s picture

Status: Active » Closed (duplicate)

Yes I'm pretty sure it's the same issue or closely enough related that we don't need to track it in two separate issues.

It'll be fixed when someone writes a patch for it, then that patch is reviewed and committed, same as any other bug.

dropbydrop’s picture

Is there a need for a patch, or just a setting at settings.php?

Nicolas Bouteille’s picture

Version: 7.8 » 7.28
Priority: Major » Normal
Issue summary: View changes
Status: Closed (duplicate) » Active

I would like to reopen this because I believe it is different from the issue it was declared of duplicate of.
I read the whole thread and the other issue seems to be focusing on the auto check that happens when reaching admin/reports/updates not on manual checking that loops and never ends. I also commented this here https://drupal.org/node/952394#comment-8778231
So I am facing this too, manual checking of available updates takes 10 times more than it should, this is very annoying.

Nicolas Bouteille’s picture

It took more than 5 full minutes and tells me it checked the update of 773 modules where I only have 80 to 100 modules enabled.

Nicolas Bouteille’s picture

If I manually check again right after that, it takes a decent time (20 to 30 seconds) and tells me it checked for 79 projects.

Nicolas Bouteille’s picture

This actually stills works after I clear the cache. But I know in a few days it will go back to 5 minutes...

catch’s picture

Title: Manual checking available updates for modules very slow » Batch the manual updates check

We should use the batch API for this. It'll still take a long time, but it'll show progress etc.

Nicolas Bouteille’s picture

Title: Batch the manual updates check » Check available updates manually for modules is very slow

Ok I trust you with the Batch API thing but I believe title should keep describing the problem people are facing not the next step in what could solve it.
That way people can more easily find already open issue to join instead of creating duplicate. Also when reading the list of fixed issues on the Drupal core release it's easier to understand what's been fixed.

Now back to the Batch API, I'm a bit skeptical about what you say this will do... you say it won't fix the fact that it is slow but we will now see progress... well I already see the progress bar progressing correctly. It actually is progressing correctly right from the start so I immediately know if it's gonna last 30 seconds or 5 minutes.

This might actually be a clue in solving this issue! The problem seems to be in the initializing phase, not when checking updates via http. Looks like when I haven't manually checked updates for a long time, initializing phase will conclude that there are 773 projects to check instead of 79 projects.

catch’s picture

Is your 7.x install up to date?

I vaguely remember that bug, but I think it was either fixed, or there's a patch to be backported somewhere.

Nicolas Bouteille’s picture

Almost yes. 7.27 so unless it's been fixed in 7.28 I guess it hasn't been fixed yet. But I'm a bit reticent to upgrade to 7.28 now that I read this https://drupal.org/node/952394#comment-8749635 I rather wait for a final patch before upgrading to 7.28

catch’s picture

OK so that issue was #1492188: Update module creates duplicate queue items. If there's still duplicate queue items it's possible that hasn't fully fixed the issue.

Nicolas Bouteille’s picture

indeed

catch’s picture

Title: Check available updates manually for modules is very slow » Update module (still) creates duplicate queue items
Priority: Normal » Major
DamienMcKenna’s picture

Does the problem still exist, or should we close this as "probably fixed"?

catch’s picture

Status: Active » Closed (cannot reproduce)

Let's close as cannot reproduce, haven't seen this mentioned anywhere since the last time I posted on here.