Warp icon indicating copy to clipboard operation
Warp copied to clipboard

warp_escape_json:1: can't create temp file for here document: permission denied

Open jackqiu0123 opened this issue 1 year ago • 8 comments

Dupe Check

Describe the bug

No matter what command I execute, there will always be this error coming out warp_escape_json:1: can't create temp file for here document: permission denied image

Warp: v0.2024.05.07.08.02.stable_02 Mac: 14.4.1 (23E224)

To reproduce

After starting Warp for a period of time, maybe 4or 5 days, this issue will occur

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

14.4.1 (23E224)

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0) GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)

Current Warp version

v0.2024.05.07.08.02.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

jackqiu0123 avatar May 13 '24 13:05 jackqiu0123

Hey @jackqiu0123, thanks for filing and sorry for the issues you're experiencing.

Are you in a subshell or SSH session when this reproduces? Additionally, would you mind sharing the output of ls -l /tmp? It seems like your tmp directory may have the incorrect permissions.

alokedesai avatar May 13 '24 13:05 alokedesai

@alokedesai
image

jackqiu0123 avatar May 20 '24 09:05 jackqiu0123

Hey @jackqiu0123, thanks for filing and sorry for the issues you're experiencing.

Are you in a subshell or SSH session when this reproduces? Additionally, would you mind sharing the output of ls -l /tmp? It seems like your tmp directory may have the incorrect permissions.

image

jackqiu0123 avatar May 20 '24 10:05 jackqiu0123

What's the value of the $TMPPREFIX env var in your ZSH session? Next time this occur occurs could you also see if the value of that environment variable (or the permissions of the directory that the env var points to) has changed?

alokedesai avatar May 27 '24 19:05 alokedesai

What's the value of the $TMPPREFIX env var in your ZSH session? Next time this occur occurs could you also see if the value of that environment variable (or the permissions of the directory that the env var points to) has changed?

Where to search for this $TMPPREFIX, ZSH session

jackqiu0123 avatar Jun 14 '24 04:06 jackqiu0123

Have you try to chmod the tmp ? Use this work for me: sudo chmod -R 1777 /tmp.

longbuivan avatar Jun 20 '24 03:06 longbuivan

Have you try to chmod the tmp ? Use this work for me: sudo chmod -R 1777 /tmp. @longbuivan image

jackqiu0123 avatar Jun 25 '24 04:06 jackqiu0123

Have you try to chmod the tmp ? Use this work for me: sudo chmod -R 1777 /tmp. @longbuivan image

I've had this problem too. If you remove the -R so that it doesn't apply recursively to all subdirectories and files within /tmp, it will probably work. sudo chmod 1777 /tmp

adam-brady avatar Jun 10 '25 16:06 adam-brady