# Failed to create temporary directory

**URL:** <https://forum.ansible.com/t/failed-to-create-temporary-directory/35375>\
**Category:** Ansible Project\
**Created:** [June 18, 2021, 7:41pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375 "2021-06-18T19:41:25Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [June 18, 2021, 9:35pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/21 "2021-06-18T21:35:36Z")

</div>

Okay apologies.

This is the key message here.

Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory.

Permissions.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:38pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/22 "2021-06-18T21:38:32Z")

</div>

no it is not getting creating on my remote machine which is debian

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:39pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/23 "2021-06-18T21:39:13Z")

</div>

/home/shared is the directory on my target or remote machine which has 777 permission as well as temproot also has sudo permission

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:40pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/24 "2021-06-18T21:40:57Z")

</div>

what does this mean by “target directory” which directory it is referring to?

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:41pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/25 "2021-06-18T21:41:11Z")

</div>

Sorry, I do not understand that answer.

What do you see in the log files on your Debian machine at the time you run the  
ansible command on your Centos machine?

I would expect to find entries in /var/log/syslog and/or /var/log/auth.log on  
the Debian machine when a remote user connects by SSH and runs a command.

Antony.

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:42pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/26 "2021-06-18T21:42:53Z")

</div>

Please log on to the Debian machine and paste here the results of the  
commands:

&nbsp;&nbsp;ls -al /home/shared

&nbsp;&nbsp;grep temproot /etc/passwd

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:45pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/27 "2021-06-18T21:45:03Z")

</div>

ls -al /home/shared  
total 24  
drwxrwxrwx 3 root root 4096 Jun 18 22:37 .  
drwxr-xr-x 6 root root 4096 Jun 18 10:28 …  
-rw-r–r-- 1 root root 1930 Jun 18 08:52 .bash\_profile  
-rw-r–r-- 1 root root 715 Jun 18 08:52 .bashrc  
drwxr-xr-x 2 root root 4096 Jun 18 11:01 scripts  
-rw------- 1 temproot osgroup 754 Jun 18 22:37 .viminfo

grep temproot /etc/passwd  
temproot:x:1000:1001::/home/shared:/bin/bash

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:49pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/28 "2021-06-18T21:49:00Z")

</div>

> ls -al /home/shared  
> total 24  
> drwxrwxrwx 3 root root 4096 Jun 18 22:37 .

This directory is owned by root.

Is there any good reason why you do not do "chown temproot: /home/shared" on  
this machine?

> grep temproot /etc/passwd  
> temproot:x:1000:1001::/home/shared:/bin/bash

Hm, what does "grep 1001 /etc/group" show?

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:51pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/29 "2021-06-18T21:51:34Z")

</div>

grep 1001 /etc/group  
osgroup:x:1001:

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:53pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/30 "2021-06-18T21:53:02Z")

</div>

i did change the file owner to temproot :-  
total 24  
drwxrwxrwx 3 temproot osgroup 4096 Jun 18 22:37 .  
drwxr-xr-x 6 root root 4096 Jun 18 10:28 …  
-rw-r–r-- 1 root root 1930 Jun 18 08:52 .bash\_profile  
-rw-r–r-- 1 root root 715 Jun 18 08:52 .bashrc  
drwxr-xr-x 2 root root 4096 Jun 18 11:01 scripts  
-rw------- 1 temproot osgroup 754 Jun 18 22:37 .viminfo  
temproot@localhost:~$ pwd  
/home/shared

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:54pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/31 "2021-06-18T21:54:01Z")

</div>

So, there are no other members of the group "osgroup".

I still fail to understand why the home directory for "temproot" is not owned  
by temproot.

Antony.

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:55pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/32 "2021-06-18T21:55:26Z")

</div>

Okay.

1. Has that made any difference to the output from running your ansible  
commands?

2. What do the log files such as /var/log/auth.log and /var/log/syslog on the  
Debian machine you are targetting tell you is happening when you run the  
commands on the Centos ansible server?

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:55pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/33 "2021-06-18T21:55:52Z")

