acs-aem-commons icon indicating copy to clipboard operation
acs-aem-commons copied to clipboard

MCP reports are blank

Open manz111 opened this issue 2 years ago • 14 comments

Required Information

  • [ ] AEM Version, including Service Packs, Cumulative Fix Packs, etc: AEM Could
  • [ ] ACS AEM Commons Version: latest
  • [ ] Reproducible on Latest? yes

Expected Behavior

MCP reports to be generated after running the MCP process

Actual Behavior

We are unable to see any MCP reports in the console on AEM cloud. Below is the screenshot of the same -

95c53f49-f69d-458b-932f-a248f653ec6d

Steps to Reproduce

  1. Start an MCP process
  2. Once complete, no reports are seen in the console
  3. But reports are getting stored under the node - var/acs-commons/mcp/instances

56761890-71f4-4df5-9846-e17ad0fea595

Upon double clicking on the report node in CRX, we see the below data :

909b5fce-6100-4be1-b979-f1f68f0f6d77

a8480707-031e-436a-bf4c-4f5c57dda2d5

We are not seeing any errors getting logged wrt MCP reports.

Links

https://author-xxx-xxx.adobeaemcloud.com/apps/acs-commons/content/manage-controlled-processes.html

manz111 avatar Jul 14 '23 06:07 manz111

@manz111 did this just start happening? Do you see any errors in the browsers JS console?

Also, you should not be using bulk uploads in MCP on AEM as a CLoud Service as this streams binary data through the AEM JVM. Instead you should use productized features like Bulk Import Service that handle this differently.

davidjgonzalez avatar Jul 14 '23 14:07 davidjgonzalez

2023-07-14 at 4 54 PM

This is on latest ACS AEM Commons and Adobe Experience Manager 2023.6.12255.20230608T053118Z-230601

These seem to show up here ... can you check your error logs and your JS console? This might be something strange going on w your env.

davidjgonzalez avatar Jul 14 '23 20:07 davidjgonzalez

Yes @davidjgonzalez , Please find below the screenshot of the error in console log - image

manz111 avatar Jul 17 '23 10:07 manz111

Are there other errors if you dont filter? Also - are you seeing any errors (404, 403, 500) in the Network tab?

davidjgonzalez avatar Jul 17 '23 16:07 davidjgonzalez

No, I don't see any 40x errors in the network tab. Adding screenshot below - image

manz111 avatar Jul 18 '23 19:07 manz111

Hi @davidjgonzalez , We are seeing these errors in logs - image

image

AEM Version - 2023.7.12790.20230720T124230Z-230600 ACS AEM Commons version - 6.0.14

manz111 avatar Jul 26 '23 14:07 manz111

@manz111 can you package /var/acs-commons/mcp on your instance and attach to this ticket? I'd like to see which instance is causing the NPE.

YegorKozlov avatar Jul 27 '23 08:07 YegorKozlov

Is this issue resolved?

MANID048 avatar Aug 03 '23 19:08 MANID048

@manz111 any chance you could check if the following build helps resolve this (jar is the only thing w/ changes but attached all package too). It sounds like the data under /var/acs-commons/mcp is incomplete .. so this should slot the items w/ the missing starttimes to the bottom of the dashboard so you can deal w them via the UI. That said, its hard to reproduce since we dont know what your /var/acs-commons/mcp looks like (would still be great if you could package that up and share it -- you could send direct to [email protected] if it has data you dont want out in the open).

acs-aem-commons-bundle-6.0.15-SNAPSHOT.jar.txt acs-aem-commons-all-6.0.15-SNAPSHOT.zip

davidjgonzalez avatar Aug 04 '23 13:08 davidjgonzalez

@MANID048 are you having this problem as well?

davidjgonzalez avatar Aug 04 '23 13:08 davidjgonzalez

Hi @davidjgonzalez , I have shared with you the /var/acs-commons/mcp package from our instance to your email (sent from [email protected]). Waiting to hear back from you.

cc - @YegorKozlov

manz111 avatar Aug 06 '23 13:08 manz111

Thanks @manz111 - i received the zip.

It looked like there are 6 invalid processes (the mcp process instances are missing almost all data) which was breaking the report. I've put a fix in to atleast display these so you can investigate (and it wont break the report UI totally) in https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/3154

2023-08-07 at 10 30 AM

I can't tell what sort of process generated these null process nodes (they're for the most part empty) - do you have any sense if a specific process was run when these were created? While waiting for this release, you can review/delete those nodes manually:

Name Description Started Completed Tasks Completed Errors
Invalid (5563E7F940240A0F) Archived process at /var/acs-commons/mcp/instances/5563E7F940240A0F is null n/a n/a ???  
Invalid (0C7569E69383E5D4) Archived process at /var/acs-commons/mcp/instances/0C7569E69383E5D4 is null n/a n/a ???  
Invalid (568FFE4CD9A4012C) Archived process at /var/acs-commons/mcp/instances/568FFE4CD9A4012C is null n/a n/a ???  
Invalid (21CB8D45D0E8F7EB) Archived process at /var/acs-commons/mcp/instances/21CB8D45D0E8F7EB is null n/a n/a ???  
Invalid (7899AA7633063FE3) Archived process at /var/acs-commons/mcp/instances/7899AA7633063FE3 is null n/a n/a ???  
Invalid (0B29982E13D3C8F9) Archived process at /var/acs-commons/mcp/instances/0B29982E13D3C8F9 is null n/a n/a ???  

davidjgonzalez avatar Aug 07 '23 14:08 davidjgonzalez

Thank you @davidjgonzalez for helping me in debugging. Deleted these nodes and the MCP reports have started to render. But could you let me know how you were able to find out the invalid nodes? Was it through a query or something?

manz111 avatar Aug 08 '23 17:08 manz111

It was via the acs commons patch in this ticket. I implemented better handling of invalid results to be able to see the results. :)

davidjgonzalez avatar Aug 08 '23 18:08 davidjgonzalez