dcm4chee : File Copy Error

243 views
Skip to first unread message

Ajay

unread,
Nov 12, 2013, 8:11:21 AM11/12/13
to dcm...@googlegroups.com
Hi All,

I have configured online as (/mnt/vol1/online/dcm4chee) and nearline as (/mnt/vol2/nearline/dcm4chee), but I am getting below error :

8:29:54,282 INFO  [FileCopyService] Start processing org.dcm4chex.archive.hsm.FileCopyOrder@201311121627339651@2899cce6[, failures=17] RetrieveAETs: DCM4CHEE                                                                                                                                                           
        Destination: tar:/mnt/vol2/nearline/dcm4chee                                                                                                           

        Source files:
                /mnt/vol1/online/dcm4chee,2013/11/12/16/B2C22F15/B2C22F15/B2C22F15
                /mnt/vol1/online/dcm4chee,2013/11/12/16/B2C22F15/B2C22F15/B2C241BC


18:29:54,283 INFO  [FileCopyService] M-WRITE /mnt/vol2/nearline/dcm4chee/2013/11/12/16/B2C22F15/B2C22F15-3594282.tar
18:29:54,285 ERROR [FileCopyService] Filesize doesn't match for file entry:FileInfo[pk=3iuid=1.3.12.2.1107.5.1.4.45628.300000120302033121384253733285, cuid=1.2.840.10008.5.1.4.1.1.3, extRetrieveAET=null, fileRetrieveAET=DCM4CHEE, basedir=/mnt/vol1/online/dcm4chee, fileid=2013/11/12/16/B2C22F15/B2C22F15/B2C22F15, tsuid=1.2.840.10008.1.2.4.50!(0 vs. 71226) skipped!                                                                                                          
18:29:54,285 ERROR [FileCopyService] M-DELETE tar file due to an error! /mnt/vol2/nearline/dcm4chee/2013/11/12/16/B2C22F15/B2C22F15-3594282.tar                
18:29:54,285 WARN  [FileCopyService] Failed to process org.dcm4chex.archive.hsm.FileCopyOrder@201311121627339651@2899cce6[, failures=18]        RetrieveAETs: DCM4CHEE                                                                                                                                                   
        Destination: tar:/mnt/vol2/nearline/dcm4chee                                                                                                           

        Source files:
                /mnt/vol1/online/dcm4chee,2013/11/12/16/B2C22F15/B2C22F15/B2C22F15
                /mnt/vol1/online/dcm4chee,2013/11/12/16/B2C22F15/B2C22F15/B2C241BC

. Scheduling retry.
java.io.IOException: Filesize doesn't match! file:/mnt/vol1/online/dcm4chee/2013/11/12/16/B2C22F15/B2C22F15/B2C22F15
        at org.dcm4chex.archive.hsm.FileCopyService.writeFile(FileCopyService.java:396)                           
        at org.dcm4chex.archive.hsm.FileCopyService.mkTar(FileCopyService.java:339)                               
        at org.dcm4chex.archive.hsm.FileCopyService.copyTar(FileCopyService.java:284)                             
        at org.dcm4chex.archive.hsm.FileCopyService.process(FileCopyService.java:208)                             
        at org.dcm4chex.archive.hsm.AbstractFileCopyService.onMessage(AbstractFileCopyService.java:295)           
        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$Worker.runTask(ThreadPoolExecutor.java:886)                    
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)                        
        at java.lang.Thread.run(Thread.java:619)                                                                  
       

Any suggestions to fix this error?

Thank you,
Ajay

fleetwoodfc

unread,
Nov 12, 2013, 9:17:27 AM11/12/13
to dcm...@googlegroups.com
The FileCopy service is unable to calculate the file size on the output file system i.e.

ERROR [FileCopyService] Filesize doesn't match for file entry:FileInfo[pk=3iuid=1.3.12.2.1107.5.1.4.45628.300000120302033121384253733285, cuid=1.2.840.10008.5.1.4.1.1.3, extRetrieveAET=null, fileRetrieveAET=DCM4CHEE, basedir=/mnt/vol1/online/dcm4chee, fileid=2013/11/12/16/B2C22F15/B2C22F15/B2C22F15, tsuid=1.2.840.10008.1.2.4.50!(0 vs. 71226)  - size is calculated as 0 on one filesystem and 71266 on the other.

Ajay

unread,
Nov 12, 2013, 9:46:50 AM11/12/13
to dcm...@googlegroups.com

Hi FleetWood,

Thank you for your response.

I can see the online image size 748Kb, and in nearline the image tar imaze size is 750Kb.
Any Idea where could be the problem?

Please advise me.

Thank you,
Ajay

fleetwoodfc

