upload image to Amazon s3

270 views
Skip to first unread message

Chaithika Prabudda

unread,
Oct 9, 2013, 10:45:31 AM10/9/13
to dcm...@googlegroups.com
hi

i need to upload image in ONLINE_STORE to Amazon s3. can anyone guide me how to do that.

thank you

Damien Evans

unread,
Oct 9, 2013, 11:01:14 AM10/9/13
to dcm...@googlegroups.com
There is no default way to do that with online storage.  You'll need to use something like the Amazon Storage Gateway in order to proxy S3.


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/groups/opt_out.

Chaithika Prabudda

unread,
Oct 9, 2013, 11:50:45 AM10/9/13
to dcm...@googlegroups.com
hi

thank you for your support. i have followed steps in following.

http://www.dcm4che.org/confluence/display/ee2/Using+Amazon+S3+for+NEARLINE+storage

now im getting following error.

12:02:04,657 INFO  [FileCopyService] M-WRITE /home/ubuntu/software/dcm4chee-2.17.3-mysql/server/default/tar-outgoing/877785A3-124657.tar
12:02:04,673 INFO  [CloudHSMModule] Uploading /home/ubuntu/software/dcm4chee-2.17.3-mysql/server/default/tar-outgoing/877785A3-124657.tar to S3 with key of 2013/10/9/11/C241EF65/877785A3-124657.tar
[7:59:12 PM] chaithika prabudda: 12:02:04,674 ERROR [FileCopyService] Make Tar file failed!


anyone can help me?

Chaithika Prabudda

unread,
Oct 10, 2013, 1:11:19 AM10/10/13
to dcm...@googlegroups.com
Hi

is there anyone to help me out? thank you.

Chaithika Prabudda

unread,
Oct 10, 2013, 5:38:52 AM10/10/13
to dcm...@googlegroups.com
Hi Damien,

thank you for the great support.

when image comes from modality, it will copy to the default archive directory in the default.
what i want to do is, i want to tar that images, upload those to amazon s3. i could not find any clear steps to do this.
i have followed the following link. but, im getting an error says that; make tar file failed.


http://www.dcm4che.org/confluence/display/ee2/Using+Amazon+S3+for+NEARLINE+storage


can you please advice me.

following is the error log
=============================
09:14:42,328 INFO  [FileSystemMgt2Service] Check file system group LOSSY_STORAGE for deletion of orphaned private files
09:14:42,330 INFO  [FileSystemMgt2Service] Check file system group ONLINE_STORAGE for deletion of orphaned private files
09:14:42,352 INFO  [FileCopyService] M-WRITE /home/ubuntu/software/dcm4chee-2.17.3-mysql/server/default/tar:tar-outgoing/BEC5508E-882351.tar
09:14:42,356 INFO  [CloudHSMModule] Uploading /home/ubuntu/software/dcm4chee-2.17.3-mysql/server/default/tar:tar-outgoing/BEC5508E-882351.tar to S3 with key of 2013/10/10/9/563F26F1/BEC5508E-882351.tar
09:14:42,358 ERROR [FileCopyService] Make Tar file failed!
javax.management.RuntimeErrorException
        at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:178)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.dcm4chex.archive.hsm.FileCopyService.storeHSMFile(FileCopyService.java:330)
        at org.dcm4chex.archive.hsm.FileCopyService.copyTar(FileCopyService.java:304)
        at org.dcm4chex.archive.hsm.FileCopyService.process(FileCopyService.java:223)
        at org.dcm4chex.archive.hsm.AbstractFileCopyService.onMessage(AbstractFileCopyService.java:296)
        at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:229)
        at org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:1043)
        at org.jboss.messaging.util.OrderedExecutorFactory$ChildExecutor.run(OrderedExecutorFactory.java:120)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
        at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:59)
        at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:253)
        at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:233)
        at org.dcm4chex.archive.hsm.module.cloud.CloudHSMModule.createClient(CloudHSMModule.java:231)
        at org.dcm4chex.archive.hsm.module.cloud.CloudHSMModule.storeHSMFile(CloudHSMModule.java:216)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        ... 17 more
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.http.client.methods.HttpUriRequest
        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 27 more
09:14:42,359 WARN  [CloudHSMModule] failedHSMFile is not yet implemented for S3 integration
09:14:42,359 WARN  [FileCopyService] Failed to process org.dcm4chex.archive.hsm.FileCopyOrder@201310100914422740@a6a2b[, failures=1]    RetrieveAETs: DCM4CHEEAMAZON
        Destination: tar:/cloud

        Source files:
                archive,2013/10/10/9/563F26F1/BEC5508E/82DB8DA9

======================




On Wednesday, October 9, 2013 8:31:14 PM UTC+5:30, Damien Evans wrote:

Alvaro G. [Andor]

unread,
Oct 10, 2013, 6:25:45 AM10/10/13
to dcm...@googlegroups.com
If you check the link you gave for S3:

http://www.dcm4che.org/confluence/display/ee2/Using+Amazon+S3+for+NEARLINE+storage

It says boldly in the beginning:

FYI - This feature is only available by building the code from SVN right now.

So may need to download dcm4chee from SVN and compile it yourself.






El 10/10/13 09:38, Chaithika Prabudda escribió:

Chaithika Prabudda

unread,
Oct 10, 2013, 6:55:45 AM10/10/13
to dcm...@googlegroups.com
Hi andor,

thank you for the great reply. yes, i have compile and deployed it. my problem is, im not able tar and upload to amazon s3.
can you please guide me if i make any mistake.

thank you
chaithika
Reply all
Reply to author
Forward
0 new messages