# Cannot retrieved but received connection from PACS

**URL:** https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247
**Category:** Google Groups archive
**Created:** [January 4, 2021, 2:54am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247 "2021-01-04T02:54:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![M\_nh\_Ph\_m](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@M\_nh\_Ph\_m](https://discourse.orthanc-server.org/u/M_nh_Ph_m)
#### Post date: [January 4, 2021, 2:54am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/1 "2021-01-04T02:54:46Z")

</div>

Hello guys,

Here is the log from my orthanc:

**…**  
**I0104 02:28:11.468785 HttpServer.cpp:1189] (http) GET /**

**I0104 02:28:11.469153 HttpServer.cpp:1189] (http) GET /app/explorer.html**

**I0104 02:28:17.823662 CommandDispatcher.cpp:330] (dicom) Association Received from AET M7RECV01 on IP 10.42.0.1**

**I0104 02:28:17.823701 main.cpp:289] Incoming connection from AET M7RECV01 on IP 10.42.0.1, calling AET VINDR**

**I0104 02:28:17.823724 CommandDispatcher.cpp:683] (dicom) Association Acknowledged (Max Send PDV: 65524)**

**I0104 02:28:17.996225 CommandDispatcher.cpp:330] (dicom) Association Received from AET M7RECV01 on IP 10.42.0.1**

**I0104 02:28:17.996258 main.cpp:289] Incoming connection from AET M7RECV01 on IP 10.42.0.1, calling AET VINDR**

**I0104 02:28:17.996280 CommandDispatcher.cpp:683] (dicom) Association Acknowledged (Max Send PDV: 65524)**

**I0104 02:28:18.958252 HttpServer.cpp:1189] (http) GET /**

**I0104 02:28:18.958545 HttpServer.cpp:1189] (http) GET /app/explorer.html**

**…**

I put my orthanc inside kubernetes and set up a kind of cronjob (via: orthanc python plugin) to query/retrieve from PACS. I couldnot do retrieve manually:

**…**  
**I0104 02:50:09.615395 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/29/content**

**I0104 02:50:09.711776 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/30/content**

**I0104 02:50:09.808814 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/31/content**

**I0104 02:50:09.916626 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/32/content**

**I0104 02:50:10.012445 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/33/content**

**I0104 02:50:10.109974 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/34/content**

**I0104 02:50:10.217735 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/35/content**

**I0104 02:50:10.313720 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/36/content**

**I0104 02:50:10.409928 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/37/content**

**I0104 02:50:10.507175 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/38/content**

**I0104 02:50:10.608514 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/39/content**

**I0104 02:50:10.708464 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/40/content**

**I0104 02:50:10.807517 HttpServer.cpp:1189] (http) GET /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/41/content**

**I0104 02:50:11.468763 HttpServer.cpp:1189] (http) GET /**

**I0104 02:50:11.469127 HttpServer.cpp:1189] (http) GET /app/explorer.html**

**I0104 02:50:16.123986 HttpServer.cpp:1189] (http) GET /system**

**I0104 02:50:16.221450 HttpServer.cpp:1189] (http) GET /system**

**I0104 02:50:17.386932 HttpServer.cpp:1189] (http) POST /queries/7d1244c1-dde9-4759-8e29-04f8a86ca839/answers/0/retrieve**

**W0104 02:50:17.386992 OrthancRestModalities.cpp:715] Driving C-Move SCU on remote modality M7RECV01 to target modality VINDR**

**I0104 02:50:18.958236 HttpServer.cpp:1189] (http) GET /**

**I0104 02:50:18.958614 HttpServer.cpp:1189] (http) GET /app/explorer.html**

**…**

---

<div class="post-metadata">

### Author: ![James\_Manners](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@James\_Manners](https://discourse.orthanc-server.org/u/James_Manners)
#### Post date: [January 4, 2021, 3:01am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/2 "2021-01-04T03:01:01Z")

</div>

Hi Manh,

Have you exposed the DICOM port (typically 4242) to the public IP address and can your PACS reach that network address. C-Move is a connection from your PACS to Orthanc and if your PACS cannot reach the Orthanc IP/Port combination the move won’t succeed.

Without further details on your config, networking setup and environment it is impossible to help further.

Cheers,

James

---

<div class="post-metadata">

### Author: ![James\_Manners](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@James\_Manners](https://discourse.orthanc-server.org/u/James_Manners)
#### Post date: [January 4, 2021, 10:34am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/3 "2021-01-04T10:34:43Z")

</div>

Hi Manh,

Have you exposed the DICOM port (typically 4242) to the public IP address and can your PACS reach that network address. C-Move is a connection from your PACS to Orthanc and if your PACS cannot reach the Orthanc IP/Port combination the move won’t succeed.

Without further details on your config, networking setup and environment it is impossible to help further.

Cheers,

James

---

<div class="post-metadata">

### Author: ![M\_nh\_Ph\_m](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@M\_nh\_Ph\_m](https://discourse.orthanc-server.org/u/M_nh_Ph_m)
#### Post date: [January 5, 2021, 5:14am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/4 "2021-01-05T05:14:04Z")

</div>

Hi James,

Here is my environment variables to override the Orthanc default config:

**…**

**DICOM\_WEB\_PLUGIN\_ENABLED: false**  
**ENVVAR\_PREFIX\_FOR\_DYNACONF: VINDR**  
**ORTHANC\_\_AUTHENTICATION\_ENABLED: true**  
**ORTHANC\_\_CONCURRENT\_JOBS: 1**  
**ORTHANC\_\_DICOM\_AET: VINDR**  
**ORTHANC\_\_HTTP\_THREADS\_COUNT: 10**  
**ORTHANC\_\_NAME: VinDr Workstation**  
**ORTHANC\_\_POSTGRESQL\_\_DATABASE: orthanc**  
**ORTHANC\_\_POSTGRESQL\_\_HOST: \*\*\***  
**ORTHANC\_\_POSTGRESQL\_\_PASSWORD: \*\*\***  
**ORTHANC\_\_POSTGRESQL\_\_USERNAME: \*\*\***  
**ORTHANC\_\_PYTHON\_SCRIPT: /usr/share/orthanc/plugins/main.py**  
**ORTHANC\_\_PYTHON\_VERBOSE: false**  
**ORTHANC\_\_REGISTERED\_USERS: { “admin”: “admin” }**  
**ORTHANC\_\_REMOTE\_ACCESS\_ALLOWED: true**  
**TRANSFERS\_PLUGIN\_ENABLED: false**  
**VERBOSE\_ENABLED: true**  
**VERBOSE\_STARTUP: false**  
**…**

And orthanc.json:

**…**

**{**  
**“DicomAssociationCloseDelay”: 0,**  
**“DicomModalities”: {**  
**“bv-25005”: {**  
**“AET”: “MACH7”,**  
**“Port”: 104,**  
**“Host”: “workstation-external-pacs-bv-25005”**  
**}**  
**},**  
**“DicomScpTimeout”: 300,**  
**“DicomScuTimeout”: 100,**  
**“HttpTimeout”: 600,**  
**“HttpRequestTimeout”: 300**  
**}**

**…**

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [January 5, 2021, 6:37am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/5 "2021-01-05T06:37:51Z")

</div>

Hello,

I don’t understand what you are trying to achieve. Please carefully read the Orthanc Book about how to ask for support with proper context by providing a minimal working example:[https://book.orthanc-server.com/users/support.html](https://book.orthanc-server.com/users/support.html)

From your first post, you are visibly trying to do query/retrieve from Orthanc server with “VINDR” to remote modality “M7RECV01”. If this does not work, there is most probably a configuration error on “M7RECV01”: What are the logs on that modality? Is “VINDR” listed in the configuration of “M7RECV01”? Are you sure no firewall is in play?  
[https://book.orthanc-server.com/faq/dicom.html#dicom](https://book.orthanc-server.com/faq/dicom.html#dicom)

From your second post, you seem to use both environment variables and a plain “orthanc.json” configuration file. You should be using only one of them. Make the choice between the vanilla Docker image “jodogne/orthanc-plugins” if you want to use “orthanc.json”, or the Osimis image “osimis/orthanc” if you want to use environment variables:

[https://book.orthanc-server.com/users/docker.html](https://book.orthanc-server.com/users/docker.html)

[https://book.orthanc-server.com/users/docker-osimis.html](https://book.orthanc-server.com/users/docker-osimis.html)

Furthermore, in your “orthanc.json”, you are declaring a modality “MACH7” whereas the logs of your first post talk about “M7RECV01”.

Sébastien-

---

<div class="post-metadata">

### Author: ![abid\_halim](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@abid\_halim](https://discourse.orthanc-server.org/u/abid_halim)
#### Post date: [December 25, 2021, 5:35pm UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/6 "2021-12-25T17:35:21Z")

</div>

Hello , I have a problem, I cannot restore images stored in orthanc to AWServer But I can recover it using console Mri or Ct ![269372914_314673303889068_2192187303334545442_n.jpg](https://discourse.orthanc-server.org/uploads/default/original/2X/a/ad56f07a6cc39174589912090d68c7a4b09d05a6.jpeg)

---

<div class="post-metadata">

### Author: ![abid\_halim](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@abid\_halim](https://discourse.orthanc-server.org/u/abid_halim)
#### Post date: [December 25, 2021, 5:40pm UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/7 "2021-12-25T17:40:28Z")

</div>

Hello , I have a problem, I cannot restore images stored in orthanc to AWServer But I can recover it using console Mri or Ct

---

<div class="post-metadata">

### Author: ![abid\_halim](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@abid\_halim](https://discourse.orthanc-server.org/u/abid_halim)
#### Post date: [December 25, 2021, 5:41pm UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/8 "2021-12-25T17:41:24Z")

</div>

Hello , I have a problem, I cannot restore images stored in orthanc to AWServer But I can recover it using console Mri or Ct

![269372914_314673303889068_2192187303334545442_n.jpg](https://discourse.orthanc-server.org/uploads/default/original/2X/a/ad56f07a6cc39174589912090d68c7a4b09d05a6.jpeg)

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [December 28, 2021, 9:40am UTC](https://discourse.orthanc-server.org/t/cannot-retrieved-but-received-connection-from-pacs/2247/9 "2021-12-28T09:40:32Z")

</div>

The latest post from Halim is by no way related to the present thread. As a consequence, I’m now forced to lock this thread.

Halim, please start a new thread to discuss your issues, and avoid to disturb other threads in the future:

[https://book.orthanc-server.com/users/support.html](https://book.orthanc-server.com/users/support.html)

![269372914_314673303889068_2192187303334545442_n.jpg](https://discourse.orthanc-server.org/uploads/default/original/2X/a/ad56f07a6cc39174589912090d68c7a4b09d05a6.jpeg)
