Foren

Liferay - LAR import problem

thumbnail
Nguyen Anh Tuan, geändert vor 7 Jahren.

Liferay - LAR import problem

New Member Beiträge: 12 Beitrittsdatum: 27.07.09 Neueste Beiträge
Dear everyone,

I'm now having a problem with LAR file importing in Liferay. I'm using Liferay 6.2

I have a LAR file which contains about 56 pages and 508 web contents. There is no error during the import time and all the web contents (about 508) have been imported. But, I don't know why all the pages have not been imported without any errors in the console logs.

I'm now very tired with this problem. Can anybody help me please?

Thanks so much
thumbnail
Andrew Jardine, geändert vor 7 Jahren.

RE: Liferay - LAR import problem

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Hi Nguyen,

I completely understand your frustrations as I too have suffered import/export issues many many many times. Unfortunately the process is complicated. I mean, if you think about what it is doing -- maintaining relationships, and links between objects, etc etc. -- it's no small task to perform this kind of work (and impossible to test ALL possible cases).

I can try to help you with this one. The first this that I always do after getting an import error is bump the logging and try again.

1. Log in as the Admin
2. Go to the Control Panel (for the main portal instance)
3. Go to Server Administration
4. Click on Log Levels (tab)
5. Click on Add Category (tab)
6. Add an entry with com.liferay.portal.lar and set the level to DEBUG

Once you have done this, run the import again. You'll still get the error I am sure but before the stacktrace you will see lines showing the individual import package items being processed. Usually the line right before... or a couple up will indicate the source of the problem, including where in the (LAR) package to find the file.

Once you have that, report back here if you still need help.
thumbnail
Nguyen Anh Tuan, geändert vor 7 Jahren.

RE: Liferay - LAR import problem

New Member Beiträge: 12 Beitrittsdatum: 27.07.09 Neueste Beiträge
Hi Andrew,

Thanks so much for your reply.

I tried the way that you suggested. Yes, the issue still happens without any error entries in the logs. I can see in the log the information about the lines which will be imported but I can't find any errors. The logs are really very long, many lines, so I can't paste all of those into this thread. I'm sorry, but I don't know where I can attach this log file to, so just would like to show you some of them here:

