Activating new CMS error

Hello everyone,

I tried activating the new CMS in our migrated instance and i have these error when i activate it via beta flag.
Also when i go to /web/cms it says 404 not found

2025-12-04 14:22:07.581 ERROR [http-nio-8080-exec-154][AttachmentObjectFieldDownloadActionFeatureFlagListener:109] com.liferay.portal.kernel.dao.orm.ORMException: jakarta.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.model.impl.ResourcePermissionImpl#4138740]
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: jakarta.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.model.impl.ResourcePermissionImpl#4138740]
at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:655) ~[portal-kernel.jar:?]
at com.liferay.portal.service.persistence.impl.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:7835) ~[portal-impl.jar:?]
at com.liferay.portal.service.persistence.impl.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:66) ~[portal-impl.jar:?]
at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:805) ~[portal-kernel.jar:?]
at com.liferay.portal.service.base.ResourcePermissionLocalServiceBaseImpl.updateResourcePermission(ResourcePermissionLocalServiceBaseImpl.java:392) ~[portal-impl.jar:?]
at com.liferay.portal.kernel.service.ResourcePermissionLocalServiceWrapper.updateResourcePermission(ResourcePermissionLocalServiceWrapper.java:1154) ~[portal-kernel.jar:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:41) ~[portal-impl.jar:?]
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:60) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:48) ~[portal-impl.jar:?]
at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55) ~[portal-kernel.jar:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:48) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:40) ~[portal-impl.jar:?]
at jdk.proxy3.$Proxy98.updateResourcePermission(Unknown Source) ~[?:?]
at com.liferay.object.internal.feature.flag.AttachmentObjectFieldDownloadActionFeatureFlagListener.onValue(AttachmentObjectFieldDownloadActionFeatureFlagListener.java:103) ~[?:?]
at com.liferay.feature.flag.web.internal.feature.flag.FeatureFlagsBagProviderImpl.setEnabled(FeatureFlagsBagProviderImpl.java:128) ~[?:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
<stacktrace…>
at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: com.liferay.portal.kernel.dao.orm.ORMException: jakarta.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.model.impl.ResourcePermissionImpl#4138740]
at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:69) ~[portal-impl.jar:?]
at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:332) ~[portal-impl.jar:?]
at com.liferay.portal.service.persistence.impl.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:7830) ~[portal-impl.jar:?]
... 128 more
Caused by: jakarta.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.model.impl.ResourcePermissionImpl#4138740]
at org.hibernate.internal.ExceptionConverterImpl.wrapStaleStateException(ExceptionConverterImpl.java:223) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:93) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:840) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:816) ~[hibernate-core.jar:5.6.7.Final]
at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:329) ~[portal-impl.jar:?]
at com.liferay.portal.service.persistence.impl.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:7830) ~[portal-impl.jar:?]
... 128 more
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.model.impl.ResourcePermissionImpl#4138740]
at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:341) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:172) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:70) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:829) ~[hibernate-core.jar:5.6.7.Final]
at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:816) ~[hibernate-core.jar:5.6.7.Final]
at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:329) ~[portal-impl.jar:?]
at com.liferay.portal.service.persistence.impl.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:7830) ~[portal-impl.jar:?]
... 128 more
2025-12-04 14:22:09.049 INFO [http-nio-8080-exec-154][BundleSiteInitializer:533] Initializing com.liferay.site.initializer.cms for group 558463962
2025-12-04 14:22:09.056 INFO [http-nio-8080-exec-154][BundleSiteInitializer:5703] Invoking addOrUpdateExpandoColumns took 1 ms
2025-12-04 14:22:09.057 INFO [http-nio-8080-exec-154][BundleSiteInitializer:5703] Invoking addOrUpdateListTypeDefinitions took 0 ms
2025-12-04 14:22:09.057 INFO [http-nio-8080-exec-154][BundleSiteInitializer:5703] Invoking addStyleBookEntries took 0 ms
2025-12-04 14:22:09.097 INFO [http-nio-8080-exec-154][BundleSiteInitializer:5703] Invoking addAccountGroups took 40 ms
2025-12-04 14:22:09.097 INFO [http-nio-8080-exec-154][BundleSiteInitializer:5703] Invoking addOrUpdateUserGroups took 0 ms
2025-12-04 14:22:09.101 ERROR [http-nio-8080-exec-154][BundleSiteInitializer:542] Cannot invoke "String.isEmpty()" because "str" is null
java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "str" is null
at java.lang.String.concat(String.java:2896) ~[?:?]
at com.liferay.portal.service.impl.GroupLocalServiceImpl.fetchGroup(GroupLocalServiceImpl.java:1521) ~[portal-impl.jar:?]
at com.liferay.portal.kernel.service.GroupLocalServiceWrapper.fetchGroup(GroupLocalServiceWrapper.java:525) ~[portal-kernel.jar:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:41) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:40) ~[portal-impl.jar:?]
at jdk.proxy3.$Proxy105.fetchGroup(Unknown Source) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer._addOrUpdateDepotEntries(BundleSiteInitializer.java:1936) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer.lambda$_createRMap$31(BundleSiteInitializer.java:5144) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer._initialize(BundleSiteInitializer.java:5700) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer.initialize(BundleSiteInitializer.java:539) ~[?:?]
at com.liferay.site.cms.site.initializer.internal.util.SiteInitializerUtil.initialize(SiteInitializerUtil.java:81) ~[?:?]
at com.liferay.site.cms.site.initializer.internal.feature.flag.CMSFeatureFlagListener.onValue(CMSFeatureFlagListener.java:51) ~[?:?]
at com.liferay.feature.flag.web.internal.feature.flag.FeatureFlagsBagProviderImpl.setEnabled(FeatureFlagsBagProviderImpl.java:128) ~[?:?]
<stacktrace…>
at java.lang.Thread.run(Thread.java:1583) [?:?]
2025-12-04 14:22:09.108 ERROR [http-nio-8080-exec-154][CMSFeatureFlagListener:54] java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "str" is null
com.liferay.site.exception.InitializationException: java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "str" is null
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer.initialize(BundleSiteInitializer.java:544) ~[?:?]
at com.liferay.site.cms.site.initializer.internal.util.SiteInitializerUtil.initialize(SiteInitializerUtil.java:81) ~[?:?]
at com.liferay.site.cms.site.initializer.internal.feature.flag.CMSFeatureFlagListener.onValue(CMSFeatureFlagListener.java:51) ~[?:?]
at com.liferay.feature.flag.web.internal.feature.flag.FeatureFlagsBagProviderImpl.setEnabled(FeatureFlagsBagProviderImpl.java:128) ~[?:?]
<stacktrace…>
at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "str" is null
at java.lang.String.concat(String.java:2896) ~[?:?]
at com.liferay.portal.service.impl.GroupLocalServiceImpl.fetchGroup(GroupLocalServiceImpl.java:1521) ~[portal-impl.jar:?]
at com.liferay.portal.kernel.service.GroupLocalServiceWrapper.fetchGroup(GroupLocalServiceWrapper.java:525) ~[portal-kernel.jar:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:41) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:40) ~[portal-impl.jar:?]
at jdk.proxy3.$Proxy105.fetchGroup(Unknown Source) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer._addOrUpdateDepotEntries(BundleSiteInitializer.java:1936) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer.lambda$_createRMap$31(BundleSiteInitializer.java:5144) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer._initialize(BundleSiteInitializer.java:5700) ~[?:?]
at com.liferay.site.initializer.extender.internal.BundleSiteInitializer.initialize(BundleSiteInitializer.java:539) ~[?:?]
... 116 more
2025-12-04 14:22:09.163 INFO [default-28][BatchEngineImportTaskExecutorImpl:102] Started batch engine import task 1911
2025-12-04 14:22:10.388 INFO [liferay/scheduler_dispatch-4][RealTimeDataImporter:42] End updating real time
2025-12-04 14:22:10.921 INFO [default-28][BatchEngineImportTaskExecutorImpl:191] Finished batch engine import task 1911 in 1757ms
2025-12-04 14:22:10.954 INFO [default-28][BatchEngineImportTaskExecutorImpl:102] Started batch engine import task 1912
2025-12-04 14:22:12.231 INFO [default-28][BatchEngineImportTaskExecutorImpl:191] Finished batch engine import task 1912 in 1276ms
2025-12-04 14:22:12.267 INFO [default-28][BatchEngineImportTaskExecutorImpl:102] Started batch engine import task 1913
2025-12-04 14:22:14.128 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558463973" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564334" have the same order null and category key ""
2025-12-04 14:22:14.128 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558463973" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564390" have the same order null and category key ""
2025-12-04 14:22:14.128 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558463973" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564420" have the same order null and category key ""
2025-12-04 14:22:15.170 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464027" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564334" have the same order null and category key ""
2025-12-04 14:22:15.171 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464027" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564420" have the same order null and category key ""
2025-12-04 14:22:15.171 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464027" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558463973" have the same order null and category key ""
2025-12-04 14:22:16.257 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464067" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564362" have the same order null and category key ""
2025-12-04 14:22:16.257 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464067" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558463973" have the same order null and category key ""
2025-12-04 14:22:16.257 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464067" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464027" have the same order null and category key ""
2025-12-04 14:22:16.414 ERROR [liferay/scheduler_dispatch-6][PlaceLocalServiceImpl:380] Can not update real time data for'mairie' rtExternalId :NHF, sigId :466_SPC_42
2025-12-04 14:22:17.702 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464123" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564362" have the same order null and category key ""
2025-12-04 14:22:17.702 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464123" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558463973" have the same order null and category key ""
2025-12-04 14:22:17.703 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464123" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464067" have the same order null and category key ""
2025-12-04 14:22:18.683 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464185" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564390" have the same order null and category key ""
2025-12-04 14:22:18.684 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464185" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464027" have the same order null and category key ""
2025-12-04 14:22:18.684 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464185" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464123" have the same order null and category key ""
2025-12-04 14:22:19.550 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464256" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564390" have the same order null and category key ""
2025-12-04 14:22:19.551 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464256" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464067" have the same order null and category key ""
2025-12-04 14:22:19.551 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464256" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464185" have the same order null and category key ""
2025-12-04 14:22:20.535 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464297" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#526564420" have the same order null and category key ""
2025-12-04 14:22:20.535 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464297" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464123" have the same order null and category key ""
2025-12-04 14:22:20.535 INFO [default-28][PanelAppRegistry:61] The panel apps "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464297" and "com.liferay.object.web.internal.object.entries.application.list.ObjectEntriesPanelApp#558464256" have the same order null and category key ""
2025-12-04 14:22:21.054 INFO [default-28][BatchEngineImportTaskExecutorImpl:191] Finished batch engine import task 1913 in 8787ms