Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Imran Ahmed
Is it possible to upgrade from 5.2.3 to 6.0.6?
20 giugno 2011 9.14
Risposta

Imran Ahmed

Punteggio: Junior Member

Messaggi: 64

Data di Iscrizione: 1 giugno 2010

Messaggi recenti

H,

I am trying to upgrade to Liferay 6.0.6 from 5.2.3 and the upgrade is failing. Based on info provided in other post by Liferay staff member[http://www.liferay.com/community/forums/-/message_boards/message/5338077], I added those property setting but the upgrade still fails:

11:00:48,984 INFO [UpgradeProcess:108] Upgrading com.liferay.portal.upgrade.v6_0_6.UpgradeSchema
11:00:49,015 INFO [UpgradeProcess:108] Upgrading com.liferay.portal.upgrade.v6_0_6.UpgradeRSS
11:00:49,562 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyProcessSuite
11:00:49,562 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyProperties
11:00:49,562 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyMySQL
11:00:50,453 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyCounter
11:00:50,484 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyUUID
11:00:51,859 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyRole
11:00:52,187 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyBlogs
11:00:52,203 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyBookmarks
11:00:52,203 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyCalendar
11:00:52,218 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyDocumentLibrary
11:00:52,218 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyGroup
11:00:52,640 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyImageGallery
11:00:52,640 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyJournal
11:01:09,031 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyLayout
11:01:09,078 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyMessageBoards
11:05:20,953 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyOrganization
11:05:20,968 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifySocial
11:05:20,968 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyUser
11:05:40,078 ERROR [MainServlet:202] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.events.StartupAction.run(StartupAction.java:53)
at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1166)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:199)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:82)
at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:101)
at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:66)
at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:79)
at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:44)
at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:158)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:153)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:47)
... 29 more
Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:82)
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:89)
at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:43)
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:79)
... 36 more
Caused by: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.service.impl.GroupLocalServiceImpl.validateFriendlyURL(GroupLocalServiceImpl.java:1401)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.addGroup(GroupLocalServiceImpl.java:179)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.addGroup(GroupLocalServiceImpl.java:103)
at sun.reflect.GeneratedMethodAccessor536.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:82)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy25.addGroup(Unknown Source)
at com.liferay.portal.service.GroupLocalServiceUtil.addGroup(GroupLocalServiceUtil.java:232)
at com.liferay.portal.verify.VerifyUser.doVerify(VerifyUser.java:97)
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:79)
... 39 more
Stopping the server due to unexpected startup errors

Is this upgrade possible or am I stuck with 5.2.3 for "Life" without any "ray" of hope? emoticon

Any tips pointers will be deeply appreciated...
David H Nebinger
RE: Is it possible to upgrade from 5.2.3 to 6.0.6?
21 giugno 2011 13.00
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 8335

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

The code at
1com.liferay.portal.service.impl.GroupLocalServiceImpl.validateFriendlyURL(GroupLocalServiceImpl.java:1401)
is the following:

1                GroupFriendlyURLException gfurle =
2                    new GroupFriendlyURLException(
3                        GroupFriendlyURLException.POSSIBLE_DUPLICATE);


This would indicate that you've got something going on w/ the group friendly urls. The wrapping code around the throw seems to indicate that you're using a number for the group name?

If that is the case, you may be able to get around it by enabling numeric screen names using the portal-ext.properties entry
1users.screen.name.allow.numeric=true
.
Daniel Tyger
RE: Is it possible to upgrade from 5.2.3 to 6.0.6?
5 marzo 2013 13.07
Risposta

Daniel Tyger

Punteggio: Junior Member

Messaggi: 73

Data di Iscrizione: 5 febbraio 2013

Messaggi recenti

Hi - I am struggling with a 5.2.3 > 6.06 Upgrade also, with same exception (so close to the end!).

Large deployment - 25K Users, 1600+ docs, 32K assets... tomcat / mysql

I tried this property and it did not help alleviate the issue...:

If that is the case, you may be able to get around it by enabling numeric screen names using the portal-ext.properties entry
1users.screen.name.allow.numeric=true
.

and here are some other notes (below)... Any idea how we can comb through the data and eliminate potential conflicts instead of upgrading over and over after cherry picking possible culprits?

... (sorry cross-posted in another GroupFriendlyURL Exception forum) - I am going nuts trying to solve this upgrade error / exception. I have located all the "reasons" for choking, but do not entirely know the Liferay definitions for each...:

FriendlyURL exception checks:
24 public static final int ADJACENT_SLASHES = 4;
26 public static final int DOES_NOT_START_WITH_SLASH = 1;
28 public static final int DUPLICATE = 6;
30 public static final int ENDS_WITH_SLASH = 2;
32 public static final int INVALID_CHARACTERS = 5;
34 public static final int KEYWORD_CONFLICT = 7;
36 public static final int POSSIBLE_DUPLICATE = 8;
38 public static final int TOO_DEEP = 9;
40 public static final int TOO_LONG = 10;
42 public static final int TOO_SHORT = 3;

I have started combing through the group_ and layout tables with queries that I *think* represent these issues, to no avail yet.

I see your post is pretty fresh - are you still working on this? Did you resolve?

I am coming up dry in my SQL queries.

SELECT friendlyURL, COUNT(*) c FROM group_ GROUP BY friendlyURL HAVING c > 1 (DUPLICATE -NO)
SELECT friendlyURL FROM group_ where friendlyURL LIKE '%//%' (No Adjacent slashes)
SELECT friendlyURL FROM group_ where friendlyURL NOT LIKE '/%' (Not starting with a slash -NONE)
SELECT friendlyURL FROM group_ where friendlyURL LIKE '%/' (Does not end in /)
SELECT friendlyURL FROM group_ where LENGTH(friendlyURL) >= 99 (too long? Not for the data type...)
SELECT friendlyURL FROM group_ WHERE friendlyURL NOT REGEXP '[A-Za-z0-9.,-]' (No Strange Characters)

What on earth is a "possible duplicate" ? Too deep? I can not find references...

Is there a messenger out there who can tell us a better way to get from 5.2.3 up? Should we not be going to 6_0_6 first, then up from there?

Daniel

StackTrace:
11:04:35,401 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyUser
11:07:42,438 ERROR [MainServlet:202] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.events.StartupAction.run(StartupAction.java:53)
at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1166)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:199)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:82)
at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:101)
at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:66)
at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:79)
at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:44)
at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:158)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:153)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:47)
... 29 more
Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:82)
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:89)
at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:43)
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:79)
... 36 more
Caused by: com.liferay.portal.GroupFriendlyURLException
at com.liferay.portal.service.impl.GroupLocalServiceImpl.validateFriendlyURL(GroupLocalServiceImpl.java:1385)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.addGroup(GroupLocalServiceImpl.java:179)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.addGroup(GroupLocalServiceImpl.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:82)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy24.addGroup(Unknown Source)
at com.liferay.portal.service.GroupLocalServiceUtil.addGroup(GroupLocalServiceUtil.java:232)
at com.liferay.portal.verify.VerifyUser.doVerify(VerifyUser.java:97)
at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:79)
... 39 more
Stopping the server due to unexpected startup errors