Giter VIP home page Giter VIP logo

Comments (9)

rareman99 avatar rareman99 commented on May 20, 2024

after start obsever_cli error as below
Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1]

Eshell V10.6 (abort with ^G)
1> observer_cli:start().
2021-08-17T15:07:28.640341+07:00 error: Error in process <0.130.0> with exit value:, {undef,[{recon_lib,scheduler_usage_diff,[[{24,45345,3083115},{23,37185,3083070},{22,36405,3096555},{21,37245,3099960},{20,33750,3108330},{19,32955,3116040},{18,34455,3125400},{17,31875,3136725},{15,35520,3151260},{16,35850,3141375},{14,37275,3159930},{13,33525,3160905},{12,36480,3177285},{11,37785,3178275},{9,36735,3199995},{10,35505,3189120},{8,34980,3202485},{7,36300,3208665},{6,32655,3211155},{5,33585,3220455},{3,33165,3228960},{4,35415,3222615},{1,62265,3249420},{2,2724930,3092865},{25,7710,8729289345},{26,33165,8729291085},{27,4110,8729291460},{28,25770,8729293500},{29,30120,8729295345},{30,5205,8729295645},{31,27600,8729297745},{32,25710,8729299545},{33,6375,8729300100},{34,28005,8729301870},{35,27690,8729303535},{36,4335,8729304000},{37,32535,8729305995},{38,4500,8729306340},{39,26475,8729308170},{40,24555,8729310075},{41,5040,8729310360},{42,25035,8729312055},{43,27120,8729314005},{44,4620,8729314350},{45,28455,8729316015},{46,26385,8729317980},{47,3945,8729318295},{48,23010,8729318775}],[{24,584040,6014175},{23,727005,6019965},{22,647265,6032130},{21,975600,6035580},{20,697665,6045195},{19,815850,6053235},{18,902340,6061740},{17,1033740,6073215},{15,956955,6087375},{16,901515,6077640},{14,970095,6095220},{12,977010,6113790},{13,1019400,6096090},{11,956745,6114855},{10,847650,6123555},{7,821145,6143130},{9,840690,6132810},{8,880065,6135150},{6,1057830,6146550},{4,523080,6158775},{5,1055145,6154305},{3,923145,6162495},{1,920925,6185100},{2,5660490,6028425},{25,7710,8732222370},{26,33165,8732222610},{27,4110,8732222835},{28,25770,8732223105},{29,30120,8732223360},{30,5205,8732223585},{31,27600,8732223780},{32,25710,8732224380},{33,6375,8732224590},{34,28005,8732224770},{35,27690,8732224965},{36,4335,8732225295},{37,32535,8732225505},{38,4500,8732225715},{39,26475,8732225925},{40,24555,8732226105},{41,5040,8732226285},{42,25035,8732226465},{43,27120,8732226675},{44,4620,8732226855},{45,28455,8732227035},{46,26385,8732227245},{47,3945,8732227470},{48,23010,8732227740}]],[]},{observer_cli,node_stats,1,[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli-master/src/observer_cli.erl"},{line,680}]},{observer_cli,redraw_running,7,[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli-master/src/observer_cli.erl"},{line,145}]}]}
2021-08-17T15:07:30.099625+07:00 error: Error in process <0.131.0> with exit value:, {undef,[{recon,info,[undefined],[]},{observer_cli_process,render_worker,6,[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli-master/src/observer_cli_process.erl"},{line,34}]}]}

from observer_cli.

rareman99 avatar rareman99 commented on May 20, 2024

another error as below.
4> observer_cli:start().
=ERROR REPORT==== 18-Aug-2021::14:00:31.304407 ===
Error in process <0.235.0> with exit value:
{{case_clause,["\t[","-u","userlist","]","[","-U","userlist","]","[","-G",
"grouplist","]"]},
[{observer_cli,render_system_line,2,
[{file,"/root/.cache/rebar3/lib/observer_cli/src/observer_cli.erl"},
{line,225}]},
{observer_cli,redraw_running,8,
[{file,"/root/.cache/rebar3/lib/observer_cli/src/observer_cli.erl"},
{line,194}]}]}
=ERROR REPORT==== 18-Aug-2021::14:00:44.223433 ===
Error in process <0.236.0> with exit value:
{badarg,[{erlang,process_info,
[undefined,[registered_name,dictionary,group_leader,status]],
[]},
{recon,proc_info,2,
[{file,"/root/.cache/rebar3/lib/recon/src/recon.erl"},
{line,236}]},
{recon,info_type,3,
[{file,"/root/.cache/rebar3/lib/recon/src/recon.erl"},
{line,224}]},
{recon,'-info/1-lc$^0/1-0-',2,
[{file,"/root/.cache/rebar3/lib/recon/src/recon.erl"},
{line,181}]},
{observer_cli_process,render_worker,6,
[{file,"/root/.cache/rebar3/lib/observer_cli/src/observer_cli_process.erl"},
{line,35}]}]}

from observer_cli.

zhongwencool avatar zhongwencool commented on May 20, 2024

@rareman99 please try master
49bec7e

the first problem is undef, you should run rebar3 compile first.

rebar3  compile
===> Verifying dependencies...
===> Fetching recon v2.5.1
===> Analyzing applications...
===> Compiling recon
===> Analyzing applications...
===> Compiling observer_cli
rebar3 shell
> observer_cli:start().

from observer_cli.

rareman99 avatar rareman99 commented on May 20, 2024

Hi @zhongwencool
thanks for help here below .
rebar3 compile
===> Failed to update package rebar3_format from repo hexpm
===> Errors loading plugin rebar3_format. Run rebar3 with DEBUG=1 set to see errors.
===> Failed to update package erlfmt from repo hexpm
===> Errors loading plugin erlfmt. Run rebar3 with DEBUG=1 set to see errors.
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling observer_cli

It look like problem on rebar.config I tried a lots but not success please see below (rebar.config).
cat rebar.config
{erl_opts, [{src_dirs, ["src", "test"]},
warn_unused_vars,
warn_export_all,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_deprecated_function,
warn_obsolete_guard,
strict_validation,
warn_export_vars,
warn_exported_vars,
warn_missing_spec,
warn_untyped_record, debug_info]}.
{deps_dir, "recon"}.
%%{deps, [recon]}.
{deps, [observer_cli]}.

{escript_main_app, observer_cli}.
{escript_emu_args, "%%! -escript main observer_cli_escriptize -hidden +sbtu +A0 -elixir ansi_enabled true\n"}.
{escript_incl_apps, [recon]}.

{dialyzer_opts, [{warnings, [unmatched_returns, error_handling, race_conditions, behaviours]}]}.
{edoc_opts, [{report_missing_types, true}, {source_path, ["src"]}, {report_missing_types, true}, {todo, true}, {packages, false}, {subpackages, false}]}.
{xref_checks, [undefined_function_calls]}.
{cover_enabled, true}.
{post_hooks, [{"(linux|darwin|solaris)", edoc, "escript doc/docsite.erl"}]}.

{profiles, [
{inet6, [
{escript_emu_args, "%%! -escript main observer_cli_escriptize -hidden -proto_dist inet6_tcp +sbtu +A0 -elixir ansi_enabled true\n"}
]}
]}.

{project_plugins, [rebar3_format, erlfmt]}.
{format, [
{files, ["src/.erl", "include/.hrl"]},
{formatter, erlfmt_formatter}, %% The erlfmt formatter interface.
{options, #{print_width => 100, ignore_pragma => true}} %% ...or no options at all.
]}.
%% rebar.config
%%{deps, [observer_cli]}.

from observer_cli.

zhongwencool avatar zhongwencool commented on May 20, 2024

The log shows that you can't download rebar3_format erlfmt from repo hexpm.
make sure you can visit hexpm.

PS: If you have already download recon the right way.
just delete {project_plugins, [rebar3_format, erlfmt]}. is ok.

why use

%% directory in '<base_dir>/<profile>/' where deps go
{deps_dir, "recon"}.

you better download recon by rebar3.

from observer_cli.

rareman99 avatar rareman99 commented on May 20, 2024

Hi
why use

%% directory in '<base_dir>//' where deps go
{deps_dir, "recon"}.

Cause of can't compile (observer_cli).
rebar3 compile
===> Failed to update package rebar3_format from repo hexpm
===> Errors loading plugin rebar3_format. Run rebar3 with DEBUG=1 set to see errors.
===> Failed to update package erlfmt from repo hexpm
===> Errors loading plugin erlfmt. Run rebar3 with DEBUG=1 set to see errors.
===> Verifying dependencies...
===> Failed to update package recon from repo hexpm
===> Package not found in any repo: recon
cat rebar.config
{erl_opts, [{src_dirs, ["src", "test"]},
warn_unused_vars,
warn_export_all,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_deprecated_function,
warn_obsolete_guard,
strict_validation,
warn_export_vars,
warn_exported_vars,
warn_missing_spec,
warn_untyped_record, debug_info]}.
{deps_dir, "deps"}.
{deps, [recon]}.
{deps, [observer_cli]}.

{escript_main_app, observer_cli}.
{escript_emu_args, "%%! -escript main observer_cli_escriptize -hidden +sbtu +A0 -elixir ansi_enabled true\n"}.
{escript_incl_apps, [recon]}.

{dialyzer_opts, [{warnings, [unmatched_returns, error_handling, race_conditions, behaviours]}]}.
{edoc_opts, [{report_missing_types, true}, {source_path, ["src"]}, {report_missing_types, true}, {todo, true}, {packages, false}, {subpackages, false}]}.
{xref_checks, [undefined_function_calls]}.
{cover_enabled, true}.
{post_hooks, [{"(linux|darwin|solaris)", edoc, "escript doc/docsite.erl"}]}.

{profiles, [
{inet6, [
{escript_emu_args, "%%! -escript main observer_cli_escriptize -hidden -proto_dist inet6_tcp +sbtu +A0 -elixir ansi_enabled true\n"}
]}
]}.

{project_plugins, [rebar3_format, erlfmt]}.
{format, [
{files, ["src/.erl", "include/.hrl"]},
{formatter, erlfmt_formatter}, %% The erlfmt formatter interface.
{options, #{print_width => 100, ignore_pragma => true}} %% ...or no options at all.
]}.

I'm newbie for erlang then I just tried to enable/disable in the rebar.config

you better download recon by rebar3.

Where to put recon? this is main problem I tried to put recon many places look like didn't work.
P.S (server can't to the internet)

from observer_cli.

rareman99 avatar rareman99 commented on May 20, 2024

Hi
I think i'm done for compile but still not success tried to switch between recon 2.5.2 and 2.5.1 still got error.

rebar3 compile

===> Fetching rebar3_format v1.0.1
===> Fetching katana_code v1.1.1
===> Analyzing applications...
===> Compiling katana_code
===> Compiling rebar3_format
Not formatting the formatter. We're not on the regular compiling cycle
===> Fetching erlfmt v1.0.0
===> Analyzing applications...
===> Compiling erlfmt
===> Verifying dependencies...
===> Fetching recon v2.5.2
===> Analyzing applications...
===> Compiling recon
===> Analyzing applications...
===> Compiling observer_cli

rebar3 shell
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling observer_cli
Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1]

Eshell V10.6 (abort with ^G)
1> l(recon).
{module,recon}
2> l(observer_cli).
{module,observer_cli}
3> observer_cli:start().
=ERROR REPORT==== 19-Aug-2021::11:14:40.897535 ===
Error in process <0.179.0> with exit value:
{{case_clause,["\t[","-u","userlist","]","[","-U","userlist","]","[","-G",
"grouplist","]"]},
[{observer_cli,render_system_line,2,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/src/observer_cli.erl"},
{line,225}]},
{observer_cli,redraw_running,8,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/src/observer_cli.erl"},
{line,194}]}]}
=ERROR REPORT==== 19-Aug-2021::11:14:43.035233 ===
Error in process <0.180.0> with exit value:
{badarg,[{erlang,process_info,
[undefined,[registered_name,dictionary,group_leader,status]],
[]},
{recon,proc_info,2,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/_build/default/deps/recon/src/recon.erl"},
{line,236}]},
{recon,info_type,3,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/_build/default/deps/recon/src/recon.erl"},
{line,224}]},
{recon,'-info/1-lc$^0/1-0-',2,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/_build/default/deps/recon/src/recon.erl"},
{line,181}]},
{observer_cli_process,render_worker,6,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/src/observer_cli_process.erl"},
{line,35}]}]}

