Skip to main content
Level 2
Oct 16, 2015 2:27 AM UTC
Solved

Error while upgrading to AEM 6.1 from 5.6

Hi,

I have migrated my AEM 5.6 to AEM 6.1 using the steps mentioned in https://docs.adobe.com/docs/en/aem/6-1/deploy/upgrade.html. After migration when I run this command  java -jar aem-quickstart-6.1.0.jar -r crx3,crx3tar. I am getting following error at console 

Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1749 MB, meets our expectation of 1024 MB +/- 20
**** WARNING: insufficent PermGen memory ***************************************
The JVM MBean:PS Perm Gen reports 82 MB but we recommend at least 256 MB +/- 20
Use your JVM's PermGen size option (like -XX:MaxPermSize=256M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Preparing to fork JVM, OS name=Windows 7, isWindows=true
Forking JVM: [C:\Program Files\Java\jre7\bin\java.exe, -Xmx1024m, -XX:MaxPermSize=256m, -jar, D:/AEM6.1Migration/aem-quickstart-6.1.0.jar, -nofork, -pt, CHILD, -r, crx3,crx3tar]
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 910 MB but we recommend at least 1024 MB +/- 20
Use your JVM's heap size option (like -Xmx1024M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
The JVM MBean:PS Perm Gen reports a maximum size of 256 MB, meets our expectation of 256 MB +/- 20
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Not forking JVM as -nofork option is set
Setting properties from filename 'D:/AEM6.1Migration/aem-quickstart-6.1.0.jar'
Setting 'sling.run.modes' to 'crx3,crx3tar' from command line.
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to D:\AEM6.1Migration\crx-quickstart\logs\stdout.log
Redirecting stderr to D:\AEM6.1Migration\crx-quickstart\logs\stderr.log
Press CTRL-C to shutdown the Quickstart server...
MAIN process: shutdown hook
MAIN process: Exception in shutdown hook: java.io.IOException: The pipe is being closed
MAIN process: Wrote shutdown string to child process, waiting for it to exit (max 5000 msec)
Child process did not exit? Destroying it now.
MAIN process: Child process exited.
Forked JVM process exited with exit code 1
Main JVM process exiting
MAIN process: exiting

 

 

In the error log :

 

06.07.2015 19:40:28.520 *ERROR* [qtp560449657-77] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
06.07.2015 19:40:28.520 *ERROR* [qtp560449657-77] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.
06.07.2015 19:40:28.744 *ERROR* [qtp560449657-78] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
06.07.2015 19:40:28.744 *ERROR* [qtp560449657-78] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ogillAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

Have a look at [0] to make sure you are not hitting known problems

[0] https://docs.adobe.com/docs/en/aem/6-1/release-notes/known-issues.html#Known%20Issues 

6 replies

ogillAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

Have a look at [0] to make sure you are not hitting known problems

[0] https://docs.adobe.com/docs/en/aem/6-1/release-notes/known-issues.html#Known%20Issues 

Translate
Adobe Employee
Oct 16, 2015 2:27 AM UTC

Those look like your issues.

Were there any errors in the "upgrade.log" file?

Translate
Level 2
Oct 16, 2015 2:27 AM UTC

I am facing a similar issue when upgrading from CQ5.5 to AEM 6.1 .

 

I have already deleted the index files and am able to regenerate them when I run the migrate command . 

java -Xmx4096m -XX:MaxPermSize=2048M -jar aem-quickstart-6.1.0.jar -v -x crx2oak -xargs -- -o migrate

 

However, I see the following error in the console (excerpt below), mainly the access privilege error:

Privilege definition with name 'crx:re plicate' already exists.

  

Stack Excerpt:

