# Whence data.\<node\_name\>@localhost directories?

**URL:** <https://forum.elixirforum.com/t/whence-data-node-name-localhost-directories/52705>\
**Category:** Questions\
**Tags:** logging, logger\
**Created:** [December 22, 2022, 12:31pm UTC](https://forum.elixirforum.com/t/whence-data-node-name-localhost-directories/52705 "2022-12-22T12:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chocolatedonut](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@chocolatedonut](https://forum.elixirforum.com/u/chocolatedonut)\
**Post date:** [December 22, 2022, 12:31pm UTC](https://forum.elixirforum.com/t/whence-data-node-name-localhost-directories/52705/1 "2022-12-22T12:31:13Z")

</div>

Which application produces local `data.<node_name>@localhost` and `log.<node_name>@localhost` directories in project root? `lager`? Where is this behavior configured? I was only expecting to see logs in the console, given `config :logger, :console, format: "[$level] $message\n"` in `dev.exs`.

---

<div class="post-metadata">

**Author:** ![chocolatedonut](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@chocolatedonut](https://forum.elixirforum.com/u/chocolatedonut)\
**Post date:** [December 28, 2022, 12:42pm UTC](https://forum.elixirforum.com/t/whence-data-node-name-localhost-directories/52705/2 "2022-12-28T12:42:28Z")

</div>

I now realise these two (empty) directories, `data.<node_name>@localhost` and `log.<node_name>@localhost`, are created when the app can’t boot; f.e. when the Phoenix port is already in-use (`** (EXIT) {:listen_error, MyAppWeb.Endpoint.HTTP, :eaddrinuse}`).

Do you know how to turn off this behaviour? Setting [`ERL_CRASH_DUMP=/dev/null`](https://github.com/yrashk/erlang/blob/e1282325ed75e52a98d58f5bd9fb0fa27896173f/erts/emulator/beam/break.c#L684) doesn’t prevent the creation of these dirs, neither does `ERL_CRASH_DUMP_BYTES=0`.

---

<div class="post-metadata">

**Author:** ![jstimps](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jstimps/32/41062_2.png) [@jstimps](https://forum.elixirforum.com/u/jstimps)\
**Post date:** [March 14, 2023, 4:56pm UTC](https://forum.elixirforum.com/t/whence-data-node-name-localhost-directories/52705/3 "2023-03-14T16:56:03Z")

</div>

I stumbled upon this thread when investigating a similar problem. In my case, I found that my project was pulling [setup - GitHub](https://github.com/uwiger/setup) as a dependency.

`setup` can be configured with log\_dir and a data\_dir config options, but the default behavior is `data.<node_name>@localhost` and `log.<node_name>@localhost` as you described in your post.

I suggest looking into the configuration options of the `setup` app. For me, I just added the following to my config:

```elixir
config :setup,
  data_dir: "my_data_dir",
  log_dir: "my_log_dir"

```