rebar3 clean
===> Verifying dependencies...
===> Upgrading recon v2.5.1
===> Cleaning out observer_cli...
rebar3 compile
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling recon
===> Analyzing applications...
===> Compiling observer_cli
rebar3 shell
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling observer_cli
Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1]

Eshell V10.6 (abort with ^G)
1> observer_cli:start().
=ERROR REPORT==== 19-Aug-2021::11:28:28.179409 ===
Error in process <0.177.0> with exit value:
{{case_clause,["\t[","-u","userlist","]","[","-U","userlist","]","[","-G",
"grouplist","]"]},
[{observer_cli,render_system_line,2,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/src/observer_cli.erl"},
{line,225}]},
{observer_cli,redraw_running,8,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/src/observer_cli.erl"},
{line,194}]}]}
=ERROR REPORT==== 19-Aug-2021::11:28:29.974835 ===
Error in process <0.178.0> with exit value:
{badarg,[{erlang,process_info,
[undefined,[registered_name,dictionary,group_leader,status]],
[]},
{recon,proc_info,2,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/_build/default/deps/recon/src/recon.erl"},
{line,235}]},
{recon,info_type,3,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/_build/default/deps/recon/src/recon.erl"},
{line,223}]},
{recon,'-info/1-lc$^0/1-0-',2,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/_build/default/deps/recon/src/recon.erl"},
{line,181}]},
{observer_cli_process,render_worker,6,
[{file,"/opt/erlang/22.2/lib/erlang/lib/observer_cli/src/observer_cli_process.erl"},
{line,35}]}]}

from observer_cli.

zhongwencool avatar zhongwencool commented on May 20, 2024

use the master observer_cli.
or try to change observer_cli.erl

like this:
49bec7e

from observer_cli.

rareman99 avatar rareman99 commented on May 20, 2024

done. I stuck this for 2-3 month.
thanks a lots @zhongwencool 👍
💯
:)

image

from observer_cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.