unread,
Nov 12, 2013, 3:16:09 PM11/12/13
to dcm...@googlegroups.com
Looking at it closer it may be an issue with tar. Do you need to tar the files first? - you could try copying without by specifying the destination as /mnt/vol2/nearline/dcm4chee (without the tar: prefix)

Ajay

unread,
Nov 13, 2013, 7:46:13 AM11/13/13
to dcm...@googlegroups.com
Hi Fleetwood,

I removed tar:/  in FileCopy service and applied the changes. But still I can still see the tar:/ destination path.
The image are copied to the nearline location as tar files.  But nearline records are NOT created in the data base.

I searched all the tables in the database, there is no entry about file copy location (tar:/mnt/) except online & nearline archive locations.
where can I find this, so that I can manually delete.

Please help.


18:04:01,741 INFO  [FileCopyService] Scheduling org.dcm4chex.archive.hsm.FileCopyOrder@2013111309283873921868@4eb02fd6[, failures=19]   RetrieveAETs: DCM4CHEE                                                                                                                                          

        Destination: tar:/mnt/vol2/nearline/dcm4chee                                                                                                   

        Source files:
                /mnt/vol1/online/dcm4chee,2013/11/13/9/E70F873E/E70F873E/E70F873E
                /mnt/vol1/online/dcm4chee,2013/11/13/9/E70F873E/E70F873E/E70FEF87

 at Wed Nov 13 19:04:01 IST 2013
18:04:01,754 WARN  [JDBCPersistenceManager] Failed to remove row for: Reference[22681066419274055]:RELIABLE
18:04:01,757 INFO  [FileCopyService] Start processing org.dcm4chex.archive.hsm.FileCopyOrder@2013111309283987121883@71524060[, failures=18]     RetrieveAETs: DCM4CHEE                                                                                                                                  

        Destination: tar:/mnt/vol2/nearline/dcm4chee                                                                                                   

        Source files:
                /mnt/vol1/online/dcm4chee,2013/11/13/9/E72D1AA8/E72D1AA8/E72D1AA8
                /mnt/vol1/online/dcm4chee,2013/11/13/9/E72D1AA8/E72D1AA8/E72D86E9


18:04:01,769 INFO  [FileCopyService] M-WRITE /mnt/vol2/PACS2/dcm4chee/2013/11/13/9/E72D1AA8/E72D1AA8-2041758.tar
18:04:02,115 WARN  [FileCopyService] Failed to process org.dcm4chex.archive.hsm.FileCopyOrder@2013111309283987121883@71524060[, failures=19]    RetrieveAETs: DCM4CHEE                                                                                                                                  

        Destination: tar:/mnt/vol2/nearline/dcm4chee                                                                                                   

        Source files:
                /mnt/vol1/nearline/dcm4chee,2013/11/13/9/E72D1AA8/E72D1AA8/E72D1AA8
                /mnt/vol1/nearline/dcm4chee,2013/11/13/9/E72D1AA8/E72D1AA8/E72D86E9

. Scheduling retry.
javax.ejb.ObjectNotFoundException: No such entity!
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:64)
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:604)      
        at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:315)     
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
        at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1099)                                        
        at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:676)                                                
        at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)                                                    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                            
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                 
        at org.jboss.invocation.Invocation.performCall(Invocation.java:359)                                                 
        at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1126)                         
        at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)                               
        at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)     
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
        at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)                               
        at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:136)                   
        at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)                            
        at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:45)                    
        at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)                    
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)                           
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)                            
        at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)                                     
        at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)                               
        at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)                                         
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)           
        at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:521)                                       
        at org.jboss.ejb.Container.invoke(Container.java:981)                                                               
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)                     
        at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)                                       
        at $Proxy138.findByDirectoryPath(Unknown Source)                                                                    
        at org.dcm4chex.archive.ejb.session.StorageBean.storeFile(StorageBean.java:404)                                     
        at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)                                                    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                            
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                 
        at org.jboss.invocation.Invocation.performCall(Invocation.java:359)                                                 
        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)          
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)    
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)   
        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)                        
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)                           
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)                            
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)                                         
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)                                   
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)                                             
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)               
        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)                                         
        at org.jboss.ejb.Container.invoke(Container.java:960)                                                               
        at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)                                                    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                            
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                 
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)                                
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)                                                      
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)                                                        
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)                                   
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)                                             
        at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)                          
        at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)                                            
        at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)                                 
        at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)                                      
        at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)                                    
        at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)                                          
        at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)                     
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)                                                 
        at $Proxy257.storeFile(Unknown Source)                                                                              
        at org.dcm4chex.archive.hsm.FileCopyService.copyTar(FileCopyService.java:301)                                       
Reply all
Reply to author
Forward
0 new messages