Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Diego Morales
Problem upgrading to 6.2.0 CE
December 23, 2013 8:58 AM
Answer

Diego Morales

Rank: Junior Member

Posts: 50

Join Date: November 26, 2013

Recent Posts

Hello, I was running Liferay v. 6.1.0 and decided to upgrade to the latest version. It's very important that I keep the data. So with this in mind, I first upgraded to 6.1.2. Had to do some adjustments, especially regarding lost documents (??) I don't know what happened to them. For that I used an ext plugin which can be found here https://github.com/permeance/liferay-sample-verify-ext (not developed by me).
Then I had to update the permission system to version 6. And then tried to upgrade to version 6.2, but I'm now facing the following error:

  116:36:05,559 INFO  [localhost-startStop-1][VerifyProcess:55] Verifying com.liferay.portal.verify.VerifyDynamicDataMapping
  216:36:06,506 WARN  [localhost-startStop-1][VerifyDynamicDataMapping:110] Unable to add file entry 0-4_Minutes_110210.pdf
  3com.liferay.portlet.documentlibrary.NoSuchFileException: D:\liferay\liferay-portal-6.2.0-ce-ga1\data\document_library\29202\0\ddm\com.liferay.portlet.dynamicdatalists.model.DDLRecord\60793\1.1\attachment\1.0
  4        at com.liferay.portlet.documentlibrary.store.FileSystemStore.getFile(FileSystemStore.java:191)
  5        at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:257)
  6        at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFile(StoreProxyImpl.java:124)
  7        at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFile(SafeFileNameStoreWrapper.java:176)
  8        at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFile(DLStoreImpl.java:245)
  9        at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFile(DLStoreUtil.java:326)
 10        at com.liferay.portal.verify.VerifyDynamicDataMapping.addFileEntry(VerifyDynamicDataMapping.java:95)
 11        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:425)
 12        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateDDLFileUploadReferences(VerifyDynamicDataMapping.java:293)
 13        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:386)
 14        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:365)
 15        at com.liferay.portal.verify.VerifyDynamicDataMapping.doVerify(VerifyDynamicDataMapping.java:191)
 16        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
 17        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:66)
 18        at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:42)
 19        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
 20        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:111)
 21        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:76)
 22        at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:46)
 23        at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:146)
 24        at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:67)
 25        at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:240)
 26        at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:206)
 27        at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
 28        at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
 29        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
 30        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
 31        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
 32        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
 33        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
 34        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
 35        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
 36        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 37        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 38        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 39        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
 40        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
 41        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
 42        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 43        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 44        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 45        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 46        at java.lang.Thread.run(Thread.java:744)
 4716:36:06,590 WARN  [localhost-startStop-1][VerifyDynamicDataMapping:110] Unable to add file entry 0-4_Minutes_111610.pdf
 48com.liferay.portlet.documentlibrary.NoSuchFileException: D:\liferay\liferay-portal-6.2.0-ce-ga1\data\document_library\29202\0\ddm\com.liferay.portlet.dynamicdatalists.model.DDLRecord\60798\1.1\attachment\1.0
 49        at com.liferay.portlet.documentlibrary.store.FileSystemStore.getFile(FileSystemStore.java:191)
 50        at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:257)
 51        at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFile(StoreProxyImpl.java:124)
 52        at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFile(SafeFileNameStoreWrapper.java:176)
 53        at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFile(DLStoreImpl.java:245)
 54        at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFile(DLStoreUtil.java:326)
 55        at com.liferay.portal.verify.VerifyDynamicDataMapping.addFileEntry(VerifyDynamicDataMapping.java:95)
 56        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:425)
 57        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateDDLFileUploadReferences(VerifyDynamicDataMapping.java:293)
 58        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:386)
 59        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:365)
 60        at com.liferay.portal.verify.VerifyDynamicDataMapping.doVerify(VerifyDynamicDataMapping.java:191)
 61        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
 62        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:66)
 63        at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:42)
 64        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
 65        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:111)
 66        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:76)
 67        at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:46)
 68        at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:146)
 69        at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:67)
 70        at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:240)
 71        at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:206)
 72        at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
 73        at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
 74        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
 75        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
 76        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
 77        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
 78        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
 79        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
 80        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
 81        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 82        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 83        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 84        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
 85        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
 86        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
 87        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 88        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 89        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 90        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 91        at java.lang.Thread.run(Thread.java:744)
 9216:36:06,651 WARN  [localhost-startStop-1][VerifyDynamicDataMapping:110] Unable to add file entry 0-4_Minutes_120710.pdf
 93com.liferay.portlet.documentlibrary.NoSuchFileException: D:\liferay\liferay-portal-6.2.0-ce-ga1\data\document_library\29202\0\ddm\com.liferay.portlet.dynamicdatalists.model.DDLRecord\60809\1.0\attachment\1.0
 94        at com.liferay.portlet.documentlibrary.store.FileSystemStore.getFile(FileSystemStore.java:191)
 95        at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:257)
 96        at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFile(StoreProxyImpl.java:124)
 97        at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFile(SafeFileNameStoreWrapper.java:176)
 98        at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFile(DLStoreImpl.java:245)
 99        at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFile(DLStoreUtil.java:326)
