Fórum
Can not download document after liferay upgrade
Pratik Sayare, modificado 6 Anos atrás.
Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens Recentes
Hi,
I have upgraded liferay to 7.0.2 GA3 from 6.2. Before the document store was DB store so updated the document store property as per liferay 7 in portal-ext.properties. Also, rebuild indexes using control panel.
dl.store.impl=com.liferay.portal.store.db.DBStore
Liferay works fine can upload new documents but while downloading its gives internal server error
In tomcat logs the error is status_jsp:950 null
After enabling debug logs nothing much details.
Kindly advise what is missing or need to add any other property. Thanks
/Pratik
I have upgraded liferay to 7.0.2 GA3 from 6.2. Before the document store was DB store so updated the document store property as per liferay 7 in portal-ext.properties. Also, rebuild indexes using control panel.
dl.store.impl=com.liferay.portal.store.db.DBStore
Liferay works fine can upload new documents but while downloading its gives internal server error
In tomcat logs the error is status_jsp:950 null
After enabling debug logs nothing much details.
Kindly advise what is missing or need to add any other property. Thanks
/Pratik
Anexos:
Manish Yadav, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens RecentesPratik Sayare:
Hi,
I have upgraded liferay to 7.0.2 GA3 from 6.2. Before the document store was DB store so updated the document store property as per liferay 7 in portal-ext.properties. Also, rebuild indexes using control panel.
dl.store.impl=com.liferay.portal.store.db.DBStore
Liferay works fine can upload new documents but while downloading its gives internal server error
In tomcat logs the error is status_jsp:950 null
After enabling debug logs nothing much details.
Kindly advise what is missing or need to add any other property. Thanks
/Pratik
Enable status of logs as All from control panel ,might be from there you will get some exceptions
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens RecentesManish Yadav:
Pratik Sayare:Hi,
I have upgraded liferay to 7.0.2 GA3 from 6.2. Before the document store was DB store so updated the document store property as per liferay 7 in portal-ext.properties. Also, rebuild indexes using control panel.
dl.store.impl=com.liferay.portal.store.db.DBStore
Liferay works fine can upload new documents but while downloading its gives internal server error
In tomcat logs the error is status_jsp:950 null
After enabling debug logs nothing much details.
Kindly advise what is missing or need to add any other property. Thanks
/Pratik
Enable status of logs as All from control panel ,might be from there you will get some exceptions
Yes, I enabled com.liferay from log levels to All but no exceptions. Also enabled using portal-log4j.xml under tomcat/webapps/ROOT/WEB-INF/classes/META-INF but no exceptions in logs only normal DEBUG log messages. While uploading document it gives a warning no metadata found for file id xxxxx
/Pratik
Alberto Chaparro, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
Liferay Master Postagens: 549 Data de Entrada: 25/04/11 Postagens Recentes
Hi Pratik,
Did you set dl.store.impl=com.liferay.portal.store.db.DBStore in your portal-upgrade-ext.properties file before executing the upgrade?
Also, could you check if the DB Store work in a using a new database in 7.0.2GA3 (not upgraded from 6.2)?
Thanks.
Did you set dl.store.impl=com.liferay.portal.store.db.DBStore in your portal-upgrade-ext.properties file before executing the upgrade?
Also, could you check if the DB Store work in a using a new database in 7.0.2GA3 (not upgraded from 6.2)?
Thanks.
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens RecentesAlberto Chaparro:
Hi Pratik,
Did you set dl.store.impl=com.liferay.portal.store.db.DBStore in your portal-upgrade-ext.properties file before executing the upgrade?
Also, could you check if the DB Store work in a using a new database in 7.0.2GA3 (not upgraded from 6.2)?
Thanks.
Hi,
No, I didn't set the property dl.store.impl=com.liferay.portal.store.db.DBStore in portal-upgrade-ext.properties before upgrade. Let me try by setting this before and test.
Yes, 7.0.2 GA3 works with the new database.
Thanks for taking the time to answer.
/Pratik
Olaf Kock, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens RecentesPratik Chandrashekhar Sayare:
No, I didn't set the property dl.store.impl=com.liferay.portal.store.db.DBStore in portal-upgrade-ext.properties before upgrade. Let me try by setting this before and test.
You'll definitely need this, as the document library needs to be updated as well. The update process needs to have access to all data that you want to upgrade.
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens Recentes
Hi,
I tried setting the property dl.store.impl=com.liferay.portal.store.db.DBStore in portal-upgrade-ext.properties before upgrade.
Still getting the same error. Can add new document with below warning
03:43:39,347 WARN [liferay/document_library_raw_metadata_processor-1][RawMetadataProcessorMessageListener:38] Unable to save metadata for file version 112294
java.lang.NullPointerException
/Pratik
I tried setting the property dl.store.impl=com.liferay.portal.store.db.DBStore in portal-upgrade-ext.properties before upgrade.
Still getting the same error. Can add new document with below warning
03:43:39,347 WARN [liferay/document_library_raw_metadata_processor-1][RawMetadataProcessorMessageListener:38] Unable to save metadata for file version 112294
java.lang.NullPointerException
/Pratik
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens Recentes
Hi,
After enabling debug log for the document library, getting below error while uploading a new document.Attached logs for reference.
[DLFileEntryIndexer:374] Error retrieving document stream
/Pratik
After enabling debug log for the document library, getting below error while uploading a new document.Attached logs for reference.
[DLFileEntryIndexer:374] Error retrieving document stream
/Pratik
Anexos:
Alberto Chaparro, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
Liferay Master Postagens: 549 Data de Entrada: 25/04/11 Postagens Recentes
Hi Patrik,
After an upgrade it's mandatory to regenerate the search indexes. It seems that you haven't executed that task.
After an upgrade it's mandatory to regenerate the search indexes. It seems that you haven't executed that task.
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens Recentes
Hi,
I did reindex all search indexes after the upgrade.
/Pratik
I did reindex all search indexes after the upgrade.
/Pratik
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens Recentes
Hi,
I tried with 7.0.3 GA4 it gives error Not Found. Additional information, the liferay is in the cluster and behind load balancers, does this need any other configurations?
/Pratik
I tried with 7.0.3 GA4 it gives error Not Found. Additional information, the liferay is in the cluster and behind load balancers, does this need any other configurations?
/Pratik
Pratik Sayare, modificado 6 Anos atrás.
RE: Can not download document after liferay upgrade
New Member Postagens: 20 Data de Entrada: 10/08/17 Postagens Recentes
Hi,
Finally, the issue is fixed. As I copied portal-ext.properties from 6.2 it was having many properties (JDBC, URL regex,c3po) which were causing the issue. Also, JNDI properties used in database URL were also found not be working. Need to fine tune many properties to make it work.
With above settings, the document download works but only with one of the 2 available options. The difference between 2 links is query parameter version=1.0. For some documents, it works vice versa.
https://abc.com/portal/documents/20182/0/helpful_links_for_using_liferay_portal.pdf/01a1ad99-c9ff-4620-9d23-53ffeba5a3c1?version=1.0&download=true
https://abc.com/portal/documents/20182/0/helpful_links_for_using_liferay_portal.pdf/01a1ad99-c9ff-4620-9d23-53ffeba5a3c1?download=true
Any configuration changes required for this to work with both links? (It works fine with new install, can download with both links, only problem for upgraded version)
/Pratik
Finally, the issue is fixed. As I copied portal-ext.properties from 6.2 it was having many properties (JDBC, URL regex,c3po) which were causing the issue. Also, JNDI properties used in database URL were also found not be working. Need to fine tune many properties to make it work.
With above settings, the document download works but only with one of the 2 available options. The difference between 2 links is query parameter version=1.0. For some documents, it works vice versa.
https://abc.com/portal/documents/20182/0/helpful_links_for_using_liferay_portal.pdf/01a1ad99-c9ff-4620-9d23-53ffeba5a3c1?version=1.0&download=true
https://abc.com/portal/documents/20182/0/helpful_links_for_using_liferay_portal.pdf/01a1ad99-c9ff-4620-9d23-53ffeba5a3c1?download=true
Any configuration changes required for this to work with both links? (It works fine with new install, can download with both links, only problem for upgraded version)
/Pratik