Skip to content

'rebar3 daemon' not working as 'rebar3 start' #2647

Open
@ziyouchutuwenwu

Description

@ziyouchutuwenwu

Pre-Check

  • If you are filing for a bug, please do a quick search in current issues first
  • For bugs, mention if you are willing or interested in helping fix the issue
  • For questions or support, it helps to include context around your project or problem
  • Think of a descriptive title (more descriptive than 'feature X is broken' unless it is fully broken)

Environment

  • Add the result of rebar3 report to your message:
$ rebar3 report
Rebar3 report
 version 3.17.0
 generated at 2021-11-12T01:02:46+00:00
=================
Please submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)
-----------------
Task: 
Entered as:
  
-----------------
Operating System: x86_64-pc-linux-gnu
ERTS: Erlang/OTP 24 [erts-12.0] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1] [jit]
Root Directory: /home/mmc/.asdf/installs/erlang/24.0
Library directory: /home/mmc/.asdf/installs/erlang/24.0/lib
-----------------
Loaded Applications:
bbmustache: 1.10.0
certifi: 2.6.1
cf: 0.3.1
common_test: 1.20.3
compiler: 8.0
crypto: 5.0
cth_readable: 1.5.1
dialyzer: 4.4
edoc: 1.0
erlware_commons: 1.5.0
eunit: 2.6.1
eunit_formatters: 0.5.0
getopt: 1.0.1
inets: 7.4
kernel: 8.0
providers: 1.8.1
public_key: 1.11
relx: 4.5.0
sasl: 4.1
snmp: 5.9
ssl_verify_fun: 1.1.6
stdlib: 3.15
syntax_tools: 2.6
tools: 3.5

-----------------
Escript path: /home/mmc/dev/erlang/rebar3
Providers:
  app_discovery as auto clean compile compile cover ct deps dialyzer do edoc escriptize eunit get-deps help install install_deps list lock new path pkgs release relup report repos shell state tar tree unlock update upgrade upgrade upgrade version xref

$ rebar3 report "my failing command"

  • Verify whether the version of rebar3 you're running is the latest release (see https://github.com/erlang/rebar3/releases)
  • If possible, include information about your project and its structure. Open source projects or examples are always easier to debug.
    If you can provide an example code base to reproduce the issue on, we will generally be able to provide more help, and faster.

Current behaviour

Describe the current behaviour. In case of a failure, crash, or exception, please include the result of running the command with debug information:

i run this cmd, zsh hung up.

bin/demo_release daemon

and run this in another shell, here is the result

bin/demo_release daemon_attach
Node is not running!

checking process list

$ ps aux | grep erl
mmc         5308  0.0  0.0   3880  1560 ?        S    08:11   0:00 /home/mmc/.asdf/installs/erlang/24.0/erts-12.0/bin/epmd -daemon
mmc        40391  0.0  0.0   3748   128 ?        S    09:04   0:00 /home/mmc/.asdf/installs/erlang/24.0/erts-12.0/bin/run_erl -daemon /tmp/erl_pipes/demo_release@hp/ /home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release/log exec "/home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release/bin/demo_release" "console" ''  --relx-disable-hooks
mmc        40396  0.1  0.1 4253500 64856 pts/4   Ssl+ 09:04   0:00 /home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release/bin/demo_release -K true -A30 -- -root /home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release -progname home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release/bin/demo_release -- -home /home/mmc -- -boot /home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release/releases/1.0.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /home/mmc/.asdf/installs/erlang/24.0/lib -config /home/mmc/projects/erlang/demo_release/_build/default/rel/demo_release/releases/1.0.0/sys.config -sname demo_release -setcookie 111111 -- -- console  --relx-disable-hooks --
mmc        40680  0.0  0.0   2372   684 ?        Ss   09:04   0:00 erl_child_setup 1024
mmc        44529  0.0  0.0   9592  2464 pts/6    S+   09:11   0:00 grep erl

Expected behaviour

Describe what you expected to happen.

wish the 'daemon' and 'daemon_attach' can work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting updaterequiring action from submittermore info neededrequiring information from submittersupportquestion relative to usage or functionality of rebar3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions