掲示板

Local Staging fails to create layoutSetBranch

10年前 に Jian Tian によって更新されました。

Local Staging fails to create layoutSetBranch

New Member 投稿: 9 参加年月日: 12/09/11 最新の投稿
I am using liferay EE 6.1.20.
First I turn on the local staging for my site(200 pages). I checked both public and private pages. In the portlet section I only checked "Web Content Display" and left everything else blank. The message says the request has been completely successfully.

When I navigate to the site pages however, the staging management tab does not show up on each of the pages. Instead, it shows a gray tab with "theme.display(170)".

When looking into the log, this exception is retrieved:
21:51:29,267 ERROR [http-bio-8080-exec-6][LayoutSetStagingHandler:49] com.liferay.portal.NoSuchLayoutSetBranchException: No LayoutSetBranch exists with the key {groupId=262202, privateLayout=true, master=true}
com.liferay.portal.NoSuchLayoutSetBranchException: No LayoutSetBranch exists with the key {groupId=262202, privateLayout=true, master=true}
	at com.bankers.liferay.portal.service.LayoutSetBranchLocalServiceWrapper.getMasterLayoutSetBranch(LayoutSetBranchLocalServiceWrapper.java:45)
	at com.bankers.liferay.portal.service.LayoutSetBranchLocalServiceWrapper.getUserLayoutSetBranch(LayoutSetBranchLocalServiceWrapper.java:70)
	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 com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
	at $Proxy656.getUserLayoutSetBranch(Unknown Source)
	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)
	....


Further more, in control panel, I cannot go back to the site settings page due to missing right panel that let me click on "staging". I tried to revert the db and re-enable the feature, same result.

What can be the possible causes? Thanks,
thumbnail
10年前 に Rajeev K によって更新されました。

RE: Local Staging fails to create layoutSetBranch

Regular Member 投稿: 214 参加年月日: 09/06/19 最新の投稿
Hi,

Were you able to resolve this issue?

I am getting same error.

Thanks
10年前 に Jian Tian によって更新されました。

RE: Local Staging fails to create layoutSetBranch

New Member 投稿: 9 参加年月日: 12/09/11 最新の投稿
You should look into your log more closely and try to find if any exceptions occurred during the staging enabling process.

What this exception means is that "LayoutSetBranch" was not created correctly. If you look at enableLocalStaging() method in stagingImpl.java, LayoutSetBranch is created in the last part of logic.If any fatal exceptions happened before then the process would not populate the table properly. The action of populating the table is not labor intensive so the problem likely lies elsewhere.

In my case, my site had a lot of data. I mean, a lot. The staging process took 3 days to complete, I shutdown the process prematurely.