留言板
Can not download document after liferay upgrade
Pratik Sayare,修改在6 年前。
Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子
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
Manish Yadav,修改在6 年前。
RE: Can not download document after liferay upgrade
Expert 帖子: 493 加入日期: 12-5-26 最近的帖子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
Pratik Sayare,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子Manish 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,修改在6 年前。
RE: Can not download document after liferay upgrade
Liferay Master 帖子: 549 加入日期: 11-4-25 最近的帖子
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,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子Alberto 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,修改在6 年前。
RE: Can not download document after liferay upgrade
Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子Pratik 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,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子
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,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子
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
Alberto Chaparro,修改在6 年前。
RE: Can not download document after liferay upgrade
Liferay Master 帖子: 549 加入日期: 11-4-25 最近的帖子
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,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子
Hi,
I did reindex all search indexes after the upgrade.
/Pratik
I did reindex all search indexes after the upgrade.
/Pratik
Pratik Sayare,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子
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,修改在6 年前。
RE: Can not download document after liferay upgrade
New Member 帖子: 20 加入日期: 17-8-10 最近的帖子
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