Page 1 of 1
C-STORE-RQ DataSet PDV: Cannot open file
Posted: Fri Jan 19, 2007 8:59 pm
by gydill
Whenever 2 clients try to access the same image from the server second person always encounter the same error:
Dataset Query Level: [IMAGE]
Fri Jan 19 14:07:21 2007 INFO - Running SQL Query: SELECT * FROM image WHERE uid="2.16.840.1.391473378.1.1.3.0.0.6.995" AND seriesuid="2.16.840.1.391473378.1.1.3.0.0.6.995";
Fri Jan 19 14:07:21 2007 INFO - 1 record found in [image] table
Fri Jan 19 14:07:21 2007 INFO - 5 tags processed in CDataSetPdv
Fri Jan 19 14:07:21 2007 ERROR - C-STORE-RQ DataSet PDV: Cannot open file <d:/pacsone/data/2.16.840.1.391473378.1.1.3.0.0.6.995>
Fri Jan 19 14:07:21 2007 ERROR - Exception encountered in IoCompleteCallback
Fri Jan 19 14:07:21 2007 INFO - Session: <436> disconnected for client: 205.5.60.8
Please help

Posted: Fri Jan 19, 2007 9:05 pm
by gydill
Here is DEBUG version
Fri Jan 19 15:03:44 2007 INFO - <3> A-ASSOCIATE-RQ received successfully
Fri Jan 19 15:03:44 2007 DEBUG - Sending Present Context ID: 1 Result: 0
Fri Jan 19 15:03:44 2007 DEBUG - Sending Transfer Syntax: 1.2.840.10008.1.2
Fri Jan 19 15:03:44 2007 DEBUG - Send Max Pdu Length: 32762
Fri Jan 19 15:03:44 2007 INFO - <3> Sending A-ASSOCIATE-AC PDU
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting WRITE for 187 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 187 bytes
Fri Jan 19 15:03:44 2007 INFO - <3> A-ASSOCIATE-AC PDU sent successfully
Fri Jan 19 15:03:44 2007 INFO - <3> Receiving P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting READ for 6 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 6 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting READ for 156 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 156 bytes
Fri Jan 19 15:03:44 2007 INFO - <3> C-GET command received in P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 DEBUG - <3> 0 bytes PDV received in P-DATA-TF PDU [156]
Fri Jan 19 15:03:44 2007 INFO - <3> C-GET command received in P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 DEBUG - <3> 0 bytes Dataset PDV received in P-DATA-TF PDU [156]
Fri Jan 19 15:03:44 2007 ERROR - Invalid Command PDV: Command=[0X10] MessageId=[11]
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00080058 Length = 0
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting READ for 6 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 6 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting READ for 166 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 166 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Tag: 0x00080018 Unique ID: [2.16.840.1.391473378.1.1.3.0.0.6.995]
Fri Jan 19 15:03:44 2007 DEBUG - Tag: 0x00080052 Code String: [IMAGE]
Fri Jan 19 15:03:44 2007 DEBUG - Tag: 0x00100020 Long String: [1]
Fri Jan 19 15:03:44 2007 DEBUG - Tag: 0x0020000d Unique ID: [2.16.840.1.391473378.1.1.3.0.0.6.995]
Fri Jan 19 15:03:44 2007 DEBUG - Tag: 0x0020000e Unique ID: [2.16.840.1.391473378.1.1.3.0.0.6.995]
Fri Jan 19 15:03:44 2007 DEBUG - <3> 166 bytes PDV received in P-DATA-TF PDU [166]
Fri Jan 19 15:03:44 2007 INFO - Dataset Query Level: [IMAGE]
Fri Jan 19 15:03:44 2007 INFO - Running SQL Query: SELECT * FROM image WHERE uid="2.16.840.1.391473378.1.1.3.0.0.6.995" AND seriesuid="2.16.840.1.391473378.1.1.3.0.0.6.995";
Fri Jan 19 15:03:44 2007 INFO - 1 record found in [image] table
Fri Jan 19 15:03:44 2007 INFO - 5 tags processed in CDataSetPdv
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00080018 Length = 46
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00080052 Length = 14
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00100020 Length = 10
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x0020000d Length = 44
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x0020000e Length = 46
Fri Jan 19 15:03:44 2007 DEBUG - <3> Sending Command Response in P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 ERROR - C-STORE-RQ DataSet PDV: Cannot open file <d:/pacsone/data/2.16.840.1.391473378.1.1.3.0.0.6.995>
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting WRITE for 142 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 142 bytes
Fri Jan 19 15:03:44 2007 DEBUG - <3> Sending Command Response in P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting WRITE for 32768 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 32768 bytes
Fri Jan 19 15:03:44 2007 DEBUG - <3> Sending Command Response in P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00001023 Length = 2
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00001022 Length = 2
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00001021 Length = 2
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00001020 Length = 2
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> starting WRITE for 140 bytes
Fri Jan 19 15:03:44 2007 DEBUG - Session: <3> I/O completed with 140 bytes
Fri Jan 19 15:03:44 2007 DEBUG - <3> Sending Command Response in P-DATA-TF PDU
Fri Jan 19 15:03:44 2007 ERROR - Exception encountered in IoCompleteCallback
Fri Jan 19 15:03:44 2007 DEBUG - Parsed Tag = 0x00080058 Length = 0
Fri Jan 19 15:03:44 2007 INFO - Session: <3> disconnected for client: 205.5.60.122
Server version is 1.0.0.14
Posted: Sat Jan 20, 2007 12:27 am
by pacsone
Check if this directory d:/pacsone/data/ does exist, and if so, whether the user account PacsOne is running as (by default it's the Windows SYSTEM account) has sufficient permission to create files under that directory.
Posted: Mon Jan 22, 2007 3:58 pm
by gydill
I can do C-STORE no problem and C-GET also. The only problem that if two workstations access the server for C-GET at the same time and trying to get the same file. The second workstation always gets this error. I checked the rights and even tryed to switch service user to administrator. It almost seems that server opens the file in exclusive mode and that file can't be open for reading unless its done sending for the first connection. Correct me if I'm wrong. Also I don't understand why the error reported with C-STORE and not C_GET.
If you need more info please let me know. Thank you for helping me.
Posted: Mon Jan 22, 2007 8:04 pm
by pacsone
If both C-STORE and C-GET commands are accessing the same file, then one of them WILL get an error, because one command is reading while the other command is writing the same file, and the read/write opearations are mutually exclusive of each other, i.e., you cannot perform both read and write operations on the same file at the same time.
Posted: Mon Jan 22, 2007 8:18 pm
by gydill
I'm only doing C-GETs and I'm getting this error from C-GET. I just don't understand that in my log the error comes from C-STORE although I didn't perform any C-STORE.
Posted: Mon Jan 22, 2007 11:06 pm
by pacsone
Yes, the Basic Edition of PacsOne Server opens Dicom image files in exclusive mode, so if you have 2 C-GETs pending at the same time, the 2nd one would get an error when PacsOne tries to open the same image file (locked by the previous C-GET operation) and send it via the C-STORE-RQ to the remote peer.
The Premium Edition of PacsOne Server opens the Dicom image files in the non-exclusive Read mode, so the 2 simultaneous C-GET operations on the same file would work fine if you are running the Premium Edition of PacsOne Server.
Posted: Tue Jan 23, 2007 4:04 pm
by gydill
How much is premium edition?
Posted: Tue Jan 23, 2007 4:32 pm
by pacsone
Please send you pricing inquiry to
mailto:licensing.info@rainbowfishsoftware.com with your contact information.