100        at com.liferay.portal.verify.VerifyDynamicDataMapping.addFileEntry(VerifyDynamicDataMapping.java:95)
101        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:425)
102        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateDDLFileUploadReferences(VerifyDynamicDataMapping.java:293)
103        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:386)
104        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:365)
105        at com.liferay.portal.verify.VerifyDynamicDataMapping.doVerify(VerifyDynamicDataMapping.java:191)
106        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
107        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:66)
108        at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:42)
109        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
110        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:111)
111        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:76)
112        at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:46)
113        at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:146)
114        at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:67)
115        at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:240)
116        at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:206)
117        at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
118        at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
119        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
120        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
121        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
122        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
123        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
124        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
125        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
126        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
127        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
128        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
129        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
130        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
131        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
132        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
133        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
134        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
135        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
136        at java.lang.Thread.run(Thread.java:744)
13716:36:06,912 ERROR [localhost-startStop-1][MainServlet:209] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 80282
138com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 80282
139        at com.liferay.portal.events.StartupAction.run(StartupAction.java:74)
140        at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
141        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
142        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
143        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
144        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
145        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
146        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
147        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
148        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
149        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
150        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
151        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
152        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
153        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
154        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
155        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
156        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
157        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
158        at java.lang.Thread.run(Thread.java:744)
159Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 80282
160        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:61)
161        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:111)
162        at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:76)
163        at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:46)
164        at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:146)
165        at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:67)
166        at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:240)
167        at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:206)
168        at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
169        ... 19 more
170Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 80282
171        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:61)
172        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:66)
173        at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:42)
174        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
175        ... 27 more
176Caused by: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 80282
177        at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.checkRepository(RepositoryLocalServiceImpl.java:141)
178        at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.getLocalRepositoryImpl(RepositoryLocalServiceImpl.java:241)
179        at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)
180        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
181        at java.lang.reflect.Method.invoke(Method.java:606)
182        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
183        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
184        at com.sun.proxy.$Proxy81.getLocalRepositoryImpl(Unknown Source)
185        at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.getLocalRepository(DLAppLocalServiceImpl.java:1418)
186        at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.getFolder(DLAppLocalServiceImpl.java:673)
187        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
188        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
189        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
190        at java.lang.reflect.Method.invoke(Method.java:606)
191        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
192        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
193        at com.sun.proxy.$Proxy195.getFolder(Unknown Source)
194        at com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil.getFolder(DLAppLocalServiceUtil.java:512)
195        at com.liferay.portal.verify.VerifyDynamicDataMapping.addFolder(VerifyDynamicDataMapping.java:140)
196        at com.liferay.portal.verify.VerifyDynamicDataMapping.addFolder(VerifyDynamicDataMapping.java:121)
197        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:413)
198        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateDDLFileUploadReferences(VerifyDynamicDataMapping.java:293)
199        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:386)
200        at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:365)
201        at com.liferay.portal.verify.VerifyDynamicDataMapping.doVerify(VerifyDynamicDataMapping.java:191)
202        at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
203        ... 30 more
204Stopping the server due to unexpected startup errors


As you can see there are some warning first of some attachments on DDLs that Liferay is unable to find, and then there is an exception thrown indicating that a repository does not exist. I looked up the repository table in liferay's database and it's empty. I don't really know what's going on here, so any help would be appreciated.

Thanks
Juan Gonzalez
RE: Problem upgrading to 6.2.0 CE
December 23, 2013 9:14 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2807

Join Date: October 28, 2008

Recent Posts

Hi Diego,

guess you're having this issue:

https://issues.liferay.com/browse/LPS-42562

There you can find the github commits so you know what to change.
Diego Morales
RE: Problem upgrading to 6.2.0 CE
December 23, 2013 2:40 PM
Answer

Diego Morales

Rank: Junior Member

Posts: 50

Join Date: November 26, 2013

Recent Posts

Hey Juan, turns out this was not the problem. Apparently there were some orphaned DDLRecords for which a parent group was no longer existent. My quick and dirty fix was to remove these entries from the DB. This is one of the reasons why I don't like the fact that Liferay doesn't use foreign keys. Thank you! Best regards.