Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esbuild location in /tmp/phx-esbuild causes permission issue on multiuser systems #33

Closed
nullfractal opened this issue Nov 25, 2021 · 1 comment

Comments

@nullfractal
Copy link

Environment

  • Elixir version: 1.12.3
  • Phoenix version: 1.6.2
  • Operating system: Pop!_OS / Ubuntu

Expected behavior

When setting up/installing a phoenix application on a multi-user system, the path of the /tmp location for esbuild should not cause permission issues if the directory already exists from another user account. This could possibly be addressed by using a user specifc named directory or prefix inside /tmp for the phx-esbuild directory.

Actual behavior

Although this isn't a common scenario I'm guessing (shared computers or computer lab environments would be affected), when one user on a system is developing phoenix apps, esbuild package gets downloaded to /tmp/phx-esbuild and is set for that user's user/group ownership. If another user then logs into the same system and attempts to start or run a phoenix application, the application fails to start because that /tmp/phx-esbuild directory is owned by the other user:

[error] Task #PID<0.534.0> started from MyAppWeb.Endpoint terminating
** (File.Error) could not remove files and directories recursively from "/tmp/phx-esbuild": permission denied
@nullfractal
Copy link
Author

nullfractal commented Nov 25, 2021

@josevalim you are awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant