# Unable to send file from orphanc to dcm4che

**URL:** https://discourse.orthanc-server.org/t/unable-to-send-file-from-orphanc-to-dcm4che/4707
**Category:** General
**Created:** [May 16, 2024, 8:18am UTC](https://discourse.orthanc-server.org/t/unable-to-send-file-from-orphanc-to-dcm4che/4707 "2024-05-16T08:18:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ravinder](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/r/3bc359/32.png) [@Ravinder](https://discourse.orthanc-server.org/u/Ravinder)
#### Post date: [May 16, 2024, 8:18am UTC](https://discourse.orthanc-server.org/t/unable-to-send-file-from-orphanc-to-dcm4che/4707/1 "2024-05-16T08:18:34Z")

</div>

I am getting this error when I am sending a dicom file from orthanc to dcm4che.

ErrorCode: **2015**

ErrorDescription: **DicomUserConnection: No acceptable presentation context for modality**

ErrorDetails: **Unable to negotiate a presentation context with AET “AS\_RECEIVED”**

ID: **17126149-a1da-41e6-9bb2-69b618726be1**

Priority: **0**

Progress: **0**

State: **Failure**

Type: **DicomModalityStore**  
Detailed Information:  
Description: **REST API**

FailedInstancesCount: **0**

InstancesCount: **172**

LocalAet: **ORT\_RADPRETATION**

ParentResources: **[“1971163a-26b23f46-66a62f33-229e6a17-9fddfee0”]**

RemoteAet: **AS\_RECEIVED**

The orphan.json has following relevant entry:  
// must use the REST API to define modalities.  
“DicomModalities” : {  
“dcm4che” : [“AS\_RECEIVED”, “13.200.115.229”, 11112]

---

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [May 16, 2024, 1:17pm UTC](https://discourse.orthanc-server.org/t/unable-to-send-file-from-orphanc-to-dcm4che/4707/2 "2024-05-16T13:17:46Z")

</div>

**Hello** (word used as a greeting or to begin a conversation)

What kind of files are you trying to send ?

You should [enable the trace logs](https://orthanc.uclouvain.be/book/faq/log.html) to analyze the DICOM association in details.

Best regards,

Alain.

---

<div class="post-metadata">

### Author: ![Ravinder](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/r/3bc359/32.png) [@Ravinder](https://discourse.orthanc-server.org/u/Ravinder)
#### Post date: [May 17, 2024, 9:56am UTC](https://discourse.orthanc-server.org/t/unable-to-send-file-from-orphanc-to-dcm4che/4707/3 "2024-05-17T09:56:23Z")

</div>

Hi Alain

I am sending DICOM study. Little more context - I was able to establish the connection from orthanc to another orthanc ( in other server) with the dicom modalities entry as above.  
The orthanc log setting link that you posted for verbose, I tried setting the verbose option( non-docker options in Linux) but not able to get this activated.  
For example, when i run this: sudo -u orthanc /usr/sbin/Orthanc --verbose /etc/orthanc/ \> Orthanc.log 2\>&1 it gives a permission error.  
Then I tried sudo /etc/init.d/orthanc start --trace --logfile=orthanc.log but can’t see any details other than posted in the UI.

I am quite new to this. So, I can send apologies in every sentence for what I am trying but I am assuming you/community will understand the beginner level user. Thanks for sending the note. Let me know if there is more that I need to provide to get the help.

Thanks & Regards  
-Ravinder

---

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [May 21, 2024, 3:36pm UTC](https://discourse.orthanc-server.org/t/unable-to-send-file-from-orphanc-to-dcm4che/4707/4 "2024-05-21T15:36:54Z")

</div>

Hi,

If you have Orthanc Explorer 2 installed, the easiest is to [change the log level through the UI](https://orthanc.uclouvain.be/book/faq/log.html#with-orthanc-explorer-2-installed).

Otherwise, make sure that the `orthanc` user has access to the log directory. → maybe try with this command:

```auto
sudo -u orthanc /usr/sbin/Orthanc --trace /etc/orthanc/ > /tmp/Orthanc.log 2>&1

```

Best regards,

Alain.
