Qqwy

Qqwy

TypeCheck Core Team

Problems opening remote shell to Distillery release

I’m trying to set up a remote shell connection to an externally running node.
This node runs a release made using Distillery.
Rather than SSH-ing to the node and running /app/location/bin/appname remote_console, I want to run IEx locally, so that I can e.g. use :observer
However, running locally iex --name qqwy@Mycomputername --cookie mysecretcookie --remsh appname@12.34.56.78 returns the following unhelpful stack trace:

(Note: Since this is a live server with important data, I have replaced the real names, cookies and IP-address with placeholder ones.)

2017-10-08 16:21:20 crash_report        
    initial_call: {supervisor_bridge,user_sup,['Argument__1']}
    pid: <0.54.0>
    registered_name: []
    error_info: {exit,{badarg,[{ets,lookup,[elixir_config,identifier_tokenizer],[]},{elixir_config,get,1,[{file,"src/elixir_config.erl"},{line,22}]},{'Elixir.Macro',classify_identifier,1,[{file,"lib/macro.ex"},{line,134}]},{'Elixir.Inspect.Atom',inspect,1,[{file,"lib/inspect.ex"},{line,79}]},{'Elixir.Inspect.Atom',inspect,2,[{file,"lib/inspect.ex"},{line,65}]},{'Elixir.Kernel',inspect,2,[{file,"lib/kernel.ex"},{line,1698}]},{'Elixir.IEx.CLI',tty_args,0,[{file,"lib/iex/cli.ex"},{line,84}]},{'Elixir.IEx.CLI',start,0,[{file,"lib/iex/cli.ex"},{line,54}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,352}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
    ancestors: [kernel_sup,<0.34.0>]
    messages: [{'EXIT',#Port<0.677>,normal}]
    links: [<0.35.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 465
2017-10-08 16:21:20 supervisor_report   
    supervisor: {local,kernel_sup}
    errorContext: start_error
    reason: {badarg,[{ets,lookup,[elixir_config,identifier_tokenizer],[]},{elixir_config,get,1,[{file,"src/elixir_config.erl"},{line,22}]},{'Elixir.Macro',classify_identifier,1,[{file,"lib/macro.ex"},{line,134}]},{'Elixir.Inspect.Atom',inspect,1,[{file,"lib/inspect.ex"},{line,79}]},{'Elixir.Inspect.Atom',inspect,2,[{file,"lib/inspect.ex"},{line,65}]},{'Elixir.Kernel',inspect,2,[{file,"lib/kernel.ex"},{line,1698}]},{'Elixir.IEx.CLI',tty_args,0,[{file,"lib/iex/cli.ex"},{line,84}]},{'Elixir.IEx.CLI',start,0,[{file,"lib/iex/cli.ex"},{line,54}]}]}
    offender: [{pid,undefined},{id,user},{mfargs,{user_sup,start,[]}},{restart_type,temporary},{shutdown,2000},{child_type,supervisor}]
2017-10-08 16:21:20 crash_report        
    initial_call: {application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}
    pid: <0.33.0>
    registered_name: []
    error_info: {exit,{{shutdown,{failed_to_start_child,user,{badarg,[{ets,lookup,[elixir_config,identifier_tokenizer],[]},{elixir_config,get,1,[{file,"src/elixir_config.erl"},{line,22}]},{'Elixir.Macro',classify_identifier,1,[{file,"lib/macro.ex"},{line,134}]},{'Elixir.Inspect.Atom',inspect,1,[{file,"lib/inspect.ex"},{line,79}]},{'Elixir.Inspect.Atom',inspect,2,[{file,"lib/inspect.ex"},{line,65}]},{'Elixir.Kernel',inspect,2,[{file,"lib/kernel.ex"},{line,1698}]},{'Elixir.IEx.CLI',tty_args,0,[{file,"lib/iex/cli.ex"},{line,84}]},{'Elixir.IEx.CLI',start,0,[{file,"lib/iex/cli.ex"},{line,54}]}]}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
    ancestors: [<0.32.0>]
    messages: [{'EXIT',<0.34.0>,normal}]
    links: [<0.32.0>,<0.31.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 191
2017-10-08 16:21:20 std_info            
    application: kernel
    exited: {{shutdown,{failed_to_start_child,user,{badarg,[{ets,lookup,[elixir_config,identifier_tokenizer],[]},{elixir_config,get,1,[{file,"src/elixir_config.erl"},{line,22}]},{'Elixir.Macro',classify_identifier,1,[{file,"lib/macro.ex"},{line,134}]},{'Elixir.Inspect.Atom',inspect,1,[{file,"lib/inspect.ex"},{line,79}]},{'Elixir.Inspect.Atom',inspect,2,[{file,"lib/inspect.ex"},{line,65}]},{'Elixir.Kernel',inspect,2,[{file,"lib/kernel.ex"},{line,1698}]},{'Elixir.IEx.CLI',tty_args,0,[{file,"lib/iex/cli.ex"},{line,84}]},{'Elixir.IEx.CLI',start,0,[{file,"lib/iex/cli.ex"},{line,54}]}]}}},{kernel,start,[normal,[]]}}
    type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,user,{badarg,[{ets,lookup,[elixir_config,identifier_tokenizer],[]},{elixir_config,get,1,[{file,\"src/elixir_config.erl\"},{line,22}]},{'Elixir.Macro',classify_identifier,1,[{file,\"lib/macro.ex\"},{line,134}]},{'Elixir.Inspect.Atom',inspect,1,[{file,\"lib/inspect.ex\"},{line,79}]},{'Elixir.Inspect.Atom',inspect,2,[{file,\"lib/inspect.ex\"},{line,65}]},{'Elixir.Kernel',inspect,2,[{file,\"lib/kernel.ex\"},{line,1698}]},{'Elixir.IEx.CLI',tty_args,0,[{file,\"lib/iex/cli.ex\"},{line,84}]},{'Elixir.IEx.CLI',start,0,[{file,\"lib/iex/cli.ex\"},{line,54}]}]}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,user,{badarg,[{ets,lookup,[elixir_config,identifier_tokenizer],[]},{elixir_config,ge

Crash dump is being written to: erl_crash.dump...done

The cookie in my command matches the one set in the settings, and running /someplace/appname/bin/appname describe shows indeed this cookie, as well as the name appname@127.0.0.1.

What is going on?

Most Liked

alisinabh

alisinabh

Is your release and client running on same erts version?

Qqwy

Qqwy

TypeCheck Core Team

Yes, the release was made locally, on the computer that runs the client and then moved to the server.

mischov

mischov

@Qqwy Did you ever figure this out?

Where Next?

Popular in Questions Top

dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
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
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

We're in Beta

About us Mission Statement