joaquinalcerro

joaquinalcerro

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.

Showing Posts 1 to 5

idi527

idi527

You need to add :observer to the list of applications to start, probably.

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.

joaquinalcerro

joaquinalcerro OP

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.

OvermindDL1

OvermindDL1

I think even the ‘official’ ErlangSolutions are deprecating their all-in-one package as I recall, so even officially it is broken up now.

hlalvesbr

hlalvesbr

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

# dnf install erlang-observer

Everything is ok now.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews