Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

VersionManagerImpl Refuse to create new version on page activation

Avatar

Level 3

Hi,

I've a few pages that have been rolled out using MSM and then manually activated/published. The problem is that some of them don't have any versions created on publication.

Looking at a page with versions I see:

{

"jcr:primaryType": "cq:Page",

"jcr:createdBy": "...",

"jcr:created": "Tue Aug 15 2017 22:55:32 GMT+0000",

"jcr:content": {

  "jcr:primaryType": "cq:PageContent",

  "jcr:mixinTypes": [

    "mix:versionable",

    "cq:LiveRelationship"

  ],

  "jcr:createdBy": "162738",

  "jcr:title": "Visa and health",

  "cq:lastReplicationAction": "Activate",

  "jcr:versionHistory": "5a9ba82c-1853-4ff8-8e5d-2ba6156d072b",

  "cq:template": "/apps/xxx/global/templates/full-width",

  "cq:lastReplicatedBy": "320432",

  "redirectTarget": "/content/...",

  "cq:lastRolledout": "Wed Aug 16 2017 06:38:12 GMT+0000",

  "jcr:predecessors": [

    "1484877d-47e8-410d-ba23-46cb1c58bf72"

  ],

  "jcr:created": "Tue Aug 15 2017 22:55:32 GMT+0000",

  "cq:lastReplicated": "Wed Aug 16 2017 02:08:05 GMT+0000",

  "cq:lastModified": "Wed Aug 16 2017 01:18:52 GMT+0000",

  "showInFooter@Delete": "true",

  "cq:cloudserviceconfigs": [

    "/etc/cloudservices/dynamictagmanagement/xxx"

  ],

  "jcr:description": "......",

  "jcr:baseVersion": "1484877d-47e8-410d-ba23-46cb1c58bf72",

  "jcr:isCheckedOut": true,

  "pageTitle": "....",

  "jcr:uuid": "4b0fbf6a-7be3-43e2-820f-6d8a4ef95f80",

  "sling:resourceType": "xxx/global/components/pages/full-width",

  "textIsRich": "true",

  "cq:lastRolledoutBy": "...",

  "cq:lastModifiedBy": "..."

}

}

Without the versions I see:

{

"jcr:primaryType": "cq:Page",

"jcr:createdBy": "...",

"jcr:created": "Tue Aug 15 2017 23:02:34 GMT+0000",

"jcr:content": {

  "jcr:primaryType": "cq:PageContent",

  "jcr:mixinTypes": [

    "cq:LiveRelationship"

  ],

  "jcr:createdBy": "162738",

  "jcr:title": "...",

  "cq:lastReplicationAction": "Activate",

  "cq:template": "/apps/xxx/global/templates/full-width",

  "cq:lastReplicatedBy": "...",

  "cq:lastRolledout": "Wed Aug 16 2017 06:36:31 GMT+0000",

  "jcr:created": "Tue Aug 15 2017 23:02:34 GMT+0000",

  "cq:lastReplicated": "Wed Aug 16 2017 01:44:46 GMT+0000",

  "cq:lastModified": "Wed Aug 16 2017 00:08:53 GMT+0000",

  "showInFooter@Delete": "true",

  "jcr:description": "......",

  "pageTitle": "......",

  "sling:resourceType": "xxx/global/components/pages/full-width",

  "textIsRich": "true",

  "cq:lastRolledoutBy": "...",

  "cq:lastModifiedBy": "..."

}

}

Notably differences include the cq:LiveRelationship mixin and associated version properties. In testing I determined that the mixin is added when the page is versioned (when publishing), not before.

The most interesting thing I've seen in the logs is

16.08.2017 02:04:41.374 *INFO* [127.0.0.1 [1502849081372] POST /bin/replicate HTTP/1.1] com.day.cq.wcm.core.impl.VersionManagerImpl Refuse to create new version for unmodified page /content/xxx/...

which seems the key to the issue. Why would aem refuse to create a new version for a page that wasn't even published before?

Looking in detail at both pages I see some differences in the sequence of the dates (modified, rolled out, activated), but still, I think the previous question stands.

Any ideas?

Thx,

Federico


PS: aem 6.1 SP2

6 Replies

Avatar

Level 10

Did this issue start happening or always been happening?

Avatar

Employee Advisor

Hi,

typically you see this message, when you activate a page again and you haven't done any change since the last creation of a version.

Avatar

Level 3

> Did this issue start happening or always been happening?

I really don't know, since I just started investigating this and our logs don't go too far back. But there have been some reports of missing versions in the past, so I assume it has happened before. Seems rather infrequent though.

> typically you see this message, when you activate a page again and you haven't done any change since the last creation of a version.

That makes sense, but as mentioned, it's a new page, so there's no preexisting version. Also it happens to some pages, not all of them.

Looking at the VersionManagerImpl code we were able to track this to the values of properties cq:lastReplicated and cq:lastModified, were cq:lastReplicated is not null and happened after cq:lastModified. We still don't know how that is possible though, since it's a new page and I've verified that rolling out actually strips the cq:lastReplicated property.

Avatar

Employee Advisor

Have you considered the case, that an author can also trigger the creation of a version?

Jörg

Avatar

Level 3

Yes, but it's definitely not that case. I've checked with the authors and also I can see the "Refuse to create new version" msg across all the different sites. Even if they created a version of the page before rolling it out, I don't think it would produce this behaviour.

Avatar

Level 2

I'm facing the same issue, My authors are scheduling a page at different time of the day that who are editing for the whole week, That means there are almost 10+ plus schedule activations and deactivations, So AEM is refusing to create some versions of the page, Is this an Existing bug from AEM or Is there any fix for this ? Is there any alternative approach for authors to schedule activations for single page ?