# "Direct write is requested for job:$job\_id but the destination: $final\_destination\_directory is not usecp-able from $mom\_hostname" (DEBUG3)"

**URL:** <https://community.openpbs.org/t/direct-write-is-requested-for-job-job-id-but-the-destination-final-destination-directory-is-not-usecp-able-from-mom-hostname-debug3/2365>\
**Category:** Users/Site Administrators\
**Created:** [November 17, 2020, 2:56am UTC](https://community.openpbs.org/t/direct-write-is-requested-for-job-job-id-but-the-destination-final-destination-directory-is-not-usecp-able-from-mom-hostname-debug3/2365 "2020-11-17T02:56:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollow\_op](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@hollow\_op](https://community.openpbs.org/u/hollow_op)\
**Post date:** [November 17, 2020, 2:56am UTC](https://community.openpbs.org/t/direct-write-is-requested-for-job-job-id-but-the-destination-final-destination-directory-is-not-usecp-able-from-mom-hostname-debug3/2365/1 "2020-11-17T02:56:51Z")

</div>

Hi,

I am submitting jobs with direct write and getting this warning : “Direct write is requested for job:$job\_id but the destination: $final\_destination\_directory is not usecp-able from $mom\_hostname” (DEBUG3)" . This happens for some nodes , not all. I would like to understand more about this issue in order to report to my admin. I believe as a user I cannot modify this behavior in some node correct ?

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [November 18, 2020, 12:28am UTC](https://community.openpbs.org/t/direct-write-is-requested-for-job-job-id-but-the-destination-final-destination-directory-is-not-usecp-able-from-mom-hostname-debug3/2365/2 "2020-11-18T00:28:24Z")

</div>

Please share your job script with obfuscation  
Please search and check the $usecp attribute in the PBS Professional administrator guide

> **[PBSAdminGuide2020.1.pdf](https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf)**
>
> 8.32 MB

> **[PBS Pro Confluence](https://openpbs.atlassian.net/wiki/spaces/PD/pages/51901651/PP-516+Direct+write+of+the+job+s+stdout+err+files.?showComments=true&showCommentArea=true)**

---

<div class="post-metadata">

**Author:** ![feacluster](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@feacluster](https://community.openpbs.org/u/feacluster)\
**Post date:** [February 22, 2022, 5:27pm UTC](https://community.openpbs.org/t/direct-write-is-requested-for-job-job-id-but-the-destination-final-destination-directory-is-not-usecp-able-from-mom-hostname-debug3/2365/3 "2022-02-22T17:27:09Z")

</div>

I too am running into the same issue. The folder where I am submitting the job from is shared via nfs to the execution host. Any suggestions on how to debug furthur? I am submitting via the command:

```auto
qsub -k oed myjob.sh

```

It works fine as long as I submit the job directly from the execution host. But I would like it to work if I submit from another node which is running a web server.

---

<div class="post-metadata">

**Author:** ![feacluster](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@feacluster](https://community.openpbs.org/u/feacluster)\
**Post date:** [February 22, 2022, 9:02pm UTC](https://community.openpbs.org/t/direct-write-is-requested-for-job-job-id-but-the-destination-final-destination-directory-is-not-usecp-able-from-mom-hostname-debug3/2365/4 "2022-02-22T21:02:32Z")

</div>

Think I figured it out. On each host I added this to the Mom config file:

```auto
$usecp *:/home/users/ /home/users/

```

Then restarted the pbs service on each node.

Seems to be working now! Guess I am surprised why I need to do this. Shouldn’t PBS know if the job is being submitted from a shared filesystem?
