Skip to content

Log during UI installation is empty in AEMaaCS #815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kwin opened this issue May 15, 2025 · 1 comment
Open

Log during UI installation is empty in AEMaaCS #815

kwin opened this issue May 15, 2025 · 1 comment

Comments

@kwin
Copy link
Member

kwin commented May 15, 2025

The live log window during UI installation is still empty (only exposes "..."). Most probably this is because the job is running on another author instance than the actual servlet. So most probably there is no way around persisting the log in an incremental fashion in the repository to make it accessible from all other author instances.

@vitafo
Copy link

vitafo commented May 28, 2025

We experienced the same issue using 6.5.1 version on AEMaaCS. I attach logs that might be related:
28.05.2025 06:54:21.427 [cm-p148054-e1511414-aem-author-6f8b69fff4-gghgg] *ERROR* [sling-threadpool-0ce9844a-00eb-422d-a463-359ad9334533-(apache-sling-job-thread-pool)-15-<main queue>(biz/netcentric/cq/tools/actool/installation)] biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl Exception in AceServiceImpl: {} java.lang.NullPointerException: Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.addError(String, java.lang.Throwable)" because "installLog" is null at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.installConfigurationFiles(AcInstallationServiceImpl.java:396) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.apply(AcInstallationServiceImpl.java:321) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.process(AcInstallationServiceImpl.java:215) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:543) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.3.14] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) 28.05.2025 06:54:21.427 [cm-p148054-e1511414-aem-author-6f8b69fff4-gghgg] *ERROR* [sling-threadpool-0ce9844a-00eb-422d-a463-359ad9334533-(apache-sling-job-thread-pool)-15-<main queue>(biz/netcentric/cq/tools/actool/installation)-ACTool-Config-Worker] biz.netcentric.cq.tools.actool.history.impl.AcHistoryServiceImpl Could not persist history: java.lang.NullPointerException: Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.getCrxPackageName()" because "installLog" is null java.lang.NullPointerException: Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.getCrxPackageName()" because "installLog" is null at biz.netcentric.cq.tools.actool.history.impl.HistoryUtils.persistHistory(HistoryUtils.java:116) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.history.impl.AcHistoryServiceImpl.persistHistory(AcHistoryServiceImpl.java:85) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.persistHistory(AcInstallationServiceImpl.java:407) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.installConfigurationFiles(AcInstallationServiceImpl.java:399) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.apply(AcInstallationServiceImpl.java:321) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.process(AcInstallationServiceImpl.java:215) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:543) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.3.14] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) 28.05.2025 06:54:21.427 [cm-p148054-e1511414-aem-author-6f8b69fff4-gghgg] *ERROR* [sling-threadpool-0ce9844a-00eb-422d-a463-359ad9334533-(apache-sling-job-thread-pool)-15-<main queue>(biz/netcentric/cq/tools/actool/installation)] biz.netcentric.cq.tools.actool.history.impl.AcHistoryServiceImpl Could not persist history: java.lang.NullPointerException: Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.getCrxPackageName()" because "installLog" is null java.lang.NullPointerException: Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.getCrxPackageName()" because "installLog" is null at biz.netcentric.cq.tools.actool.history.impl.HistoryUtils.persistHistory(HistoryUtils.java:116) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.history.impl.AcHistoryServiceImpl.persistHistory(AcHistoryServiceImpl.java:85) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.persistHistory(AcInstallationServiceImpl.java:407) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.apply(AcInstallationServiceImpl.java:335) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.process(AcInstallationServiceImpl.java:215) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:543) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.3.14] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) 28.05.2025 06:54:21.428 [cm-p148054-e1511414-aem-author-6f8b69fff4-gghgg] *ERROR* [sling-threadpool-0ce9844a-00eb-422d-a463-359ad9334533-(apache-sling-job-thread-pool)-15-<main queue>(biz/netcentric/cq/tools/actool/installation)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.<main queue> Unhandled error occured in job processor Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.close()" because "this.asyncInstallLog" is null while processing job Sling Job [topic=biz/netcentric/cq/tools/actool/installation, id=2025/5/28/6/54/03d7f964-7ed9-4686-9532-f65341274363_3, properties=slingevent:application=03d7f964-7ed9-4686-9532-f65341274363,jcr:created=java.util.GregorianCalendar(Wed May 28 06:54:20 UTC 2025),slingevent:created=java.util.GregorianCalendar(Wed May 28 06:54:20 UTC 2025),event.job.queuename=<main queue>,event.job.queued.time=java.util.GregorianCalendar(Wed May 28 06:54:20 UTC 2025),jcr:createdBy=sling-event,sling:resourceType=slingevent:Job,updateExistingExternalGroups=true,event.job.application=7554f599-7d94-4b3b-8bfe-83fb4af0072d,event.job.retries=10,skipIfConfigUnchanged=false,event.job.started.time=java.util.GregorianCalendar(Wed May 28 06:54:21 UTC 2025),configurationRootPath=/apps/project/permissions,restrictedToPaths=[Ljava.lang.String;@3a51bd5,jcr:primaryType=slingevent:Job,event.job.retrycount=0,:sling:jobs:asynchandler=org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper$1@630396f1] java.lang.NullPointerException: Cannot invoke "biz.netcentric.cq.tools.actool.history.impl.PersistableInstallationLogger.close()" because "this.asyncInstallLog" is null at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.process(AcInstallationServiceImpl.java:217) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.6.1] at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:543) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.3.14] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.3.14] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants