Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERL-98: The "erl" and "werl" commands does not work with the "-detached" flag in Windows environment #3065

Closed
OTP-Maintainer opened this issue Feb 24, 2016 · 3 comments
Labels
bug Issue is reported as a bug help wanted Issue not worked on by OTP; help wanted from the community priority:low team:VM Assigned to OTP team VM

Comments

@OTP-Maintainer
Copy link

Original reporter: premanand.thangamani@erlang-solutions.com
Affected version: OTP-18.0
Component: erts
Migrated from: https://bugs.erlang.org/browse/ERL-98


Hi,
     Starting an Erlang node in detached mode (via the flag "-detached") in the Windows environment seems to be failing intermittently. Following is a more detailed explanation of the problem.

Environment:   
    Windows 7 with OTP 18.0.
    Windows 2008 Server Enterprise Edition with OTP 18.0.

Problem Description: 
    Running the following commands 

  erl -name alpha@myhostname -setcookie somecookie -detached
  werl -name alpha@myhostname -setcookie somecookie -detached

in the above mentioned environments does not start the erlang nodes in detached mode (i.e. as background processes) sometimes i.e. the failure is intermittent.

Unfortunately, the command execution does not produce any error output. This issue was noticed in the RabbitMQ product.

Thanks.
Premanand Thangamani.
Erlang Solutions AB.
@OTP-Maintainer
Copy link
Author

lukas said:

This seems to be because of a pathing problem in the cmd shell, don't know how to solve this yet. A workaround is running erl with an absolute path or in a msys/cygwin shell.

@OTP-Maintainer
Copy link
Author

lichengteng said:

Hi Lukas, I still couldn't do it with your workaround by running erl with an absolute path. The command I intended to run was "werl -pa ebin -s myapp start -detached". If I removed the "-detached" flag, I could have seen my app started properly. I followed your instructions and changed it to "D:\erl9.0\bin\werl -pa ebin -s myapp start -detached". The kernel application was on, but not my own app. Also, I got no error displayed on my cmd console. What was I missing here? Also, I have tried with cygwin using command "erl -pa ebin -s myapp start -detached" and my app didn't start.
Environment: Windows 7, CMD.exe, Erlang 20, rebar2.
I'm looking forward to your reply!

@OTP-Maintainer OTP-Maintainer added bug Issue is reported as a bug help wanted Issue not worked on by OTP; help wanted from the community team:VM Assigned to OTP team VM priority:low labels Feb 10, 2021
@bjorng
Copy link
Contributor

bjorng commented Feb 24, 2021

I am closing this issue because of its age. Feel free to reopen it if the problem still exists in OTP 23.

@bjorng bjorng closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug help wanted Issue not worked on by OTP; help wanted from the community priority:low team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

2 participants