06:14:44,987 DEBUG [liferay/background_task-1][LayoutImporter:361] Delete portlet data false
06:14:44,988 DEBUG [liferay/background_task-1][LayoutImporter:362] Import categories true
06:14:44,988 DEBUG [liferay/background_task-1][LayoutImporter:363] Import permissions true
06:14:45,107 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /manifest.xml
06:14:45,174 DEBUG [liferay/background_task-1][ThemeImporter:42] Import theme settings true
06:14:45,180 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/183/0/portlet.xml
06:14:45,185 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/36/0/portlet.xml
06:14:45,186 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/19/0/portlet.xml
06:14:45,187 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/154/0/portlet.xml
06:14:45,188 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/178/0/portlet.xml
06:14:45,189 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/161/0/portlet.xml
06:14:45,191 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/162/0/portlet.xml
06:14:45,192 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/167/0/portlet.xml
06:14:45,193 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/20/0/portlet.xml
06:14:45,194 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/1_WAR_calendarportlet/0/portlet.xml
06:14:45,195 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/28/0/portlet.xml
06:14:45,196 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/15/0/portlet.xml
06:14:45,198 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/25/0/portlet.xml
06:14:45,199 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/33/0/portlet.xml
06:14:45,200 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_MXfnYwRsvjuc/108255/portlet.xml
06:14:45,202 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_CTcOoCzLYjNP/108255/portlet.xml
06:14:45,204 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_rUe5vIuBWsQj/108255/portlet.xml
06:14:45,205 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_k0sL3YBp111u/108255/portlet.xml
06:14:45,206 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_JIyyu1vF0L1k/108255/portlet.xml
06:14:45,208 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_QDxMN7VqCx6k/108255/portlet.xml
06:14:45,209 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_oWX6pqPvzIjB/108255/portlet.xml
06:14:45,211 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_1xVgacS6qyAF/108255/portlet.xml
06:14:45,212 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_54321/108255/portlet.xml
06:14:45,214 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/77_INSTANCE_Love2shop/108255/portlet.xml
06:14:45,215 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet_INSTANCE_Love2shop/108255/portlet.xml
06:14:45,216 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet_INSTANCE_Status/108255/portlet.xml
06:14:45,218 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import
.................................................................................................
06:15:10,052 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/118279.xml
06:15:10,061 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/118279-expando.xml
..................................................................................................
06:17:48,271 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,272 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,272 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,273 DEBUG [liferay/background_task-1][PortletImporter:171] Importing data for 25
06:17:48,274 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/25/107904/portlet-data.xml
06:17:48,277 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/33/0/portlet.xml
06:17:48,278 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,279 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,279 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,280 DEBUG [liferay/background_task-1][PortletImporter:171] Importing data for 33
06:17:48,280 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/33/107904/portlet-data.xml
06:17:48,283 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_MXfnYwRsvjuc/108255/portlet.xml
06:17:48,284 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,284 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,284 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,285 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_MXfnYwRsvjuc/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,291 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/135927.xml
06:17:48,525 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_MXfnYwRsvjuc because the portlet does not have a PortletDataHandler
06:17:48,589 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_CTcOoCzLYjNP/108255/portlet.xml
06:17:48,590 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,591 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,591 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,591 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_CTcOoCzLYjNP/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,595 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164454.xml
06:17:48,623 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_CTcOoCzLYjNP because the portlet does not have a PortletDataHandler
06:17:48,627 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_rUe5vIuBWsQj/108255/portlet.xml
06:17:48,628 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,628 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,628 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,629 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_rUe5vIuBWsQj/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,638 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164508.xml
06:17:48,647 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_rUe5vIuBWsQj because the portlet does not have a PortletDataHandler
06:17:48,650 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_k0sL3YBp111u/108255/portlet.xml
06:17:48,652 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,652 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,652 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,652 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_k0sL3YBp111u/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,655 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164528.xml
06:17:48,663 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_k0sL3YBp111u because the portlet does not have a PortletDataHandler
06:17:48,666 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_JIyyu1vF0L1k/108255/portlet.xml
06:17:48,668 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,668 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,668 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,668 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_JIyyu1vF0L1k/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,674 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164516.xml
06:17:48,682 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_JIyyu1vF0L1k because the portlet does not have a PortletDataHandler
06:17:48,685 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_QDxMN7VqCx6k/108255/portlet.xml
06:17:48,686 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,686 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,686 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,687 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_QDxMN7VqCx6k/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,690 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164520.xml
06:17:48,698 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_QDxMN7VqCx6k because the portlet does not have a PortletDataHandler
06:17:48,701 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_oWX6pqPvzIjB/108255/portlet.xml
06:17:48,702 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,703 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,703 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,703 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_oWX6pqPvzIjB/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,709 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164418.xml
06:17:48,717 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_oWX6pqPvzIjB because the portlet does not have a PortletDataHandler
06:17:48,720 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_1xVgacS6qyAF/108255/portlet.xml
06:17:48,722 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,722 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,722 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,722 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_1xVgacS6qyAF/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,726 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/com.liferay.portlet.journal.model.JournalArticle/164430.xml
06:17:48,735 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_1xVgacS6qyAF because the portlet does not have a PortletDataHandler
06:17:48,737 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_54321/108255/portlet.xml
06:17:48,739 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,739 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,739 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,739 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/56_INSTANCE_54321/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,752 DEBUG [liferay/background_task-1][PortletImporter:161] Do not import portlet data for 56_INSTANCE_54321 because the portlet does not have a PortletDataHandler
06:17:48,755 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/77_INSTANCE_Love2shop/108255/portlet.xml
06:17:48,757 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,757 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,758 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,758 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/77_INSTANCE_Love2shop/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,765 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet_INSTANCE_Love2shop/108255/portlet.xml
06:17:48,767 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,767 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,767 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,767 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet_INSTANCE_Love2shop/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,773 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet_INSTANCE_Status/108255/portlet.xml
06:17:48,774 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,774 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,774 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,774 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet_INSTANCE_Status/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,780 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet/108255/portlet.xml
06:17:48,781 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,782 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,782 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,782 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/search_WAR_configurationlibraryportlet/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,787 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/tracking_WAR_configurationlibraryportlet/108255/portlet.xml
06:17:48,789 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,789 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,789 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,789 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/tracking_WAR_configurationlibraryportlet/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,795 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/basket_WAR_shoppingsuiteportlet_INSTANCE_107904_mini/108255/portlet.xml
06:17:48,797 DEBUG [liferay/background_task-1][LayoutImporter:127] Import portlet data true
06:17:48,797 DEBUG [liferay/background_task-1][LayoutImporter:128] Import all portlet data true
06:17:48,797 DEBUG [liferay/background_task-1][LayoutImporter:129] Import portlet configuration true
06:17:48,797 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/portlet/basket_WAR_shoppingsuiteportlet_INSTANCE_107904_mini/preferences/layout/0/108255/portlet-preferences.xml
06:17:48,803 INFO [liferay/background_task-1][PortletDataContextListenerImpl:42] Import /group/107904/links.xml
06:17:48,808 INFO [liferay/background_task-1][LayoutImporter:923] Importing layouts takes 183820 ms

Please help to give me your advise on this.

Many thanks and best regards
thumbnail
Jorge Díaz, geändert vor 7 Jahren.

RE: Liferay - LAR import problem (Antwort)

Liferay Master Beiträge: 753 Beitrittsdatum: 09.01.14 Neueste Beiträge
In order to check exported data, rename .lar file to .zip and unzip it.

Review exported data (pages are internally called Layouts), check manifest.xml and subfolders and files called "layout":
  • If your pages or some of its data are missing, your problem is at export functionality
  • If data is fine, your problem is at import functionality


Try also exporting/importing pages one by one
thumbnail
Nguyen Anh Tuan, geändert vor 7 Jahren.

RE: Liferay - LAR import problem

New Member Beiträge: 12 Beitrittsdatum: 27.07.09 Neueste Beiträge
Hi Jorge,

I would like to say a big big thank to you emoticon. Your suggestion helped me to find out the root cause of this issue. Yes, the problem came from the imported LAR file. I've now been resolved and it works fine for me emoticon. Once again, thanks so much for your support

Best regards,