Conquest on NAS cifs export

  • Hi all,


    I've installed Conquest DICOM server on a linux debian machine and I first wanted to export DICOM exams from an Philips MRI to a NAS.
    The NAS drive is mounted on the linux box (cifs file system).


    Unfortunately it does not work if I configured the export to the NAS mount point or if but it does work if I export DICOM in a local directory (for example /home/db/data).


    The error message given is :


    UPACS THREAD 0: STARTED AT: Wed Sep 1 16:37:05 2010
    A-ASSOCIATE-RQ Packet Dump
    Calling Application Title : "SLGIRM3T01 "
    Called Application Title : "CONQUESTSRV1 "
    Application Context : "1.2.840.10008.3.1.1.1", PDU length: 32768
    Number of Proposed Presentation Contexts: 15
    Presentation Context 0 "1.2.840.10008.1.1" 1
    Presentation Context 1 "1.2.840.10008.5.1.4.1.1.4" 1
    Presentation Context 2 "1.2.840.10008.5.1.4.1.1.4.1" 1
    Presentation Context 3 "1.2.840.10008.5.1.4.1.1.4.2" 1
    Presentation Context 4 "1.2.840.10008.5.1.4.1.1.66" 0
    Presentation Context 5 "1.2.840.10008.5.1.4.1.1.7" 1
    Presentation Context 6 "1.2.840.10008.5.1.4.1.1.11.1" 1
    Presentation Context 7 "1.3.46.670589.11.0.0.12.1" 0
    Presentation Context 8 "1.3.46.670589.11.0.0.12.2" 0
    Presentation Context 9 "1.3.46.670589.11.0.0.12.4" 0
    Presentation Context 10 "1.2.840.10008.5.1.4.1.2.2.1" 1
    Presentation Context 11 "1.2.840.10008.5.1.4.1.2.2.2" 1
    Presentation Context 12 "1.2.840.10008.5.1.4.1.2.1.1" 1
    Presentation Context 13 "1.2.840.10008.5.1.4.1.2.1.2" 1
    Presentation Context 14 "1.2.840.10008.1.20.1" 0
    Server Command := 0001
    Message ID := 4fa1
    ***Error getting free store for device /NAS/data
    *** Out of disk space
    UPACS THREAD 0: ENDED AT: Wed Sep 1 16:37:07 2010
    UPACS THREAD 0: TOTAL RUNNING TIME: 2 SECONDS


    Of course there's enough space on the disk, it's a brand new NAS with up to 7 T. Maybe it's a problem of permissions or file system ? ...
    Could you help me please to fix this ?

  • Hi,


    This is an issue in the code to establish the amount of free space. The easiest (temp) fix is to add, in device.cpp, at line 570 or so, a line as follows:


    Code
    UINT
    CalcMegsOnDevice(const char *theRootDirectory)
    {
    size_t aFreeSpace = 0;
    struct statvfs aStat;
    return 10000; // added as temp fix


    And then recompile. This disables the out of disk test.


    Marcel

  • Thanks very much,


    I tried your fix but I think there's another issue. And maybe you won't be able to do anything for that...


    When typing sudo ./dgate -v -r , I noticed this : *** Not enough rights to write in MAG0
    And then when doing a export test :


    Server Command := 0001
    Message ID := 0001
    ***Error writing file: //10.11.204.242/irm_3t/data/3T010920101140/1.3.46.670589.11.34037.5.0.1980.2010090111504925301_0301_000001_12834109880000.v2
    UPACS THREAD 0: ENDED AT: Thu Sep 2 09:03:08 2010
    UPACS THREAD 0: TOTAL RUNNING TIME: 4 SECONDS


    The perms on the NAS are rwx for everyone so I don't get it. Maybe I missed some options in my fstab... any clues ?


    Thanks again for your precious help,

  • is there's something I can change in the dgate.cpp file at lines 8000-8022 ?


    The directory "printer_files" and the file "accestest.log" are well created on the NAS but the test doesn't pass.

  • Hm,


    The test just tries to open the just written file. I do not get what goes wrong. Maybe you can scan bug reports for the drive? This looks like something that would affect other apps as well.


    Marcel

  • This really looks like a permissions or share misconfiguration.


    http://ubuntuforums.org/archive/index.php/t-288534.html


    Gives a really good tutorial for getting NAS/cifs up and mounted at boot.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!