Observer tool for debian system

i have deploy one phoenix website on the debian 9.2 system.
when i use :observer.start commad to monitor the app, it report Unable to initialize GTK+, is DISPLAY set properly error. Should i have to install kde in my debian system?

You do not need to have KDE installed.

How did You deploy? Did You use distillery?

I had to modify mix.exs like this to make it work…

extra_applications: [:logger, :runtime_tools, :wx, :observer]

And those are the packages I added to Ubuntu server… might be slightly different for Debian.

  • build-essential
  • autoconf
  • m4
  • libncurses5-dev
  • libwxgtk3.0-dev
  • libgl1-mesa-dev
  • libglu1-mesa-dev
  • libpng3
  • libssl-dev
  • postgresql
  • postgresql-contrib

UPDATE: I also use asdf to build erlang and elixir.

1 Like

thank you.
I used distillery to deploy。I installed the packages you recommended, but it still do not work.
I develop on the mac, deploy the website on the remote Debian server. I SSH the Debian, config DISPLAY as mac local ip:0,0.
can you recommend other command tool, such as etop?

You need to install the packages, then build erlang and elixir with asdf. How do You install them?

You need to build the release on debian, not on mac. Now the tarball should be able to use observer.

I installed them on Debian using apt-get install command.
Now I try to monitor remote Debian Server on my local mac.

What versions do You use?

$ erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 9.1
$ elixir -v
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.5.2

I am sorry I cannot help You more, but I guess your version is not build with observer support.

You should try asdf, very easy to use, it allows You to build and manage multiple versions of Erlang/Elixir, even on Linux.

thanks. I has deploy success and it did work. now i try to mointor the website.

Is it working now?

There is an old related blog post here Inspect a remote system with observer