cancel
Showing results for 
Search instead for 
Did you mean: 

Replication error: Aspect is invalid

xarope
Champ in-the-making
Champ in-the-making
To simulate a HQ->regional office setup, I've setup replication between a master site (Alfresco Community 4.0d) and a secondary, test, site (Alfresco Community 4.0b), by:

1) enabling "replication.enabled=true" and "replication.transfer.readonly=false" in alfresco-global.properties

2) added the repository ID field for the master server, in the test site's share-config-custom.xml.

3) On the master server, I then created a folder under Repository / Data Dictionary / Transfers / Transfer Targets / Default group, then edited the properties to add in the test site's host, port, protocol, username+password, enabled it and saved the settings.

4) I then went to Admin Tools / Replication Jobs, created a new job, chose the testing share site as a payload, with the above (3) transfer target, enabled it.

5) On the target share, I created a site, named the same as the testing share site on the master server

6) Finally, back on the master server, I then clicked on "Run Job".

Unfortunately, I get this error about "The aspect is invalid: {http://www.alfresco.org/model/system/1.0}hidden"

The full XML report looks like this:

<report:transferReport><report:target name="sgcms01" endpointHost="sgcms01" endpointPort="8080"/><report:definition isReadOnly="true" isSync="true" numberOfNodes="81"/><report:exception type="org.alfresco.service.cmr.transfer.TransferException" message="03030640 The aspect is invalid: {http://www.alfresco.org/model/system/1.0}hidden'/><report:events><report:eventStartState date="2012-04-03T16:00:10.380+08:00" state="START">Enter State: START</report:eventStartState><report:eventBegin date="2012-04-03T16:00:10.777+08:00" transferId="workspace://SpacesStore/530093ee-a619-4f37-8d41-3b1d273e15f7">begin transferId:workspace://SpacesStore/530093ee-a619-4f37-8d41-3b1d273e15f7</report:eventBegin><report:eventEndState date="2012-04-03T16:00:10.778+08:00" state="START"/><report:eventStartState date="2012-04-03T16:00:10.778+08:00" state="SENDING_SNAPSHOT">Enter State: SENDING_SNAPSHOT</report:eventStartState><report:eventSendSnapshot date="2012-04-03T16:00:10.778+08:00"/><report:eventEndState date="2012-04-03T16:00:11.343+08:00" state="SENDING_SNAPSHOT"/><report:eventStartState date="2012-04-03T16:00:11.343+08:00" state="SENDING_CONTENT">Enter State: SENDING_CONTENT</report:eventStartState><report:eventSendContent date="2012-04-03T16:00:11.343+08:00" position="1" range="81" size="2247112"/><report:eventSendContent date="2012-04-03T16:00:11.343+08:00" position="2" range="81" size="2956"/><report:eventSendContent date="2012-04-03T16:00:11.343+08:00" position="3" range="81" size="6342"/><report:eventSendContent date="2012-04-03T16:00:11.343+08:00" position="4" range="81" size="272"/><report:eventSendContent date="2012-04-03T16:00:11.343+08:00" position="5" range="81" size="46965"/><report:eventSendContent date="2012-04-03T16:00:11.343+08:00" position="6" range="81" size="6238"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="7" range="81" size="61952"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="8" range="81" size="532"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="9" range="81" size="5509"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="10" range="81" size="5361"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="11" range="81" size="368"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="12" range="81" size="505874"/><report:eventSendContent date="2012-04-03T16:00:11.624+08:00" position="13" range="81" size="874659"/><report:eventSendContent date="2012-04-03T16:00:11.782+08:00" position="14" range="81" size="3056626"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="15" range="81" size="29750967"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="16" range="81" size="158235"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="17" range="81" size="4630"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="18" range="81" size="6368"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="19" range="81" size="338"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="20" range="81" size="761"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="21" range="81" size="1161"/><report:eventSendContent date="2012-04-03T16:00:11.977+08:00" position="22" range="81" size="3129"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="23" range="81" size="7372"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="24" range="81" size="5931"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="25" range="81" size="6"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="26" range="81" size="6075"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="27" range="81" size="101426"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="28" range="81" size="47584"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="29" range="81" size="111616"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="30" range="81" size="358912"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="31" range="81" size="165712"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="32" range="81" size="288"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="33" range="81" size="7386"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="34" range="81" size="5777"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="35" range="81" size="58368"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="36" range="81" size="179600"/><report:eventSendContent date="2012-04-03T16:00:13.020+08:00" position="37" range="81" size="755"/><report:eventSendContent date="2012-04-03T16:00:13.162+08:00" position="38" range="81" size="1073868"/><report:eventSendContent date="2012-04-03T16:00:13.300+08:00" position="39" range="81" size="126308"/><report:eventSendContent date="2012-04-03T16:00:13.300+08:00" position="40" range="81" size="1416066"/><report:eventSendContent date="2012-04-03T16:00:13.552+08:00" position="41" range="81" size="5530"/><report:eventSendContent date="2012-04-03T16:00:13.552+08:00" position="42" range="81" size="70"/><report:eventSendContent date="2012-04-03T16:00:13.552+08:00" position="43" range="81" size="16832"/><report:eventSendContent date="2012-04-03T16:00:13.552+08:00" position="44" range="81" size="2182112"/><report:eventSendContent date="2012-04-03T16:00:13.552+08:00" position="45" range="81" size="364"/><report:eventSendContent date="2012-04-03T16:00:13.552+08:00" position="46" range="81" size="112786"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="47" range="81" size="6756"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="48" range="81" size="102026"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="49" range="81" size="278"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="50" range="81" size="334"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="51" range="81" size="268"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="52" range="81" size="5551"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="53" range="81" size="1022185"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="54" range="81" size="107939"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="55" range="81" size="284"/><report:eventSendContent date="2012-04-03T16:00:13.730+08:00" position="56" range="81" size="6328"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="57" range="81" size="537"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="58" range="81" size="292"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="59" range="81" size="280"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="60" range="81" size="144680"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="61" range="81" size="17309"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="62" range="81" size="17664"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="63" range="81" size="8134"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="64" range="81" size="737"/><report:eventSendContent date="2012-04-03T16:00:13.899+08:00" position="65" range="81" size="282"/><report:eventEndState date="2012-04-03T16:00:14.120+08:00" state="SENDING_CONTENT"/><report:eventStartState date="2012-04-03T16:00:14.120+08:00" state="PREPARING">Enter State: PREPARING</report:eventStartState><report:eventEndState date="2012-04-03T16:00:14.228+08:00" state="PREPARING"/><report:eventStartState date="2012-04-03T16:00:14.228+08:00" state="COMMITTING">Enter State: COMMITTING</report:eventStartState><report:eventCommittingStatus date="2012-04-03T16:00:14.560+08:00" position="82" range="163">committing 82 of 163</report:eventCommittingStatus><report:eventError date="2012-04-03T16:00:16.671+08:00">03030640 The aspect is invalid: {http://www.alfresco.org/model/system/1.0}hidden</report:eventError><report:eventEndState date="2012-04-03T16:00:16.855+08:00" state="COMMITTING"/><report:eventStartState date="2012-04-03T16:00:16.855+08:00" state="ERROR">Enter State: ERROR</report:eventStartState><report:eventReport date="2012-04-03T16:00:16.855+08:00" nodeRef="workspace://SpacesStore/7363d0ce-bf42-400f-9967-f20cff5b7877" reportType="DESTINATION"/></report:events></report:transferReport>

It seems to be running (committing 82 of 163), but I don't see any replication results, and of course it then aborts with this "aspect is invalid" error.

Is there any more informational error which can tell me what is the aspect that is "invalid"?  Once I know, I can solve the problem, but getting there is the fun part…!
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
I think one of your repos is missing an aspect defintion.  In particular sys:hidden is a very new aspect that may not exist in
Alfresco Community 4.0b.

Can you make both repos the same version?

You can configure the transfer service to strip out the hidden aspect.  
Or add the definition of the hidden aspect to your 4.0b repo/

But please raise a JIRA since it makes little sense to transfer a hidden file in the first place.

xarope
Champ in-the-making
Champ in-the-making
Thanks, so literally the aspect is called sys:hidden?

I've raised https://issues.alfresco.com/jira/browse/ALF-13593

I do plan to update the target server to 4.0d, but it was an interesting exercise to see how the various different versions would cope (since in production, likely the regional servers will not be in sync in terms of versions all the time), so at least now I know we do have to be careful about the versions.

With regards to your comment about "You can configure the transfer service to strip out the hidden aspect. ", how would I do that?  I don't see anything in particular about this in http://wiki.alfresco.com/wiki/Transfer_Service.