April 13, 2020
Estimated Post Reading Time ~

Inplace upgrade to CQ 5.4 GA

  1. turn off replication agents
  2. back up (snapshot or online backup.. in case something goes wrong)
  3. remove /etc/workflow/instances
  4. create /etc/workflow/instances :: sling:Folder
  5. remove /var/eventing/jobs
  6. create /var/eventing/jobs :: sling::OrderedFolder
  7. change the admin password to "admin" (for CRX.. probably for other things too)
  8. shutdown CQ
  9. cp crx-quickstart/server/serverctl ~/backup/ (back up other stuff too if you want to)
  10. rm -rf crx-quickstart/launchpad
  11. rm -rf crx-quickstart/server
  12. rm -rf crx-quickstart/logs
  13. mv ~/Downloads/cq-quickstart-5.4.0.jar /opt/cq/
  14. sudo su day (MAKE SURE you are the same user CQ runs as)
  15. java -XX:MaxPermSize=256m -Xmx1024m -Dsling.run.modes=author,production -jar cq-quickstart-5.4.0.jar -v -p 4502
  16. deploy.sh <build-number> (launchpad is wiped out.. so need to redeploy stuff)
  17. enable replication agents
  18. test
  19. restart CQ using serverctl
CQ upgrade gotchas:
admin password should be changed to "admin" or bad things happen.
emptying out /etc/workflow/instances save time for an upgrade.
removing crx-quickstart/launchpad does you many good. otherwise, OSGi bundles don't get fully upgraded.

make sure you restart CQ for an upgrade as a proper user. Otherwise, the crx-quickstart/repository will be messed up.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.