[MGNLMIGRATION-21] Install initial update fails with errors associated with Trigger migration scripts failing due to missing dialogs. Completely blocks installation. Created: 01/Apr/12  Updated: 25/Jul/12  Resolved: 25/Jul/12

Status: Closed
Project: Migration 4.4 to 4.5 (closed)
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: 1.1.2

Type: Bug Priority: Critical
Reporter: Mike Stran Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11.10
Magnolia 4.5.1
STK 2.0.1


Issue Links:
causality
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

When doing a fresh install of Magnolia, trying to run update on STK fails with the following stack trace. Note that I saw that this was reported and closed on the 24th of March but when you look at the files from the STK archive that are available online, they're all from an earlier date so if there was an update it doesn't appear to have made it out to web installs.

Stack Trace:
Could not install or update standard-templating-kit-migration module. Task 'Trigger migration scripts' failed. (PathNotFoundException: modules/standard-templating-kit/dialogs/generic/teasers/tabLinkList)
info.magnolia.module.delta.TaskExecutionException: Could not execute the groovy File '/scripts/migration/from4_4To4_5/Migration.groovy': modules/standard-templating-kit/dialogs/generic/teasers/tabLinkList
at info.magnolia.module.groovy.task.ExecuteGroovyFileTask.execute(ExecuteGroovyFileTask.java:82)
at info.magnolia.module.delta.ConditionalDelegateTask.execute(ConditionalDelegateTask.java:64)
at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:499)
at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:481)
at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:270)
at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:443)
at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:440)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:403)
at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:264)
at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:127)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.jcr.PathNotFoundException: modules/standard-templating-kit/dialogs/generic/teasers/tabLinkList



 Comments   
Comment by Ondrej Chytil [ 03/Apr/12 ]

Thanks for reporting this issue Mike.

Comment by Tomas Brimor [ 15/Jun/12 ]

We are also running in to the same problem when trying to upgrade from 4.4.6->4.5.3 and running scripts/migration/from4_4To4_5/ConfiguredMigration as instructed during the migration process.

How do we proceed?

also throws error for:

2012-06-15 14:24:10,369 ERROR module.groovy.console.MgnlGroovyInteractiveConsole: Error while evaluating script: 
javax.jcr.PathNotFoundException: modules/form/templates/components

even thought that path exist

Comment by Tomas Brimor [ 15/Jun/12 ]

adding an exist test before trying to remove will let us continue

if(hm.isExist("/modules/standard-templating-kit/dialogs/generic/teasers/tabLinkList")) {
    hm.delete("/modules/standard-templating-kit/dialogs/generic/teasers/tabLinkList");
}

although now hitting the issue stated above, where the path exists but the script doesn't think so:

2012-06-15 15:18:28,137 ERROR module.groovy.console.MgnlGroovyInteractiveConsole: Error while evaluating script: 
javax.jcr.PathNotFoundException: modules/form/templates/components
..
..
at scripts.migration.from4_4To4_5.form.ExtraFormTasks.execute(ExtraFormTasks:108)

Using the jcr query - dump:

/modules/form/templates/components
/modules/form/templates/components/jcr:uuid=13142afe-8dc7-48f7-b1f7-150ae9d2c4c4
/modules/form/templates/components/jcr:mixinTypes=mix:lockable
/modules/form/templates/components/jcr:created=2012-04-30T13:14:54.516+02:00
/modules/form/templates/components/jcr:primaryType=mgnl:content
/modules/form/templates/components/MetaData[mgnl:metaData]
/modules/form/templates/components/form[mgnl:contentNode]
/modules/form/templates/components/formEdit[mgnl:contentNode]
/modules/form/templates/components/formStep[mgnl:contentNode]
/modules/form/templates/components/formFile[mgnl:contentNode]
/modules/form/templates/components/formHidden[mgnl:contentNode]
/modules/form/templates/components/formSubmit[mgnl:contentNode]
/modules/form/templates/components/formPassword[mgnl:contentNode]
/modules/form/templates/components/formGroupEdit[mgnl:contentNode]
/modules/form/templates/components/formSelection[mgnl:contentNode]
/modules/form/templates/components/formGroupFields[mgnl:contentNode]
/modules/form/templates/components/formGroupEditItem[mgnl:contentNode]
/modules/form/templates/components/formCondition[mgnl:contentNode]
/modules/form/templates/components/formSummary[mgnl:contentNode]
Comment by Tomas Brimor [ 19/Jun/12 ]

I believe the difference in what the dump shows and what the migration script sees is due to the script not saving its actions until after full completion.

Enabling intermidiate save will make the dump show what the groovy script sees:

Welcome to the Magnolia Groovy Interactive Console! Type 'help' for more info and a list of available commands. [Using Groovy version 1.7.10].
mgnl> MgnlContext.getHierarchyManager("config").getContent("/modules/form/templates/");
===> 
(+) templates
  (+) pages

mgnl> 

Dump (repository: config, path: /modules/form/templates/, level 1)

/modules/form/templates
/modules/form/templates/jcr:uuid=44ea1b48-fb1b-40e5-9dae-575c9142cfa3
/modules/form/templates/jcr:mixinTypes=mix:lockable
/modules/form/templates/jcr:createdBy=admin
/modules/form/templates/jcr:created=2012-06-18T16:16:37.772+02:00
/modules/form/templates/jcr:primaryType=mgnl:content
/modules/form/templates/MetaData[mgnl:metaData]
/modules/form/templates/components[mgnl:content]

With intermidiate save

/modules/form/templates
/modules/form/templates/jcr:uuid=ff517c41-ca5d-465e-826a-6ab1b0dcb72e
/modules/form/templates/jcr:mixinTypes=mix:lockable
/modules/form/templates/jcr:createdBy=admin
/modules/form/templates/jcr:created=2012-06-18T16:18:35.302+02:00
/modules/form/templates/jcr:primaryType=mgnl:content
/modules/form/templates/MetaData[mgnl:metaData]
/modules/form/templates/pages[mgnl:content]
Generated at Mon Feb 12 10:16:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.