Page MenuHomePhabricator

Failure to update the list of images included in a campaign
Open, HighPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Create your own campaign
  • Save the campaign

What happens?:

The set up of campaign should « run » and display a certain number of images on the campaign home page. The number of images stays at zero, with the « pending » images still visible. Waiting or reloading the page does not make a difference. The number of images stays at zero.
Editing the campaign, changing category and asking for image update does not make a difference.

This issue is not happening 100% of the time. It happens from time, like 95% of the time.
So we are accumulating « non working campaigns » as people give up using the tool when they can not create the initial campaign they want to work on

We tried different categories. Different depths. Waiting. Different campaigns. Sometimes it works; sometimes it does not. It seems more to be a failure to launch the updating system happening from time to time.

What should have happened instead?:

The campaign should update images included in the campaign.

Examples

Event Timeline

I went through and update the campaigns that were stuck, i.e. showing error or in progress in the web UI, using the maintenance script on the server. I went back a year and the campaigns updated are 323, 320, 314, 301, 296 and 294. It mostly went well. I had to re-run 294.

I haven't dug into the logs yet, but from what I've seen I think this is related to database issues, i.e. T318050 or similar. What could be done for the image updater is adding the ability to re-run when things fail, which would be useful even when the database works as it should.

@Anthere, when you say that it fails most of the time, over how long period of time did you attempt to update the campaign? Did you repeat immediately or did you wait minutes, hours or days in between?

@Sebastian_Berlin-WMSE I have tried most scenarios. Updating the page after 1 mn, after 5 mn, after 10 mn, several hours later, 3 days later, or even months later.
I also sometimes go back inside the campaign, change the categories, click the « update » button, try again.
I have not been able to identify a pattern.
Sometimes a test on a campaign will pass (images updated within 1 mn), Then later after changing the category will fail. Consistently. And after several changes will work again. No clear pattern unfortunately.

Thank you for relaunching the update of all failing campaigns. This bug is really a bummer :(

Change #1055949 had a related patch set uploaded (by Sebastian Berlin (WMSE); author: Sebastian Berlin (WMSE)):

[labs/tools/Isa@main] Use tasks for updating images when a campaign is updated

https://gerrit.wikimedia.org/r/1055949

The patch above reverts some changes that I believe were made by mistake in the m2c merge. With that the updating is done as a background job which hopefully makes it a bit more stable.

I've also created T370768: Retry failed image update tasks. It should help when something goes wrong during image updating by retrying a bit later. It may still take time, but should be the equivalent of someone logging into the server and doing the update manually.

Hello! I'm having the same issue with campaign https://isa.toolforge.org/campaigns/331
I tried to use the Update images feature over a week ago and it still has not loaded the pictures.

@Sebastian_Berlin-WMSE do you think you or someone else can help me fix this campaign in the next couple of days? In our user group, Wikimedistas de Uruguay, we are using this ISA campaign as part of a contest that ends on the 30th.

Thanks a lot!

I updated the campaign and it now has images.

Change #1055949 merged by jenkins-bot:

[labs/tools/Isa@main] Use tasks for updating images when a campaign is updated

https://gerrit.wikimedia.org/r/1055949

Hi there, I'm having what I think is the same issue. Tried to create a campaign: https://isa.toolforge.org/campaigns/345 - I know that there are images missing SDC in the category, so some should definitely appear in the campaign, but every time I click "Get Started" I get an error saying "No images found for this campaign". I've tried from my work account and my volunteer account.

Additional note in case it's relevant - it's a Wiki Loves campaign, however because the category syntax doesn't match what was expected I wasn't able to use the "Wiki Loves" option when creating the campaign.

Any help would be appreciated! thanks :)

It does feel like it is a different bug altogether though Sara. In the bug above, images were « recognized » as existant, but not being loaded. So the visual indicated « loading ongoing ».
In your case, no image are seen at all. That’s a different issue.

A Wiki Loves campaign can be recognized if the general category looks like the WLA one’s or WLM’s or WLF’s, with the higher category mentioned and all countries are in categories at the immediately lower level. It is only meant to propose in display all countries in the category.

Can you indicate which category you indicated in the creation form ? Logically if it is a WL campaign, it should be (it must be) Category:Images from Wiki Loves Earth 2024

