AndresMurguido001

AndresMurguido001

Issue with intro to Mix and OTP tutorial

So, I just finished going through all the “Getting Started” and “Mix and OTP” guides on the elixir website. When i build and run the final project, im only able to create new buckets, but i cannot add, or see whats in them. The error i keep coming across is here:

15:11:28.548 [error] Task #PID<0.633.0> started from #PID<0.635.0> terminating
** (stop) exited in: GenServer.call({KV.RouterTasks, :nonode@nohost}, {:start_task, [{:"foo@DESKTOP-EEIQJP1", #PID<0.635.0>, #PID<0.635.0>}, [#PID<0.635.0>, #PID<0.633.0>, #PID<0.631.0>], :monitor, {KV.Router, :route, ["shopping", KV.Registry, :lookup, [KV.Registry, "shopping"]]}], :temporary, nil}, :infinity)
    ** (EXIT) no connection to nonode@nohost
    (elixir 1.10.2) lib/gen_server.ex:1023: GenServer.call/3
    (elixir 1.10.2) lib/task/supervisor.ex:456: Task.Supervisor.async/6
    (kv 0.1.0) lib/kv/router.ex:21: KV.Router.route/4
    (kv_server 0.1.0) lib/kv_server/command.ex:74: KVServer.Command.lookup/2
    (kv_server 0.1.0) lib/kv_server.ex:29: KVServer.serve/1
    (elixir 1.10.2) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (stdlib 3.12) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: #Function<0.1374176/0 in KVServer.loop_acceptor/1>
    Args: []

Im not sure if this is related to my code since I cloned other completed versions and experienced the same error. I installed elixir using windows subsystem for linux. Any ideas as to what could be causing this?

Marked As Solved

lucaong

lucaong

Did you start the console with a name, like indicated in the guide here? You should start your console instances with something like: iex --sname foo to follow that part of the project.

If all is fine, and the VM started with a name, the console prompt should show something like:

iex(foo@my-machine-name)1>

Also Liked

AndresMurguido001

AndresMurguido001

I see now. I was thinking the VM’s would start dynamically. I’ll need to re-read that section. Thank you. Got it up and running now

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a &gt; b) do {:ok, "a"} end if (a &lt; b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31194 112
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36432 110
New
Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 127536 1222
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement