Showing posts with label AEM 6.3. Show all posts
Showing posts with label AEM 6.3. Show all posts

Segment not found/repository inconsistency in AEM 6.3


Statement : Segment Not found exceptions in AEM 6.3


ERROR [Apache Sling Repository Startup Thread] o.a.j.o.s.SegmentNotFoundExceptionListener (SegmentNotFoundExceptionListener.java:48) - Segment not found: 559ffeq2weq71-f9f2-4771-a6d7-334b86623f17ed. SegmentId age=2345ms
o    org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 559f43fe71-f9f2-4771-a6d7-334b866234f17ed not found


ERROR [Apache Sling Repository Startup Thread] 
o    org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 559ffe7112-f9f2-4771-a6d7-334b866f1127ed not found
 at org.apache.jackrabbit.oak.segment.file.FileStore$8.call(FileStore.java:6022)
 at org.apache.jackrabbit.oak.segment.file.FileStore$8.call(FileStore.java:5342)

Solution:  

  •  Download the oak-run-1.x.x.jar version matching with your running instance.
  • Stop the instance and navigate to path of downloadded jar file
  •  Preform the consistency check with below comamnd
              java -jar oak-run-1.6.x.x.jar check /path/to/crx-                                                                  quickstart/repository/segmentstore
 It will traverse backward to find the good state of the segments.
  • Revert the repository to this revision by editing ./crx-quickstart/repository/segmentstore/journal.log and Remove all lines after the line containing the latest good revision.
  • Delete all ./crx-quickstart/repository/segmentstore/*.bak files.
  • Run checkpoint clean-up to remove orphaned checkpoints: 
             java -jar oak-run-1.6.x.x.jar checkpoints /path/to/crx-                                                      quickstart/repository/segmentstore rm-unreferenced

  • Finally run the compaction command to compact the repository
             java -Xmx6000m -jar oak-run-1.6.x.x.jar compact /path/to/crx-                                         quickstart/repository/segmentstore


Environment  : AEM 6.3  with SP2+CFP1+CFP2 

Transient workflow is not working - workflow instance is not getting initiated in AEM 6.3

Statement - Asset update workflow was converted to Transient workflow but transient workflow was not working.

Solution  :

clear the stale workflows, please follow below steps:
  1. Go to system console (http://localhost:4502/system/console)
  1. Stop the following bundles
  • Adobe Granite Replication (com.day.cq.cq-replication)
  • Apache Sling Event Support (org.apache.sling.event)
  1. Open crx/de
  2. Go to /etc/workflow/instances, clear everything under this folder. Yon can also move /etc/workflow/instances under /tmp and then create a new /etc/workflow/instances folder with the exact same properties of the original /etc/workflow/instances
  1. Go to /var/eventing/jobs and delete all the content under it.
  1. Go to /var/replication/data and Delete all the content under it.
  1. Start the bundles stopped in step 2.
  1. Now try running transient workflow.
That's It!


Statement - How to change the AEM  post login default page redirection from /aem/start to /projects.html

Solution :

  • Go to the system/console/configMgr
  • Search for DAY CQ ROOT Mapping and open for edit
    • Change the Target path from /aem/start.html to /projects.html as shown in the below screenshot
    • Save the changes. That's It!.
    • Now hit the URL : http://localhost:4502/ post login it will redirect to /projects.html

    AEM6.3_How to increase the limit for the Uploadable file

    Statement - How to increase the limit for the Upload able file

    Issue -  Not able to upload file which size is more then 2 GB

    Solution :

    1. Go to this path http://localhost:4502/crx/de/index.jsp#/libs/dam/gui/content/assets/fileupload
    2.  Under Properties tab look for size limit
    3. Default size is 2GB
    4. Change this Value to from 2 GB to 4 GB i.e 4294967296 in bytes 
    5. Save the changes
    6. That's it!, now 4GB file can be uploaded to the AEM server.

    AEM 6.3 Touch UI and Classic Console URL in Browser and CRXDE console


    Navigation Tab
    Console Name
    Console URL in AEM
    Node URL in CRXDE
    Node URL in CRXDE console for Touch UI Navigation
    Projects
    /projects.html/content/projects
    /libs/cq/core/content/projects
    /libs/cq/core/content/nav/projects
    Sites
    /sites.html/content
    /libs/wcm/core/content/sites
    /libs/cq/core/content/nav/sites
    Experience fragments
    /aem/experience-fragments.html/content/experience-fragments
    /libs/cq/experience-fragments/content/experience-fragments
    /libs/cq/core/content/nav/experiencefragments
    Screens
    /screens.html/content/screens
    /libs/screens/dcc/content/main
    /libs/cq/core/content/nav/screens
    Assets
    Files
    /assets.html/content/dam
    /libs/dam/gui/content/assets
    /libs/cq/core/content/nav/assets/files
    Collections
    /libs/dam/gui/content/collections.html/content/dam/collections
    /libs/dam/gui/content/collections
    /libs/cq/core/content/nav/assets/collections
    Shared links
    /libs/dam/gui/content/assets/mylinkshares.html
    /libs/dam/gui/content/assets/mylinkshares
    /libs/cq/core/content/nav/assets/links
    Templates
    /libs/dam/gui/content/idsprint/templates.html/content/dam/templates
    /libs/dam/gui/content/idsprint/templates
    /libs/cq/core/content/nav/assets/templates
    Catalogs
    /libs/dam/gui/content/idsprint/catalogs.html/content/dam/catalogs
    /libs/dam/gui/content/idsprint/catalogs
    /libs/cq/core/content/nav/assets/catalogs
    Content Services
    Apps
    /aem/apps.html/content/mobileapps
    /libs/mobileapps/admin/content/catalog
    /libs/cq/core/content/nav/contentservices/apps
    Forms
    Forms & documents
    /aem/forms.html/content/dam/formsanddocuments
    /libs/fd/fm/gui/content/forms
    /libs/cq/core/content/nav/forms/formsanddocuments
    Themes
    /aem/forms.html/content/dam/formsanddocuments-themes
    /libs/fd/fm/gui/content/forms
    /libs/cq/core/content/nav/forms/themes
    Personalization
    Activities
    /libs/cq/personalization/touch-ui/content/activities.html
    /libs/cq/personalization/touch-ui/content/activities
    /libs/cq/core/content/nav/personalization/activities
    Offers
    /libs/cq/personalization/touch-ui/content/offers.html
    /libs/cq/personalization/touch-ui/content/offers
    /libs/cq/core/content/nav/personalization/offers
    Audiences
    /libs/cq/personalization/touch-ui/content/audiences.html
    /libs/cq/personalization/touch-ui/content/audiences
    /libs/cq/core/content/nav/personalization/audiences
    Commerce
    Catalogs
    /aem/catalogs.html/content/catalogs
    /libs/commerce/gui/content/catalogs
    /libs/cq/core/content/nav/commerce/catalogs
    Products
    /aem/products.html/etc/commerce/products
    /libs/commerce/gui/content/products
    /libs/cq/core/content/nav/commerce/products
    Collections
    /aem/collections.html/etc/commerce/collections
    /libs/commerce/gui/content/collections
    /libs/cq/core/content/nav/commerce/collections
    Orders
    /aem/orders.html/etc/commerce/orders
    /libs/commerce/gui/content/orders
    /libs/cq/core/content/nav/commerce/orders
    Communities
    Sites
    /communities/sites
    /libs/social/console/content-shell3/sites
    /libs/cq/core/content/nav/communities/sites
    Moderation
    /communities/moderation.html/content/sites
    /libs/social/moderation/content-shell3/admindashboard
    /libs/cq/core/content/nav/communities/moderation
    Reports
    /communities/reports
    /libs/social/reporting/content-shell3/reports$1
    /libs/cq/core/content/nav/communities/reports
    Resources
    /communities/resources
    /libs/social/enablement/content-shell3/enablement-sites
    /libs/cq/core/content/nav/communities/resources
    Groups
    /communities/groups.html/content
    /libs/social/members/content-shell3/groups
    /libs/cq/core/content/nav/communities/groups
    Members
    /communities/members.html/content
    /libs/social/members/content-shell3/members
    /libs/cq/core/content/nav/communities/members
    Tools Tab
    Console Name
    Console URL in AEM
    Node URL in CRXDE
    Node URL in CRXDE console for Touch UI Navigation
    General
    CRXDE Lite
    /crx/de/index.jsp
    /libs/cq/core/content/nav/tools/general/crxdelite
    Search Forms
    /libs/cq/core/content/tools/customsearch/searchfacetformlister.html
    /libs/cq/core/content/tools/customsearch/searchfacetformlister
    /libs/cq/core/content/nav/tools/general/customsearchfacets
    Tagging
    /libs/cq/tagging/gui/content/tags.html/etc/tags
    /libs/cq/tagging/gui/content/tags/etc/tags
    /libs/cq/core/content/nav/tools/general/tagging
    Templates
    /libs/wcm/core/content/sites/templates.html/conf
    /libs/wcm/core/content/sites/templates
    /libs/cq/core/content/nav/tools/general/templates
    Translation Configuration
    /libs/cq/translation/translationrules/contexts.html
    /libs/cq/translation/translationrules/contexts
    /libs/cq/core/content/nav/tools/general/translationRules
    Components
    /libs/wcm/core/content/sites/components.html
    /libs/wcm/core/content/sites/components
    /libs/cq/core/content/nav/tools/general/components
    Configuration Browser
    /libs/granite/configurations/content/view.html/conf
    /libs/granite/configurations/content/view/conf
    /libs/cq/core/content/nav/tools/general/configuration-browser
    Workflow
    Models
    /libs/cq/workflow/admin/console/content/models.html/etc/workflow/models
    /libs/cq/workflow/admin/console/content/models/etc/workflow/models
    /libs/cq/core/content/nav/tools/workflow/models
    Instances
    /libs/cq/workflow/admin/console/content/instances.html
    /libs/cq/workflow/admin/console/content/instances
    /libs/cq/core/content/nav/tools/workflow/instances
    Launchers
    /libs/cq/workflow/admin/console/content/launchers.html
    /libs/cq/workflow/admin/console/content/launchers
    /libs/cq/core/content/nav/tools/workflow/launchers
    Archive
    /libs/cq/workflow/admin/console/content/archive.html
    /libs/cq/workflow/admin/console/content/archive
    /libs/cq/core/content/nav/tools/workflow/archive
    Failures
    /libs/cq/workflow/admin/console/content/failures.html
    /libs/cq/workflow/admin/console/content/failures
    /libs/cq/core/content/nav/tools/workflow/failures
    Operations
    Web Console
    /system/console/configMgr
    Please use the steps on following link to provide access:
    https://sling.apache.org/documentation/bundles/web-console-extensions.html
    /libs/cq/core/content/nav/tools/operations/webconsole
    Testing
    /libs/granite/testing/hobbes.html
    /libs/granite/testing/hobbes
    /libs/cq/core/content/nav/tools/operations/testing
    Configuration
    /miscadmin
    /libs/wcm/core/content/misc
    /libs/cq/core/content/nav/tools/operations/configuration
    Backup
    /libs/granite/backup/content/admin.html
    /libs/granite/backup/content/admin
    /libs/cq/core/content/nav/tools/operations/backup
    Maintenance
    /libs/granite/operations/content/maintenance.html
    /libs/granite/operations/content/maintenance
    /libs/cq/core/content/nav/tools/operations/maintenance
    Health Reports
    /libs/granite/operations/content/healthreports/healthreportlist.html
    /libs/granite/operations/content/healthreports/healthreportlist
    /libs/cq/core/content/nav/tools/operations/healthreports
    Monitoring
    /libs/granite/operations/content/monitoring/page.html
    /libs/granite/operations/content/monitoring/page
    /libs/cq/core/content/nav/tools/operations/monitoring
    Diagnosis
    /libs/granite/operations/content/diagnosis.html
    /libs/granite/operations/content/diagnosis
    /libs/cq/core/content/nav/tools/operations/diagnosis
    Sites
    Blueprints
    /libs/wcm/msm/gui/content/blueprintconfig.html
    /libs/wcm/msm/gui/content/blueprintconfig
    /libs/cq/core/content/nav/tools/sites/blueprints
    Launches
    /libs/launches/content/launches.html
    /libs/launches/content/launches
    /libs/cq/core/content/nav/tools/sites/launches
    ContextHub
    /etc/cloudsettings.html
    /etc/cloudsettings
    /libs/cq/core/content/nav/tools/sites/contexthub
    Assets
    Assets in left menu
    /libs/cq/core/content/nav/tools/assets
    Metadata Profiles
    /libs/dam/gui/content/processingprofilepage/metadataprofiles.html
    /libs/dam/gui/content/processingprofilepage/metadataprofiles
    /libs/dam/gui/content/nav/tools/assets/metadata
    Asset Reports
    /libs/dam/gui/content/reports/reportspage.html
    /libs/dam/gui/content/reports/reportspage
    /libs/dam/gui/content/nav/tools/assets/assetreports
    Metadata Schemas
    /libs/dam/gui/content/metadataschemaeditor/schemalist.html
    /libs/dam/gui/content/metadataschemaeditor/schemalist
    /libs/dam/gui/content/nav/tools/assets/metadataschemas
    Desktop Tools for AEM
    /libs/dam/gui/content/nav/tools/assets/desktop-tools
    Insights Configuration
    /libs/dam/gui/content/assetinsights/wizard/configure.html
    /libs/dam/gui/content/assetinsights/wizard/configure
    /libs/dam/gui/content/nav/tools/assets/configwizard
    Resources
    Documentation
    /libs/cq/core/content/nav/tools/resources/documentation
    Developer Resources
    /libs/cq/core/content/nav/tools/resources/dev
    Deployment
    Replication
    /etc/replication.html
    /etc/replication
    /libs/cq/core/content/nav/tools/deployment/replication
    Distribution
    /libs/granite/distribution/content/distribution.html
    /libs/granite/distribution/content/distribution
    /libs/cq/core/content/nav/tools/deployment/distribution
    Packages
    /crx/packmgr
    Please use the steps on following link to revoke access:
    https://helpx.adobe.com/experience-manager/kb/LimitAccessCRXandCRXDE.html
    /libs/cq/core/content/nav/tools/deployment/packages
    Package Share
    /crx/packageshare
    Please use the steps on following link to revoke access:
    https://helpx.adobe.com/experience-manager/kb/LimitAccessCRXandCRXDE.html
    /libs/cq/core/content/nav/tools/deployment/packageshare
    Topology
    /libs/granite/topology/content/view.html
    /libs/granite/topology/content/view
    /libs/cq/core/content/nav/tools/deployment/topology
    Offloading
    /libs/granite/offloading/content/view.html
    /libs/granite/offloading/content/view
    /libs/cq/core/content/nav/tools/deployment/offloading
    Cloud Services
    /libs/cq/core/content/tools/cloudservices.html
    /libs/cq/core/content/tools/cloudservices
    /libs/cq/core/content/nav/tools/deployment/cloudservices
    Security
    Users
    /libs/granite/security/content/useradmin.html
    /libs/granite/security/content/useradmin
    /libs/cq/core/content/nav/tools/security/users
    Groups
    /libs/granite/security/content/groupadmin.html
    /libs/granite/security/content/groupadmin
    /libs/cq/core/content/nav/tools/security/groups
    OAuth Clients
    /libs/granite/oauth/content/clients.html
    /libs/granite/oauth/content/clients
    /libs/cq/core/content/nav/tools/security/oauth
    Permissions
    /useradmin
    /libs/cq/security/content/admin
    /libs/cq/core/content/nav/tools/security/permissions
    Commerce
    Payment Methods
    /libs/commerce/gui/content/paymentmethods.html/etc/commerce/payment-methods
    /libs/commerce/gui/content/paymentmethods/etc/commerce/payment-methods
    /libs/cq/core/content/nav/tools/commerce/payment-methods
    Shipping Methods
    /libs/commerce/gui/content/shippingmethods.html/etc/commerce/shipping-methods
    /libs/commerce/gui/content/shippingmethods/etc/commerce/shipping-methods
    /libs/cq/core/content/nav/tools/commerce/shipping-methods
    Communities
    Storage Configuration
    /communities/admin/defaultsrp
    /libs/social/console/content-shell3/defaultSrpConfig
    /libs/cq/core/content/nav/tools/communities/storageconfig
    Component Guide
    /editor.html/content/community-components/en.html
    /content/community-components/en
    /libs/cq/core/content/nav/tools/communities/componentguide
    Community Functions
    /communities/communityfunctions
    /libs/social/console/content-shell3/communityfunctions
    /libs/cq/core/content/nav/tools/communities/communityfunctions
    Group Templates
    /communities/communitygrouptemplates
    /libs/social/console/content-shell3/communitygrouptemplates
    /libs/cq/core/content/nav/tools/communities/communitygrouptemplates
    Community Badges
    /communities/badges
    /libs/social/gamification/content-shell3/badges
    /libs/cq/core/content/nav/tools/communities/badges
    Sites Templates
    /communities/communitysitetemplates
    /libs/social/console/content-shell3/communitysitetemplates