For any other categories (such as Category:Images from Wiki Loves Earth 2024 in Scotland), you should not check the « this is a wiki loves campaign ». You should run it as a regular

I hope this helps. Keep us updated !

ah, fair enough - I'm still stumped then!

I didn't tick the "This is a Wiki Loves" box, as the category doesn't fit the expected syntax, just ran it as a regular. Category is "Category:Images from Wiki Loves Earth 2024 in Scotland."

Gosh. Same here. I tried several different categories in my test campaign. Nothing is loading at all...

@Eugene233 I have bad news... the patch you merged yesterday... https://gerrit.wikimedia.org/r/c/labs/tools/Isa/+/1055949
Well, there was a problem with it... :((((
@Sebastian_Berlin-WMSE

Thanks so much for the response - really appreciate it! Some of our community have expressed interest in small volunteering tasks, and following a Train-the-Trainer session last week on the subject I was looking to create some content challenges / tasks that we could share - this tool looks fantastic, so any help is really very welcome :)

Gosh. Same here. I tried several different categories in my test campaign. Nothing is loading at all...

@Eugene233 I have bad news... the patch you merged yesterday... https://gerrit.wikimedia.org/r/c/labs/tools/Isa/+/1055949
Well, there was a problem with it... :((((
@Sebastian_Berlin-WMSE

@Anthere can you please recheck. It looks like all the services were not yet up and running. I got some campaigns already pulling up some images such as 324.

@Eugene233 @Anthere Thanks so much! 345 is working now, hurrah! :)

Well. Mixed feelings Eugene. It does not seem to do the job

When I look at Sara campaign (https://isa.toolforge.org/campaigns/345) I see the little blue question mark. But the number of images listed is in fact the number of images in the category. The system seems to work. I just wonder why the blue question mark is displayed

Then, in my Oman campaign, I see the blue visual indicating it is still loading. I made several category depth changes. and it makes no difference. It stays stuck at 16000 images. That looks weird (but does not prevent using the campaign). https://isa.toolforge.org/campaigns/343

Then, when it comes to my test campaign.... I changed the category in the campaign... and it makes no difference. It stays stuck at 11... with the blue question mark. Which was the last category I tried several days ago. https://isa.toolforge.org/campaigns/324

Last, I see that someone recently created a campaign. It displays zero images. Which is possible, but unlikely
. https://isa.toolforge.org/campaigns/346

Any thoughts ?

@Anthere I have had a look at the following campaigns and all other campaigns which were not yet updated.

345's images have not been completely updated due to and error with probably fetching the images or some other reason(maybe category depth in the campaigns setup). Nonetheless, I will restart the service which does the update to see if anything changes

Regarding 343, the service is still probably trying to get images to update the campaign set of images (reason for the small clock)

For the test campaign, the service is still probably working on updating the images. I am not sure how long this process could take but I'll look at the logs to see its progress.

For the recently created campaign, if we can have the categories, then we can be able to detect if the campaign is supposed to be loading images at least.

Regardigng 343... I changed the depth several times. From 0 to 5. It does not make any difference. It is stuck at 16000. It is currently at depth 3.

As for campaign 324... I had set it up a week ago (before you published the patch) and it displayed 11 images (which was the right figure, even though there was the ! sign)
I later switched it to Donald Trump, depth 2. It is still stuck at 11.
It looks like no campaigns are being updated at all since the patch
Sorry Eugene :( but we still have a problem here....

@AntiCompositeNumber it looks like your campaign managed to load some images (as seen on the screenshot below). Generally by observation, I think that the image update functionality works but needs a closer look to determine which part is either slow or not working properly.

image.png (1,147×651 px, 173 KB)

@Anthere some campaigns image update fails such as 343. I'm currently looking at the logs to see what could possibly be the issue so it can be reported and addressed.

as concerns the little ! it is not an issue as the service is still scanning the campaigns categories for image updates and it just indicates that something is not right.

Hi

Well, I have tried, reloaded, tried again, changed the depth of category, removed Oman to replace it with the smaller category:Mascat. Still nothing.
I am have changed two of my old test campaigns, to give them Mascat. Still nothing.

I am a bit in despair right now.
Next week, I am giving a one hour workshop session on ISA at Wikiarabia.
First, I will be using the Oman/Mascat campaign during the workshop for exercice : https://isa.toolforge.org/campaigns/343

Then, I can expect that some folks will try to create their own campaign.

This campaign also include Muscat category : https://isa.toolforge.org/campaigns/324
It is not updating pictures. It is still using the previous category (Donald Trump :))

I also put the Muscat category in another old campaign about Grenoble
https://isa.toolforge.org/campaigns/276
It is still showing Grenoble. Not updating to Muscat.

It looks as if... update is simply not happening. I think the issue in not « loading images ». The issue seems to be « updating » images.

Now, with a test campaign with 0 images. What do I do ? Who can help ?

@Anthere I managed to run the update manually and I think it got some of *if not all* of the images. I am looking at the failing updates which are not automatically done ATM.
Please do let me know if your campaigns can be used for your workshop at least while we have a look at the root cause.

So far so good. At least I can run my workshop. Good news ! Thanks

We still need to find out what’s the problem is though :((

On another note, I just saw on the signpost that you got appointed to Product and Technology Advisory Council. Congrats Eugene !

@Sebastian_Berlin-WMSE can I ask you to update this campaign https://isa.toolforge.org/campaigns/352 when you have a minute? No rush, we are not using it for any activity in particular, this campaing is just for fun. Thanks!

I MAY have identified a possibility that MIGHT explain why SOMETIMES the images do not load and it seems the whole system got stuck...

This came after a conversation with Stephane from Kiwix, who himself had a conversation with Emmanuel about loading images by categories (on their systems)
Emmanuel indicated that doing images selection using categories sometimes created a loop when a category was both a parent and a child of another category (which... does happen... in particular if we take several degrees depth in ISA selection process done by categories)
What do you think ? Is that a thing to explore ?

@Sebastian_Berlin-WMSE can I ask you to update this campaign https://isa.toolforge.org/campaigns/352 when you have a minute? No rush, we are not using it for any activity in particular, this campaing is just for fun. Thanks!

It's better if check with @Eugene233. I'm not working on ISA at the moment.

To be honest

  1. Right now, the ISA tool is down. For hours, only the main page load. Then any further action lead to « Ooops, sorry, maintenance ». So tool is down
  1. For several weeks now, all requests to try to make the images load have met a total silence. No one has time, no one has the will. All the most recent campaigns load no images at all. So in effect, the tool can not be used anymore. None of the new campaigns load images.
  1. My mention of a direction that could explain the bug did not raise anyone attention. Zero. No one has time, nor will, or the skills. I do not know. But in practice... this is a dead end and I have zero visibility on whether there is a chance that this bug is ever fixed. I see no evidence that anyone knows how to fix that bug.

We were using this campaing https://isa.toolforge.org/campaigns/351 in a contest proposed by Wikimedistas de Uruguay user group https://es.wikipedia.org/wiki/Wikipedia:Encuentros/Desaf%C3%ADo_Uruguay:_Accesibilidad. The contest ends on the 30th.

Just to note that if the tool could be fixed it wouldt be helpful for us :) Thanks!

fnegri subscribed.

Right now, the ISA tool is down. For hours, only the main page load.

This was caused by T380962: Worker fails to connect to the database and should now be fixed.

The other issues mentioned in this thread are caused by different problems and they will require attention by the ISA maintainers.

@Eugene233 these campaigns

Hello @Piracalamina,
This is Donia, works as ISA tool facilitator.
I do appreciate your contributions on ISA tool and has noticed about the problem from the beginning. We already did our best to solve this bug but unfortunately, no thing will be updated before mid of January. I want to inform you that so that you can think of alternatives for ISA during this time. Sorry about that but I really do my best.

Hello,

i have a problem updating this campaign: https://isa.toolforge.org/campaigns/317? Is there any fix yet?

Best regards

I created campaign 436 (https://isa.toolforge.org/campaigns/436) , but the category images are not being imported. The message 'No images found for this campaign!' keeps appearing

Images now appear, but not all of them. The same ones keep showing up again and again.

We will have a look at the issue and try to fix it :)