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

Error running reticulum on windows 11 #632

Open
danflu opened this issue Oct 10, 2022 · 3 comments
Open

Error running reticulum on windows 11 #632

danflu opened this issue Oct 10, 2022 · 3 comments

Comments

@danflu
Copy link

danflu commented Oct 10, 2022

Hello guys! I'm trying to run reticulum on windows 11.

elixir 1.12.3 / erlang 23.3 instaled.

Steps:
mix deps.get
mix ecto.create

Done sucessfully.

Directory storage/dev created inside reticulum folder.

Running iex -S mix phx.server on an elevated administrator terminal, and getting error:

Last message: :cachex_warmer
State: {{:cache, :storage_used, %{}, false, {:expiration, nil, 3000, true}, {:fallback, nil, nil}, {:hooks, [], []}, {:limit, nil, Cachex.Policy.LRW, 0.1, []}, [:nonode@nohost], false, [{:warmer, Ret.StorageUsed, nil}]}, nil}
iex(1)> [error] GenServer #PID<0.1081.0> terminating
** (stop) :enoent
    (elixir 1.12.3) lib/system.ex:1041: System.cmd("df", ["-k", "storage/dev"], [])
    (ret 1.0.0) lib/ret/storage_used.ex:27: Ret.StorageUsed.execute/1
    (ret 1.0.0) lib/cachex/warmer.ex:79: Ret.StorageUsed.handle_info/2
    (stdlib 3.14.1) gen_server.erl:689: :gen_server.try_dispatch/4
    (stdlib 3.14.1) gen_server.erl:765: :gen_server.handle_msg/6
    (stdlib 3.14.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: :cachex_warmer
State: {{:cache, :storage_used, %{}, false, {:expiration, nil, 3000, true}, {:fallback, nil, nil}, {:hooks, [], []}, {:limit, nil, Cachex.Policy.LRW, 0.1, []}, [:nonode@nohost], false, [{:warmer, Ret.StorageUsed, nil}]}, nil}
iex(1)> [info] <TheEnd> no more connections
iex(1)> [info] Application ret exited: shutdown
iex(1)>

I also found a closed ticket about this exact issue and added more details there, so feel free to reopen the issue / answer there if you feel more convenient...

#548

Thanks a lot,
Daniel

@yk-eta
Copy link

yk-eta commented Nov 1, 2022

having the same issue, I have no idea why, when I try System.cmd("echo", ["hello"]), result Erlang error: :enoent, and System.shell("echo hello") is working, is it System.cmd not supported on Windows 11?

@yk-eta
Copy link

yk-eta commented Nov 1, 2022

I tried on my Windows 10 having same problem.

https://stackoverflow.com/questions/49164534/elixir-system-cmd-isnt-working

look like it is not WIndows version issue, but the command issue?

@yk-eta
Copy link

yk-eta commented Nov 3, 2022

FYI

I added a condition on the check of directory to bypass it on local, and it working

`if Mix.env() == :prod do`

on before this line https://github.com/mozilla/reticulum/blob/master/lib/ret/storage_used.ex#L13

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

2 participants