joaquinalcerro

joaquinalcerro

Unable to start observer locally

Hi,

I am trying to start the observer in iex without success. This is my scenario:

Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

[info] Running HcmWeb.Endpoint with Cowboy using http://0.0.0.0:4000
Interactive Elixir (1.6.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 21:21:12 - info: compiling
21:21:13 - info: compiled 12 files into 2 files, copied 7 in 5.5 sec

Applications started:

iex(4)> Application.started_applications()
[
  {:hcm, 'hcm', '0.0.1'},
  {:phoenix_ecto, 'Integration between Phoenix & Ecto', '3.3.0'},
  {:postgrex, 'PostgreSQL driver for Elixir.', '0.13.5'},
  ........
  ........
  {:comeonin, 'Password hashing (bcrypt, pbkdf2_sha512) library for Elixir.\n',
   '3.2.0'},
  {:runtime_tools, 'RUNTIME_TOOLS', '1.12.5'},
  {:logger, 'logger', '1.6.4'},
  .........
  ]

Undefined:

iex(5)> :observer.start()
** (UndefinedFunctionError) function :observer.start/0 is undefined (module :observer is not available)
    :observer.start()
iex(5)> 

My mix file

  def application do
    [
      mod: {Hcm.Application, []},
      extra_applications: [
        :logger,
        :runtime_tools,
        :coherence,
        :number,
        :hackney,
        :poison,
        :ssl
      ]
    ]
  end

Not really sure what is happening.

Thanks for the help.

Marked As Solved

josevalim

josevalim

Creator of Elixir

How did you install Erlang? Some distributions breaks Erlang in multiple packages, so you need to make sure you have the observer one installed in your system.

Also Liked

joaquinalcerro

joaquinalcerro

I am using OpenSuSe Tumbleweed and I installed Erlang adding the Erlang Repo to the package manager then installing it directly.

zypper repos                                                                                                                                                                           1 ↵
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias               | Name                        | Enabled | GPG Check | Refresh
--+---------------------+-----------------------------+---------+-----------+--------
1 | PostgreSQL          | PostgreSQL                  | Yes     | (r ) Yes  | No     
2 | erlang              | erlang                      | Yes     | (r ) Yes  | Yes    
3 | google              | google                      | Yes     | (r ) Yes  | No     
4 | openSUSE-20180308-0 | openSUSE-20180308-0         | No      | ----      | ----   
5 | repo-debug          | openSUSE-Tumbleweed-Debug   | No      | ----      | ----   
6 | repo-non-oss        | openSUSE-Tumbleweed-Non-Oss | Yes     | (r ) Yes  | Yes    
7 | repo-oss            | openSUSE-Tumbleweed-Oss     | Yes     | (r ) Yes  | Yes    
8 | repo-source         | openSUSE-Tumbleweed-Source  | No      | ----      | ----   
9 | repo-update         | openSUSE-Tumbleweed-Update  | Yes     | (r ) Yes  | Yes    
------------------------------------------------------------

To install:

sudo zypper install erlang

Based on your suggestion, I check the repo for the observer package and it was not installed:

~ » zypper info erlang-observer
Loading repository data...
Reading installed packages...

Information for package erlang-observer:
----------------------------------------
Repository     : openSUSE-Tumbleweed-Oss                  
Name           : erlang-observer                          
Version        : 20.3.2-1.2                               
Arch           : x86_64                                   
Vendor         : openSUSE                                 
Installed Size : 1.1 MiB                                  
Installed      : No                                       
Status         : not installed                            
Source package : erlang-20.3.2-1.2.src                    
Summary        : A GUI tool for observing an erlang system
Description    :                                          
    The observer is gui frontend containing various tools to inspect a system.
    It displays system information, application structures, process information,
    ets or mnesia tables and a frontend for tracing with ttb.

------------------------------------------------------------

So I finally installed it and everything works fine.

sudo zypper install erlang-observer

Thanks. I didn’t expect that I had a partial Erlang installation.

Best regards.

hlalvesbr

hlalvesbr

I’ve had the same issue in Fedora 29. Just did:

# dnf install erlang-observer

Everything is ok now.

Where Next?

Popular in Questions Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
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
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
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
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
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
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

We're in Beta

About us Mission Statement