</div>

now i made it to temproot, now also i am facing the same issue

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:56pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/34 "2021-06-18T21:56:53Z")

</div>

there is no such file on the debian machine

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:57pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/35 "2021-06-18T21:57:53Z")

</div>

Please show us what appears in the log files on the Debian machine for the  
timestamps when you run the ansible command.

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:57pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/36 "2021-06-18T21:57:57Z")

</div>

/var/log$ ls  
alarm.log apps.log.4.gz dpkg.log lastlog private sysstat ztp.log  
alternatives.log apt drift linecard.log restconf-command.log tl1-command.log  
apps.log btmp event.log messages.log security.log user.log  
apps.log.1.gz cli-command.log extclient.log netconf-command.log shell-command.log watchdog  
apps.log.2.gz configuration.log faillog nginx sim wtmp  
apps.log.3.gz crashlogs kernel.log pcp sysinfo.log xmm4\_fdr

these are the files i can see in my log folder

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 9:58pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/37 "2021-06-18T21:58:30Z")

</div>

Please paste the output of:

&nbsp;&nbsp;ls /var/log

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 9:59pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/38 "2021-06-18T21:59:22Z")

</div>

Jun 18 22:58:41 localhost sal[6649]: 11817:ArpUpdaterTh INFO {ArpUpdater.cpp:396} handleNLNeighMsg: NeighMsgType: NewNeigh NeighState: Failed  
Jun 18 22:58:41 localhost sal[6649]: 11817:ArpUpdaterTh INFO {ArpUpdater.cpp:400} handleNLNeighMsg: Delete Arp for 19.88.4.49  
Jun 18 22:58:41 localhost sal[6649]: 11817:ArpUpdaterTh INFO {L3Db.cpp:707} deleteArp: Dst:0x13580431 VrfId:0  
Jun 18 22:58:41 localhost sal[6649]: 11817:ArpUpdaterTh ERROR {L3Db.cpp:745} deleteArp: RtEntry does not exist  
Jun 18 22:58:41 localhost SdaServer[5970]: agent: error joining: 1 error occurred:

