History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EJAB-589
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Christophe Romain
Reporter: Lord Ruslan Nightmare
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ejabberd development

ejabberdctl fails to connect to running ejabberd with 'nodedown' error when ejabberd is running as Windows service

Created: 27/Mar/08 01:10 PM   Updated: 30/Apr/08 11:32 AM
Component/s: Command-line tools
Affects Version/s: ejabberd 2.0.0
Fix Version/s: ejabberd 2.1.0, ejabberd 2.0.1

Time Tracking:
Not Specified

Environment: NT 0x0502
Issue Links:
Solution
 

Participants: Christophe Romain and Lord Ruslan Nightmare
Company: gmail.com (Find related issues)
Labels:
Sequential: 5


 Description  « Hide
When ejabberd is started via erlsrv, ejabberdctl fails to connect to it: RPC failed on the node ejabberd@localhost: nodedown
When ejabberd is started via "ejabberdctl start", further calls to ejabberdctl work as intended.
Nothing changes if service uses Administrator user credentials instead of SYSTEM (on Linux ejabberdctl behaves differently when running as different users; looks like this is not true for NT).

ejabberdctl working directory is "C:\Program Files\ejabberd\bin\"

Process Explorer reports that erl.exe, started from ejabberdctl, is lauched as follows:
erl.exe -P 250000 -- -root .. -progname erl -- -home "%USERPROFILE%" -sname ejabberd@localhost -smp auto -noshell -noinput -noshell -noinput -mnesia dir "\"../database/ejabberd@localhost\"" -kernel inetrc "\"../conf/inetrc\"" -s ejabberd -ejabberd config "\"../conf/ejabberd.cfg\"" log_path "\"../logs/ejabberd.log\"" -sasl sasl_error_logger "{file,\"../logs/sasl.log\"}"

Process Explorer reports that erl.exe, started from erlsrv, is lauched as follows:
"C:\Program Files\ejabberd\bin\erl.exe" -service_event ErlSrv_ejabberd_service -nohup -sname ejabberd@localhost -kernel inetrc '"../conf/inetrc"' -mnesia dir '"../database/ejabberd@localhost"' -sasl sasl_error_logger {file,'"../logs/sasl.log"'} -setcookie ejabberd -s ejabberd

ejabberd itself works wall in any case, only ejabberdctl is affected.

May be related to https://support.process-one.net/browse/EJAB-529

 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Christophe Romain - 02/Apr/08 04:54 PM
this is related, indeed.
Thanks for reporting issue.

Christophe Romain - 16/Apr/08 02:59 PM
EJAB-529's solution will start ejabberd the usual way with ejabberdctl.
so this will solve this issue as well.