Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Error deploying in Image generating phase

Avatar

Level 3

Hi 

We are trying to deploy a multiproject product but one of our project is failing and we don´t know what could be the cause.

 

The log raise the next

 

[0m[2023/09/04 12:38:07.880] [INFO] com.adobe.granite.fact.ToolMain - class com.adobe.granite.fact.ToolMain version [0.5.118.44542.0001]

java.util.concurrent.TimeoutException
 at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886)
 at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
 at com.adobe.granite.fact.command.buildimage.Result.success(Result.java:57)
 at com.adobe.granite.fact.command.buildimage.BuildImageExecutor.filter(BuildImageExecutor.java:74)
 at com.adobe.granite.fact.command.buildimage.BuildImageExecutor.execute(BuildImageExecutor.java:57)
 at com.adobe.granite.fact.command.buildimage.BuildImageCommand.call(BuildImageCommand.java:141)
 at com.adobe.granite.fact.command.buildimage.BuildImageCommand.call(BuildImageCommand.java:40)
 at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
 at picocli.CommandLine.access$1300(CommandLine.java:145)
 at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
 at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
 at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
 at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
 at picocli.CommandLine.execute(CommandLine.java:2078)
 at com.adobe.granite.fact.ToolMain.main(ToolMain.java:88)
[2023/09/04 12:38:22.814] [INFO] com.adobe.granite.fact.command.ClientlibsCommand - Cleaning clientlibs...
[2023/09/04 12:38:27.381] [INFO] com.adobe.granite.fact.command.ClientlibsCommand - Copying over product clientlibs...
[2023/09/04 12:38:27.515] [INFO] com.adobe.granite.fact.command.ClientlibsCommand - Compiling clientlibs...
[2023/09/04 12:38:30.220] [INFO] com.adobe.granite.ui.clientlibs.compiler.less.impl.LessCompilerImpl - Initialized LessCompiler in 2457ms

 

Any idea would be appreciated.

 

Thank you very much.

 

9 Replies

Avatar

Level 4

Could you please upload a detailed log , and meanwhile could you please trigger the pipeline again

Avatar

Employee Advisor

Hi @katmandu25 ,

 

Looks like clientlibs compilation is failing,

 

[2023/09/04 12:38:37.475] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: css/style.css from /opt/aem/build/product/clientlibs/libs/dam/gui/components/s7dam/common/crop/smartcrop/css.txt
[2023/09/04 13:29:00.184] [INFO] launcher - Framework stopped
The command '/bin/sh -c /opt/aem/libs/fact/run-fact.sh && rm -rf /opt/aem/libs/fact' returned a non-zero code: 2
2023/09/04 13:29:00 Container failed during run: build-image. No retries remaining.
failed to run step ID: build-image: exit status 2

 

Run ID: ca4d6uw failed after 52m1s. Error: failed during run, err: exit status 1
 

Can you confirm if you are using minification offered by AEM, or do you have a FE project which compiles it already?

 

This process has a time out of ~50-55 min., after which it fails.

 

My advise to you would be check if you have changed/added new clientlibs.

 

Also, open an Adobe support ticket for detailed investigation. 

 

Regards,

Nitesh

 

 
 

Avatar

Level 3

Thanks Nitesh for your response.

 

Is there any way to simulate in local the proccess tha it´s failing in order to find out what is the problem. The same software deployed in a non Cloud instances works fine. It is only in this deployment where we have the problem.

 

Thanks in advance.

Avatar

Employee Advisor

Unfortunately no, because the cloud instances are created with application code with each deployment. so it's a completely different architecture.

You could however try to load individual clientlibs on your local to see if it logs any minification-related issues.

 

However, since I have seen this issue with several deployments my recommendation would be to open a support ticket and work with them to make changes accordingly.

 

Hope this helps!

 

Regards,

Nitesh

 

Avatar

Level 3

Thank you again Nitesh.

 

I have found a miss css.txt in my clientlibs. I added but the problem persits. I have noticed in the log that all the warnings in ClientLibCompiler are referred to internal /product code, so I can not fix anyone.

 

[2023/09/06 06:29:52.590] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: css/lib/codemirror.css from /opt/aem/build/product/clientlibs/libs/clientlibs/granite/codemirror/json-addon/css.txt
[2023/09/06 06:29:52.715] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: js/transformers/JsonSchemaTransformer.js from /opt/aem/build/product/clientlibs/libs/cq/workflow/components/set_variable.clientlib/js.txt
[2023/09/06 06:29:52.835] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: js/delete.js from /opt/aem/build/product/clientlibs/libs/cq/brightedge/components/configurations/create/clientlibs/js.txt
[2023/09/06 06:29:52.992] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: js/validators.js from /opt/aem/build/product/clientlibs/libs/cq/personalization/touch-ui/clientlibs/personalizationwizard/js.txt
[2023/09/06 06:29:53.050] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: less/offerpicker.css from /opt/aem/build/product/clientlibs/libs/cq/personalization/touch-ui/clientlibs/targeteditor/css.txt
[2023/09/06 06:29:53.064] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: popover.css from /opt/aem/build/product/clientlibs/libs/cq/experience-fragments/components/experiencefragment/clientlibs/xfconsole/css.txt
[2023/09/06 06:29:53.156] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: js/translationsearchtab.js from /opt/aem/build/product/clientlibs/libs/cq/gui/components/projects/admin/translation/job/addcontent/clientlibs/js.txt
[2023/09/06 06:29:53.784] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: js/createlivecopy.js from /opt/aem/build/product/clientlibs/libs/dam/gui/coral/components/admin/clientlibs/actions/js.txt
[2023/09/06 06:29:53.792] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: libs/dam/gui/components/admin/clientlibs/admin/js/admin.js from /opt/aem/build/product/clientlibs/libs/dam/gui/coral/components/admin/adhocassetshare/clientlibs/linksharepreview/js.txt
[2023/09/06 06:29:53.823] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: js/viewereditor_aod_legacy.js from /opt/aem/build/product/clientlibs/libs/dam/gui/components/s7dam/viewereditor/clientlibs/s7ve/js.txt
[2023/09/06 06:29:53.871] [WARN] com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler - Referenced source file not found: css/style.css from /opt/aem/build/product/clientlibs/libs/dam/gui/components/s7dam/common/crop/smartcrop/css.txt
[2023/09/06 07:20:15.568] [INFO] launcher - Framework stopped

 

I have opened a case with Adobe from July but is still open and without solution

Avatar

Employee Advisor

Can you DM me the ticket ID? you also have an option to escalate it.

 

Do you know which changes were made which introduced this error? I would start investigating from there if the previous build before that change was successful.

Avatar

Level 3

Hi Nitesh.

 

We have no changes, because it is the first time we deploy on it. We are migrating from classic AEM instance to the cloud instance. In clásic instance our software works fine.I will send you the ID 

 

 

Avatar

Level 3

AS I mentioned we have a multiproject en our repo like this:

 

pom.xml

   --- project1

            pom.xml

   --- project2

            pom.xml

 

I have eliminated project1 and the pipeline works fine. I continue seeing the warnings about clientlibs, so it leads me to think that this is not the problem.

 

I have eliminated project2 and included project1 again and the pipeline fails again, so the project1 is to blame. This very strange, because we are deploying this project in our standar Adobe Experience Manager platform (Not Cloud) and it is working fine.

 

I attach the log when project2 is working.