Message Boards

Migrating Liferay Data to AWS S3 with Proxy Internet Connection Failed

Manigandan K, modified 10 Years ago.

Migrating Liferay Data to AWS S3 with Proxy Internet Connection Failed

New Member Posts: 17 Join Date: 11/17/12 Recent Posts
Hi Friends,

I m using Liferay 6.1.1 GA2.

I tried to Migrate Liferay Data to AWS S3. First I tried this through Proxy Server of our Organization. But the Migration Process Fails.
I used the configuration in portal-ext.properties is given below.

dl.store.s3.access.key=
dl.store.s3.secret.key=
dl.store.s3.bucket.name=

Migration process fails and shows the error like

11:35:28,905 DEBUG [http-bio-8080-exec-17][MaintenanceUtil:64] Executing com.liferay.portal.convert.ConvertDocumentLibrary
11:35:28,913 INFO [liferay/convert_process-1][ConvertProcess:41] Starting conversion for com.liferay.portal.convert.ConvertDocumentLibrary
11:35:45,811 ERROR [liferay/convert_process-1][S3Store:63] Request Error: java.net.UnknownHostException: s3.amazonaws.com
11:35:45,914 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating 4087 document library files
11:35:46,554 ERROR [liferay/convert_process-1][ConvertDocumentLibrary:188] Migration failed for 20501
com.liferay.portal.kernel.exception.SystemException: org.jets3t.service.S3ServiceException: The action Create Object in bucket cannot be performed with an invalid bucket: null
at com.liferay.portlet.documentlibrary.store.S3Store.addFile(S3Store.java:92)
at com.liferay.portal.convert.ConvertDocumentLibrary.migrateFile(ConvertDocumentLibrary.java:180)
at com.liferay.portal.convert.ConvertDocumentLibrary.migrateDLFileEntry(ConvertDocumentLibrary.java:167)
at com.liferay.portal.convert.ConvertDocumentLibrary.migrateDL(ConvertDocumentLibrary.java:143)
at com.liferay.portal.convert.ConvertDocumentLibrary.migratePortlets(ConvertDocumentLibrary.java:238)
at com.liferay.portal.convert.ConvertDocumentLibrary.doConvert(ConvertDocumentLibrary.java:102)
at com.liferay.portal.convert.ConvertProcess.convert(ConvertProcess.java:44)
at com.liferay.portal.convert.messaging.ConvertProcessMessageListener.doReceive(ConvertProcessMessageListener.java:47)
at com.liferay.portal.convert.messaging.ConvertProcessMessageListener.receive(ConvertProcessMessageListener.java:32)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:110)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:671)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:582)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jets3t.service.S3ServiceException: The action Create Object in bucket cannot be performed with an invalid bucket: null
at org.jets3t.service.S3Service.putObject(S3Service.java:2267)
at com.liferay.portlet.documentlibrary.store.S3Store.addFile(S3Store.java:84)
... 13 more


After that I tried using my Data Card which is not having Proxy Server, the Migration Process was successful and also uploading and downloading documents are working fine. But after Migration I tried to use with my Proxy Internet Connection, the files are unable to access and throws error like

11:35:45,811 ERROR [liferay/convert_process-1][S3Store:63] Request Error: java.net.UnknownHostException: s3.amazonaws.com

Is there is any configuration required to use AWS S3 with Proxy Server in Liferay.

Kindly help me,

Regards,
Manigandan.K
thumbnail
Tarun S. Kayasth, modified 7 Years ago.

RE: Migrating Liferay Data to AWS S3 with Proxy Internet Connection Failed

Regular Member Posts: 162 Join Date: 6/8/07 Recent Posts
This is an old post but below properties can be used if some one is searching for proxy settings in Liferay DXP.

bucketName=<your bucket name>
accessKey=<S3 user Access Key>
secretKey=<S3 user Secret Key>
## Some Default values
cacheDirCleanUpExpunge = 7
cacheDirCleanUpFrequency = 100
connectionTimeout = 10000
httpClientMaxConnections = 50
## Proxy settings
ntlmProxyDomain =
ntlmProxyWorkstation =
proxyAuthType = username-password
proxyHost = <Your Proxy server>
proxyPassword = <Proxy password>
proxyPort = <Proxy host>
proxyUsername = <Proxy User>
s3Region = <Store Region>
s3StorageClass = STANDARD

Thanks,
Tarun
Kulal Santosh Kumar, modified 7 Years ago.

RE: Migrating Liferay Data to AWS S3 with Proxy Internet Connection Failed

New Member Posts: 13 Join Date: 10/29/14 Recent Posts
Tarun S. Kayasth:
This is an old post but below properties can be used if some one is searching for proxy settings in Liferay DXP.

bucketName=<your bucket name>
accessKey=<S3 user Access Key>
secretKey=<S3 user Secret Key>
## Some Default values
cacheDirCleanUpExpunge = 7
cacheDirCleanUpFrequency = 100
connectionTimeout = 10000
httpClientMaxConnections = 50
## Proxy settings
ntlmProxyDomain =
ntlmProxyWorkstation =
proxyAuthType = username-password
proxyHost = <Your Proxy server>
proxyPassword = <Proxy password>
proxyPort = <Proxy host>
proxyUsername = <Proxy User>
s3Region = <Store Region>
s3StorageClass = STANDARD

Thanks,
Tarun



Where do we need to add this configuration? I mean in which properties file? and where this property file should be placed?
I am using Liferay DXP