[MURLTRANS-6] Could not execute task: Path not found: /modules/url-translation Created: 10/Sep/18 Updated: 28/Feb/22 Resolved: 10/Sep/18 |
|
| Status: | Closed |
| Project: | URL Translation |
| Component/s: | None |
| Affects Version/s: | 5.6 |
| Fix Version/s: | 5.6.2 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Ian Cervantez | Assignee: | Richard Gange |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
Got this error while installing on Magnolia 5.7, Core 5.7.1. ERROR info.magnolia.module.InstallContextImpl 10.09.2018 04:25:01 -- [822/1200 tasks - Magnolia URL Translation Module (version 5.6.1)]> Could not install or update url-translation module. Task 'Create default config' failed. (PathNotFoundException: /modules/url-translation)ERROR info.magnolia.module.InstallContextImpl 10.09.2018 04:25:01 -- [822/1200 tasks - Magnolia URL Translation Module (version 5.6.1)]> Could not install or update url-translation module. Task 'Create default config' failed. (PathNotFoundException: /modules/url-translation)info.magnolia.module.delta.TaskExecutionException: Could not execute task: Path not found: /modules/url-translation at info.magnolia.module.delta.AbstractRepositoryTask.execute(AbstractRepositoryTask.java:59) ~[magnolia-core-5.7.jar:?] at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:511) [magnolia-core-5.7.jar:?] at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:493) [magnolia-core-5.7.jar:?] at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:279) [magnolia-core-5.7.jar:?] at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:407) [magnolia-core-5.7.jar:?] at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:404) [magnolia-core-5.7.jar:?] at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) [magnolia-core-5.7.jar:?] at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:273) [magnolia-core-5.7.jar:?] at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:126) [magnolia-core-5.7.jar:?] at java.lang.Thread.run(Thread.java:844) [?:?]Caused by: javax.jcr.PathNotFoundException: /modules/url-translation at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:576) ~[jackrabbit-core-2.16.1.jar:2.16.1] at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:129) ~[jackrabbit-core-2.16.1.jar:2.16.1] at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:125) ~[jackrabbit-core-2.16.1.jar:2.16.1] at org.apache.jackrabbit.core.session.SessionItemOperation.perform(SessionItemOperation.java:187) ~[jackrabbit-core-2.16.1.jar:2.16.1] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.16.1.jar:2.16.1] at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:363) ~[jackrabbit-core-2.16.1.jar:2.16.1] at org.apache.jackrabbit.core.SessionImpl.getNode(SessionImpl.java:1151) ~[jackrabbit-core-2.16.1.jar:2.16.1] at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-5.7.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-5.7.jar:?] at info.magnolia.module.delta.CreateNodeTask.doExecute(CreateNodeTask.java:68) ~[magnolia-core-5.7.jar:?] at info.magnolia.module.delta.AbstractRepositoryTask.execute(AbstractRepositoryTask.java:57) ~[magnolia-core-5.7.jar:?] ... 9 more
What makes this really weird is that when I look at the source on that version handler, it's a CreateNodeTask... So, the path shouldn't exist prior to the task execution.
|
| Comments |
| Comment by Richard Gange [ 10/Sep/18 ] |
|
Hi iancervantez- Thanks for creating the ticket. I see what you mean. This should have been done as bootstrap file. What you could do as a workaround is install v5.6 and add the configuration by hand. This configuration allows you to modify the query but it's not required. Either way I will try and get it fixed soon. Cheers |
| Comment by Richard Gange [ 10/Sep/18 ] |
|
Hi iancervantez- This issue has been fixed and released with v5.6.2. Cheers |
| Comment by Ian Cervantez [ 10/Sep/18 ] |
|
I'll give this a go in a few hours, but quick question: does this module get affected by the caching module? I've noticed in my authoring instance that when I rename pages those pages will show 404 errors no matter how many times I sign out and sign back into the authoring instance. However, after a few days of this, suddenly out of nowhere (I haven't changed anything) the pages start working again. |
| Comment by Richard Gange [ 11/Sep/18 ] |
|
On the author instance caching is disabled for the most part. You can always be doubly sure by turning off the filter with the enabled property. However, I have noticed an issue when I try to use the module with variants. The same type of thing happens that you describe. This is why in v5.6.1. we introduced the ability to configure the property name which holds the page name translation. The thinking was that the use of "name" as the property was causing the issue. Have a look at the configuration section here to see how you can change it to some other property. Perhaps that will fix your issue. |