- Failed to join [19.88.4.49](http://19.88.4.49): dial tcp [19.88.4.49:7949](http://19.88.4.49:7949): connect: no route to host  
Jun 18 22:58:41 localhost SdaServer[5970]: agent: Join failed: 1 error occurred:
- Failed to join [19.88.4.49](http://19.88.4.49): dial tcp [19.88.4.49:7949](http://19.88.4.49:7949): connect: no route to host

, retrying in 10s  
Jun 18 22:58:44 localhost sal[6649]: 11817:ArpUpdaterTh INFO {ArpUpdater.cpp:396} handleNLNeighMsg: NeighMsgType: NewNeigh NeighState: Failed  
Jun 18 22:58:44 localhost sal[6649]: 11817:ArpUpdaterTh INFO {ArpUpdater.cpp:400} handleNLNeighMsg: Delete Arp for 19.88.4.49  
Jun 18 22:58:44 localhost sal[6649]: 11817:ArpUpdaterTh INFO {L3Db.cpp:707} deleteArp: Dst:0x13580431 VrfId:0  
Jun 18 22:58:44 localhost sal[6649]: 11817:ArpUpdaterTh ERROR {L3Db.cpp:745} deleteArp: RtEntry does not exist  
Jun 18 22:58:50 localhost sshd[8612]: debug1: Forked child 20582.  
Jun 18 22:58:50 localhost sshd[20582]: debug1: Set /proc/self/oom\_score\_adj to 0  
Jun 18 22:58:50 localhost sshd[20582]: debug1: rexec start in 13 out 13 newsock 13 pipe 15 sock 16  
Jun 18 22:58:50 localhost sshd[20582]: error: Could not load host key: /etc/ssh/ssh\_host\_ed25519\_key  
Jun 18 22:58:50 localhost sshd[20582]: debug1: inetd sockets after dupping: 3, 3  
Jun 18 22:58:50 localhost sshd[20582]: Connection from 10.220.6.50 port 36048 on 172.16.12.215 port 8022  
Jun 18 22:58:50 localhost sshd[20582]: debug1: Client protocol version 2.0; client software version OpenSSH\_7.4  
Jun 18 22:58:50 localhost sshd[20582]: debug1: match: OpenSSH\_7.4 pat OpenSSH\_7.0\*,OpenSSH\_7.1\*,OpenSSH\_7.2\*,OpenSSH\_7.3\*,OpenSSH\_7.4\*,OpenSSH\_7.5\*,OpenSSH\_7.6\*,OpenSSH\_7.7\* compat 0x04000002  
Jun 18 22:58:50 localhost sshd[20582]: debug1: Local version string SSH-2.0-OpenSSH\_7.9p1 Debian-10+deb10u2  
Jun 18 22:58:50 localhost sshd[20582]: debug1: permanently\_set\_uid: 105/65534 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: list\_hostkey\_types: ssh-rsa,ecdsa-sha2-nistp521 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: SSH2\_MSG\_KEXINIT sent [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: SSH2\_MSG\_KEXINIT received [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: kex: algorithm: ecdh-sha2-nistp256 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: kex: host key algorithm: ecdsa-sha2-nistp521 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: kex: client-\>server cipher: aes128-ctr MAC: [hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com) compression: [zlib@openssh.com](mailto:zlib@openssh.com) [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: kex: server-\>client cipher: aes128-ctr MAC: [hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com) compression: [zlib@openssh.com](mailto:zlib@openssh.com) [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: expecting SSH2\_MSG\_KEX\_ECDH\_INIT [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: rekey after 4294967296 blocks [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: SSH2\_MSG\_NEWKEYS sent [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: expecting SSH2\_MSG\_NEWKEYS [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: SSH2\_MSG\_NEWKEYS received [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: rekey after 4294967296 blocks [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: KEX done [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: userauth-request for user temproot service ssh-connection method none [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: attempt 0 failures 0 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: user temproot does not match group list nogroup at line 37  
Jun 18 22:58:50 localhost sshd[20582]: debug1: connection from 172.16.12.215 matched ‘LocalPort 8022’ at line 52  
Jun 18 22:58:50 localhost sshd[20582]: debug1: PAM: initializing for “temproot”  
Jun 18 22:58:50 localhost sshd[20582]: debug1: PAM: setting PAM\_RHOST to “10.220.6.50”  
Jun 18 22:58:50 localhost sshd[20582]: debug1: PAM: setting PAM\_TTY to “ssh”  
Jun 18 22:58:50 localhost sshd[20582]: debug1: userauth-request for user temproot service ssh-connection method publickey [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: attempt 1 failures 0 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: userauth\_pubkey: key type ssh-rsa not in PubkeyAcceptedKeyTypes [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: userauth-request for user temproot service ssh-connection method password [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: attempt 2 failures 1 [preauth]  
Jun 18 22:58:50 localhost sshd[20582]: debug1: PAM: password authentication accepted for temproot  
Jun 18 22:58:50 localhost sshd[20582]: debug1: do\_pam\_account: called  
Jun 18 22:58:51 localhost sshd[20582]: Accepted password for temproot from 10.220.6.50 port 36048 ssh2  
Jun 18 22:58:51 localhost sshd[20582]: debug1: monitor\_child\_preauth: temproot has been authenticated by privileged process  
Jun 18 22:58:51 localhost sshd[20582]: debug1: Enabling compression at level 6. [preauth]  
Jun 18 22:58:51 localhost sshd[20582]: debug1: monitor\_read\_log: child log fd closed  
Jun 18 22:58:51 localhost sshd[20582]: debug1: PAM: establishing credentials  
Jun 18 22:58:51 localhost sshd[20582]: User child is on pid 20594  
Jun 18 22:58:51 localhost sshd[20594]: debug1: SELinux support disabled  
Jun 18 22:58:51 localhost sshd[20594]: debug1: PAM: establishing credentials  
Jun 18 22:58:51 localhost sshd[20594]: debug1: permanently\_set\_uid: 1000/1001  
Jun 18 22:58:51 localhost sshd[20594]: debug1: rekey after 4294967296 blocks  
Jun 18 22:58:51 localhost sshd[20594]: debug1: rekey after 4294967296 blocks  
Jun 18 22:58:51 localhost sshd[20594]: debug1: ssh\_packet\_set\_postauth: called  
Jun 18 22:58:51 localhost sshd[20594]: debug1: Enabling compression at level 6.  
Jun 18 22:58:51 localhost sshd[20594]: debug1: active: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding  
Jun 18 22:58:51 localhost sshd[20594]: debug1: Entering interactive session for SSH2.  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_init\_dispatch  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_open: ctype session rchan 2 win 2097152 max 32768  
Jun 18 22:58:51 localhost sshd[20594]: debug1: input\_session\_request  
Jun 18 22:58:51 localhost sshd[20594]: debug1: channel 0: new [server-session]  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_new: session 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_open: channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_open: session 0: link with channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_open: confirm session  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_req: channel 0 request env reply 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_input\_channel\_req: session 0 req env  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_req: channel 0 request exec reply 1  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_input\_channel\_req: session 0 req exec  
Jun 18 22:58:51 localhost sshd[20594]: Starting session: forced-command (config) ‘/opt/infinera/thanos/local/bin/ssh\_direct\_wrapper.sh’ for temproot from 10.220.6.50 port 36048 id 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: Received SIGCHLD.  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_pid: pid 20595  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_exit\_message: session 0 channel 0 pid 20595  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_exit\_message: release channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_close\_by\_channel: channel 0 child 0  
Jun 18 22:58:51 localhost sshd[20594]: Close session: user temproot from 10.220.6.50 port 36048 id 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: channel 0: free: server-session, nchannels 1  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_open: ctype session rchan 2 win 2097152 max 32768  
Jun 18 22:58:51 localhost sshd[20594]: debug1: input\_session\_request  
Jun 18 22:58:51 localhost sshd[20594]: debug1: channel 0: new [server-session]  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_new: session 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_open: channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_open: session 0: link with channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_open: confirm session  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_req: channel 0 request env reply 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_input\_channel\_req: session 0 req env  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_req: channel 0 request exec reply 1  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_input\_channel\_req: session 0 req exec  
Jun 18 22:58:51 localhost sshd[20594]: Starting session: forced-command (config) ‘/opt/infinera/thanos/local/bin/ssh\_direct\_wrapper.sh’ for temproot from 10.220.6.50 port 36048 id 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: Received SIGCHLD.  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_pid: pid 20600  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_exit\_message: session 0 channel 0 pid 20600  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_exit\_message: release channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_close\_by\_channel: channel 0 child 0  
Jun 18 22:58:51 localhost sshd[20594]: Close session: user temproot from 10.220.6.50 port 36048 id 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: channel 0: free: server-session, nchannels 1  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_open: ctype session rchan 2 win 2097152 max 32768  
Jun 18 22:58:51 localhost sshd[20594]: debug1: input\_session\_request  
Jun 18 22:58:51 localhost sshd[20594]: debug1: channel 0: new [server-session]  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_new: session 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_open: channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_open: session 0: link with channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_open: confirm session  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_req: channel 0 request env reply 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_input\_channel\_req: session 0 req env  
Jun 18 22:58:51 localhost sshd[20594]: debug1: server\_input\_channel\_req: channel 0 request exec reply 1  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_input\_channel\_req: session 0 req exec  
Jun 18 22:58:51 localhost sshd[20594]: Starting session: forced-command (config) ‘/opt/infinera/thanos/local/bin/ssh\_direct\_wrapper.sh’ for temproot from 10.220.6.50 port 36048 id 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: Received SIGCHLD.  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_pid: pid 20605  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_exit\_message: session 0 channel 0 pid 20605  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_exit\_message: release channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_by\_channel: session 0 channel 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: session\_close\_by\_channel: channel 0 child 0  
Jun 18 22:58:51 localhost sshd[20594]: Close session: user temproot from 10.220.6.50 port 36048 id 0  
Jun 18 22:58:51 localhost sshd[20594]: debug1: channel 0: free: server-session, nchannels 1  
Jun 18 22:58:51 localhost SdaServer[5970]: agent: Joining cluster…(replay: false)  
Jun 18 22:58:51 localhost SdaServer[5970]: agent: joining: [19.88.4.49] replay: false  
Jun 18 22:58:54 localhost sshd[24534]: debug1: Got 100/185 for keepalive  
Jun 18 22:58:54 localhost sshd[24534]: debug1: Got 100/186 for keepalive  
Jun 18 22:58:54 localhost sal[6649]: 11817:ArpUpdaterTh INFO {ArpUpdater.cpp:396} handleNLNeighMsg: NeighMsgType: NewNeigh NeighState: Failed  
Jun 18 22:58:54 localhost sal[6649]: 11817:ArpUpdaterTh INFO {ArpUpdater.cpp:400} handleNLNeighMsg: Delete Arp for 19.88.4.49  
Jun 18 22:58:54 localhost sal[6649]: 11817:ArpUpdaterTh INFO {L3Db.cpp:707} deleteArp: Dst:0x13580431 VrfId:0  
Jun 18 22:58:54 localhost sal[6649]: 11817:ArpUpdaterTh ERROR {L3Db.cpp:745} deleteArp: RtEntry does not exist  
Jun 18 22:58:54 localhost SdaServer[5970]: agent: error joining: 1 error occurred:

- Failed to join [19.88.4.49](http://19.88.4.49): dial tcp [19.88.4.49:7949](http://19.88.4.49:7949): connect: no route to host  
Jun 18 22:58:54 localhost SdaServer[5970]: agent: Join failed: 1 error occurred:
- Failed to join [19.88.4.49](http://19.88.4.49): dial tcp [19.88.4.49:7949](http://19.88.4.49:7949): connect: no route to host

, retrying in 10s  
Jun 18 22:58:57 localhost sal[6649]: 11886:ArpUpdaterTh INFO {ArpUpdater.cpp:396} handleNLNeighMsg: NeighMsgType: NewNeigh NeighState: Failed  
Jun 18 22:58:57 localhost sal[6649]: 11886:ArpUpdaterTh INFO {ArpUpdater.cpp:400} handleNLNeighMsg: Delete Arp for 19.88.4.49  
Jun 18 22:58:57 localhost sal[6649]: 11886:ArpUpdaterTh INFO {L3Db.cpp:707} deleteArp: Dst:0x13580431 VrfId:0  
Jun 18 22:58:57 localhost sal[6649]: 11886:ArpUpdaterTh ERROR {L3Db.cpp:745} deleteArp: RtEntry does not exist  
Jun 18 22:59:04 localhost SdaServer[5970]: agent: Joining cluster…(replay: false)  
Jun 18 22:59:04 localhost SdaServer[5970]: agent: joining: [19.88.4.49] replay: false  
Jun 18 22:59:04 localhost sshd[24405]: debug1: Got 100/1458 for keepalive

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 10:04pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/39 "2021-06-18T22:04:37Z")

</div>

I'm sorry - I am out of my depth here - this is unlike any Debian machine I  
have ever worked on - so many expected things are missing and so many  
unexpected things exist. I have no idea how this machine has been set up.

I hope someone else may be able to chip in and suggest how to debug this  
further.

Antony.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 19, 2021, 12:29pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/40 "2021-06-19T12:29:05Z")

</div>

Can you wipe and reinstall the Debian system?

[Previous page](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375.md?page=1)

[Next page](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375.md?page=3)
