Some certificates became unavailable after upgrading to version sumac.2

After upgrading the platform to version sumac.2, some certificates became unavailable (showing either “certificate not found” or “page not found”). This issue occurred after upgrading from version redwood.

The frequency of such cases is approximately 70 to 30, meaning 70% of the certificates are available, while 30% are missing (even though I can see their unique verify_uuid in the database).

What could be the cause of this?

@mgmdi - I noticed for BTR you had commented on some certificates bugs. I don’t think this is related to [Test failure] TC_AUTHOR_110: Certificate available date not working · Issue #429 · openedx/wg-build-test-release · GitHub but I’m curious if you’ve seen anything like this in testing.

cc @Chelsea_Rathbun - I don’t think we test that previously granted certificates are still available after upgrade. I suspect there’s a class of tests “still works after upgrade” that we aren’t hitting because we test on a fresh install.

@sarina - Thanks for brining this to my attention. I just triple checked our test sheet, and as you mentioned, we don’t currently have a test case captured for making sure that previously granted certificates are still available after an upgrade. I made a note to myself to make sure this is added to our testing sheet for Teak.

I’ve never seen this happen before. I’ll check internally to see if it has happened in any of our previous upgrades.

Just an idea. Could it be that you have code in the certificate template that is failing to render and the error is caught and shown as 404 when in reality it masks a 500 error?

Hello. I did not add any code to the certificate rendering. It is the default one, the same as when a fresh OpenEDX installation is made. Initially, I thought this was happening because some certificates were issued manually even if the user did not complete the course or earn enough points, but after a thorough check, this was ruled out.

It should also be noted that unavailable certificates do not appear in the profile, while available ones do.

I just tested it again. For some reason, everything works fine with the Indigo plugin disabled. I have no idea why this is happening. How can I get everything working with Indigo enabled?
I tried running tutor images build openedx and tutor local launch, but it didn’t help.

Can you share the LMS logs from when the certificate is accessed with Tutor Indigo enabled?

Attaching LMS logs

and with Tutor Indigo off? It works correctly, right?

yes, correct

I can disable indigo and open the same certificate if you want

I also made sure that the Indigo version matches the current openedx release

yes, thank you!

Are we getting this error when trying to access certs from learner dashboard (It’s been a while since I interacted with certs and certain contexts might be outdated)?

@Syed_Muhammad_Dawoud
As I mentioned earlier, some certificates are available, while others are not when Indigo is enabled.

If Indigo is enabled, the certificate is also not displayed in the profile or within the course progress. The “View Certificate” button appears in the dashboard, but when clicked, it shows that the certificate was not found.

I have attached a photo where:

  1. With Indigo enabled, one certificate is available, while the other is not.
  2. With Indigo disabled, both certificates are available.

Enable indigo

Disable indigo

The only thing that appears relevant to me is the user has no eligible cert for… in the first screenshot with indigo enabled, which doesn’t appear in the second one. I’m pretty lost on how this relates to the theme though.

EDIT: but I think the message is related to a different course run.

I don’t understand why that’s the case either :sweat_smile:. Maybe there’s a list of actions I should try? I tried removing the styling from _certificate.scss, but it didn’t help.