14.09.2015 19:22:09.171 *ERROR* [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:352  Repository migration failed. java.lang.reflect.InvocationTargetException: nullat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7. 0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7. 0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.7.0_75] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_75] at com.adobe.granite.crx2oak.quickstart.extension.Main.<init>(Main.java: 321) [crx2oak-quickstart-extension.jar:1.0.14] at com.adobe.granite.crx2oak.quickstart.extension.Main.main(Main.java:39 2) [crx2oak-quickstart-extension.jar:1.0.14] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7. 0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7. 0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.7.0_75] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_75] at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:862) [ae m-quickstart-6.1.0.jar:0.0.0.0_0_0_6_1_] at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:940) [aem- quickstart-6.1.0.jar:0.0.0.0_0_0_6_1_] Caused by: javax.jcr.RepositoryException: Failed to copy content at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUp grade.java:335) ~[na:na] at com.adobe.granite.crx2oak.CRX2Oak.crx2oak(CRX2Oak.java:393) ~[na:na] at com.adobe.granite.crx2oak.CRX2Oak.crx2oak(CRX2Oak.java:303) ~[na:na] at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:256) ~[na:na] ... 12 common frames omittedCaused by: javax.jcr.RepositoryException: Privilege definition with name 'crx:re plicate' already exists.at org.apache.jackrabbit.oak.security.privilege.PrivilegeDefinitionWrite r.writeDefinitions(PrivilegeDefinitionWriter.java:106) ~[na:na] at org.apache.jackrabbit.oak.security.privilege.PrivilegeDefinitionWrite r.writeDefinition(PrivilegeDefinitionWriter.java:67) ~[na:na] at org.apache.jackrabbit.oak.security.privilege.PrivilegeManagerImpl.reg isterPrivilege(PrivilegeManagerImpl.java:86) ~[na:na] at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copyCustomPrivile ges(RepositoryUpgrade.java:496) ~[na:na] at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUp grade.java:283) ~[na:na] ... 15 common frames omitted

 

Any help in resolving is appreciated.

thanks,

PVR

PS:  I have also tried hardcoding the datastore path for windows (full absolute path) as mentioned in : https://docs.adobe.com/docs/en/aem/6-1/release-notes/known-issues.html#Known%20Issues

to no use !

Translate
Level 2
Oct 16, 2015 2:27 AM UTC

Hi,

I have resolved the Perm Size and heap issues. But as you mentioned I am going through the error logs and getting this. This may be the possible reasons of repository exception. Could you please confirm it.

 

*ERROR* [FelixStartLevel] org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore Exception while adding root record with name repository-3192b9a2-d5c4-4283-8194-ea10b6a419d2, {}
java.io.FileNotFoundException: .crx-quickstart
epository
epositorydatastore\repository-3192b9a2-d5c4-4283-8194-ea10b6a419d2 (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
   
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jackrabbit.core.data.DataStoreException: Could not add root record
    at org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.addMetadataRecord(OakFileDataStore.java:153)
    at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.addMetadataRecord(DataStoreBlobStore.java:403)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:356)
    ... 36 common frames omitted
Caused by: java.io.FileNotFoundException: .crx-quickstart
epository
epositorydatastore\repository-3192b9a2-d5c4-4283-8194-ea10b6a419d2 (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.addMetadataRecord(OakFileDataStore.java:143)
    ... 38 common frames omitted

 

 

*ERROR* [FelixDispatchQueue] com.adobe.cq.social.cq-social-commons-oauth FrameworkEvent ERROR (org.osgi.framework.BundleException: Unresolved constraint in bundle com.adobe.cq.social.cq-social-commons-oauth [258]: Unable to resolve 258.0: missing requirement [258.0] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.granite.auth.oauth)(version>=2.0.0)(!(version>=3.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.adobe.cq.social.cq-social-commons-oauth [258]: Unable to resolve 258.0: missing requirement [258.0] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.granite.auth.oauth)(version>=2.0.0)(!(version>=3.0.0)))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Unknown Source)

Translate
Adobe Employee
Oct 16, 2015 2:27 AM UTC

Hi,

first you need to specify the parameters for PermGem and Heap, you are getting warnings that the default values for your system are being used which are insuficient.

-XX:MaxPermSize=256m -Xmx1024M

The errors: 

Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

Show your repository has not started, the reason for this will be earlier in the log. It could be there was a serious error, but AEM continued to try and start. Please check your error log for exceptions much before the above message.

Regards

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:27 AM UTC

If you are following the Official AEM docs and you are getting this error - please open an AEM ticket. 

Translate