Error deploying in Image generating phase | Community
Skip to main content
Alberto_Corral
Level 2
September 5, 2023

Error deploying in Image generating phase

  • September 5, 2023
  • 2 replies
  • 2421 views

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 4
September 5, 2023

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

Alberto_Corral
Level 2
September 5, 2023

I have attached the log and the pipeline is running.

nitesh_kumar-1
Adobe Employee
Adobe Employee
September 6, 2023

Hi @alberto_corral ,

 

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

 

 
 
Alberto_Corral
Level 2
September 6, 2023

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.

nitesh_kumar-1
Adobe Employee
Adobe Employee
September 6, 2023

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 😞


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.