warp_escape_json:1: can't create temp file for here document: permission denied
Dupe Check
- [X] I have searched Warp bugs and there are no duplicates
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
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
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
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 yourtmpdirectory may have the incorrect permissions.
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?
What's the value of the
$TMPPREFIXenv 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
Have you try to chmod the tmp ? Use this work for me: sudo chmod -R 1777 /tmp.
Have you try to chmod the
tmp? Use this work for me:sudo chmod -R 1777 /tmp. @longbuivan
Have you try to chmod the
tmp? Use this work for me:sudo chmod -R 1777 /tmp. @longbuivan
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