AEM instance corrupted on startup

Avatar

Avatar

lwang

Avatar

lwang

lwang

30-03-2021

Hello everyone, 

 

I am using AEM 6.5. I have a really weird problem on startup of the instance. Every time, when I shut off my instance and start it again, my AEM instance wouldn't work properly. The image on the splash screen as well as the icons in the touch UI wouldn't load. I had to delete the crx-quickstart to reinstall the instance. Then it will be fine. But next time, when I shut off the instance and start it again, same problem happens. I can't really delete the crx-quickstart every time since I have installed some packages and I had to redo them again. I was wondering if anyone know how to resolve this issue.

 

Thanks in advance for your help. 

 

Lucy 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

bilala23933647

Avatar

bilala23933647

bilala23933647

30-03-2021

Hey @lwang,

Are you migrating from old AEM version to new one? Also, please let me know if I've understood incorrectly here:
--> when you have a fresh instance(just after you unpack the jar) things work quite well.

--> as soon as you install some packages and the the issue starts to happen(after you shut down the instance and restart)


Is there is a possibility that you have custom oak:index definitions in your package? if that's the case please remove those paths(custom index definitions) from filter(while creating the package itself) and then try installing it.(check if you have queryPaths and includedPaths in your custom index definition)

 

Also, if you leave your instance for a long while(2hours or so), does that resolve the issue on its own? please try that.

 

Thanks,

Bilal.

Answers (3)

Answers (3)

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

31-03-2021

Error[1] means something wrong with your datastore. Either the user running AEM does not have permissions to the crx-quickstart/repository/datastore folder or something else going on with the datastore.

 

[1] error: java.lang.RuntimeException: Error occurred while obtaining InputStream for blobId [3e15c88da9b46267141b60826c0734007c3e5a5f804c953edb0280eda680a9be#174188]

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

30-03-2021

What error do you see in the log files? I would recommend checking log files for any errors.

Avatar

Avatar

asutosh_j3

Avatar

asutosh_j3

asutosh_j3

30-03-2021

@Hi @lwang 

Can you confirm if you are using AEM 6.5 with JDK 8 or JDK 11.

If you are using with JDK 11 you will need to ensure to add the below lines in the sling.properties file on your instance for sling.bootdelegation.sun property.

 

File before update: sling.bootdelegation.sun=sun.*,com.sun.*

After update: sling.bootdelegation.sun=sun.*,com.sun.*,jdk.internal.reflect,jdk.internal.reflect.*

 

 Also you can include the below snippet to your JVM parameters in the start.bat(Windows) or start.sh(Mac OS/Linux) file based on the OS.

 

-XX:+UseParallelGC --add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -Dnashorn.args=--no-deprecation-warning

 

Also allow enough heap memory something like 2048 MB or 4096 MB.

 

It will become something like:

CQ_JVM_OPTS='-server -Xmx4096m -XX:MaxPermSize=256M -Djava.awt.headless=true -XX:+UseParallelGC --add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -Dnashorn.args=--no-deprecation-warning'

 

Please refer the Java 11 consideration section in the below article:

https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/custom-standalone-...

 

Hope this will help you!

Thanks!