留言板

accidentally reset preview

ildar sl,修改在8 年前。

accidentally reset preview

Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
Hi!

I accidentally reset preview and thumbnail files for Documents and Media.
How to programmatically generate all files (mp3,pdf,images,docx,xls .....) over again?
Not really go to all pages specially what resources would be generated
thumbnail
Juan Gonzalez,修改在8 年前。

RE: accidentally reset preview

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
ildar sl,修改在8 年前。

RE: accidentally reset preview

Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
Hi Juan.

Thank you! Turned out en masse to convert files.
Now another problem...
Among the documents was a bad file. During conversion gave this information:

ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** Warning: File has an invalid xref entry: 2. Rebuilding xref table.
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** Warning: stream operator isn't terminated by valid EOL.
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** Warning: stream operator isn't terminated by valid EOL.
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59]
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** This file had errors that were repaired or ignored.
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** The file was produced by:
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** >>>> <<<<
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** Please notify the author of the software that produced this
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** file that it does not conform to Adobe's published PDF
ERROR [com.liferay.portal.kernel.process.ProcessUtil-4][LoggingOutputProcessor:59] **** specification.


Then delete the file.
But somewhere the information in the database was, as afterwards there are constant errors:


Found corrupt leading log Loading jar:file:/F:/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties

WARN [com.liferay.portal.kernel.process.ProcessExecutor-4][ProcessExecutor:547] Found corrupt leading log Loading jar:file:/F:/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties

WARN [com.liferay.portal.kernel.process.ProcessExecutor-4][ProcessExecutor:547] Found corrupt leading log Loading jar:file:/F:/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties

[com.liferay.portlet.documentlibrary.util.AudioProcessorImpl$LiferayAudioProcessCallable@381dfc6e]04:06:44,508 ERROR [main][ffmpeg:82] [mp3 @ 000000000F13BC20] Header missing
WARN [com.liferay.portal.kernel.process.ProcessExecutor-4][ProcessExecutor:547] Found corrupt leading log Loading jar:file:/F:/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties

[com.liferay.portlet.documentlibrary.util.AudioProcessorImpl$LiferayAudioProcessCallable@381dfc6e]04:06:51,897 ERROR [main][ffmpeg:82] [mp3 @ 000000000F16BC20] Header missing
WARN [com.liferay.portal.kernel.process.ProcessExecutor-4][ProcessExecutor:547] Found corrupt leading log Loading jar:file:/F:/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties

....
....
....


The database did not find the information about successfully converted files. Where remove the remnants of the information about the PDF file?
thumbnail
Juan Gonzalez,修改在8 年前。

RE: accidentally reset preview

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi ildar,

it's a very bad idea to remove data using database. You can use the right API through Control Panel -> Server administration -> Script, or just remove that file from Documents & Media and all their previews will be removed too.