Error using rabbitmq-server

1,146 views
Skip to first unread message

duricu vlad

unread,
Mar 29, 2018, 8:28:52 AM3/29/18
to rabbitmq-users
Hey, I am using rabbitmq 3.7.4, and when I try to start the server with the command rammitmq-server start it gave me the following error:

Error description:
    init:do_boot/3 line 793
    init:start_em/1 line 1085
    rabbit:start_it/1 line 445
    rabbit:broker_start/0 line 321
    rabbit:start_apps/2 line 541
    app_utils:manage_applications/6 line 126
    lists:foldl/3 line 1263
    rabbit:'-handle_app_error/1-fun-0-'/3 line 637
throw:{could_not_start,rabbitmq_management_agent,
       {rabbitmq_management_agent,
        {{shutdown,
          {failed_to_start_child,rabbit_mgmt_agent_sup,
           {shutdown,
            {failed_to_start_child,rabbit_mgmt_external_stats,
             {enoent,
              [{erlang,open_port,
                [{spawn,
                  "C:\\windows\\system32\\cmd.exe;C:\\Program Files\\Java\\jdk1.8.0_131\\bin;C:\\Program Files\\nodejs /c handle.exe /accepteula -s -p 4920 2> nul"},
                 [binary,stderr_to_stdout,stream,in,hide]],
                [{file,"erlang.erl"},{line,2122}]},
               {os,cmd,2,[{file,"os.erl"},{line,250}]},
               {rabbit_mgmt_external_stats,get_used_fd,1,
                [{file,"src/rabbit_mgmt_external_stats.erl"},{line,133}]},
               {rabbit_mgmt_external_stats,get_used_fd,0,
                [{file,"src/rabbit_mgmt_external_stats.erl"},{line,61}]},
               {rabbit_mgmt_external_stats,'-infos/2-lc$^0/1-0-',2,
                [{file,"src/rabbit_mgmt...

What should I do with this error?

Michael Klishin

unread,
Mar 29, 2018, 10:47:10 AM3/29/18
to rabbitm...@googlegroups.com
RabbitMQ tries to run a subprocess to collect the number of file handles used or similar ("external stats")
but that fails due to


> C:\\windows\\system32\\cmd.exe;C:\\Program Files\\Java\\jdk1.8.0_131\\bin;C:\\Program Files\\nodejs /c handle.exe /accepteula -s -p 4920 2> nul

not being a file. I strongly suspect there is an issue with environment variable quoting or separation here, since RabbitMQ never
calls JDK or Node.js binaries (why would it?). It does try to call handle.exe if that's available to retrieve some system stats.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

duricu vlad

unread,
Mar 29, 2018, 10:49:14 AM3/29/18
to rabbitm...@googlegroups.com
So I should modifie the system variables, to point for the right .exe?

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

Michael Klishin

unread,
Mar 29, 2018, 11:02:28 AM3/29/18
to rabbitm...@googlegroups.com
I'd start by double checking that the PATH variable and ERLANG_HOME (if applicable) are
correct.

We cannot suggest much more without knowing how exactly RabbitMQ and Erlang were installed on your system
and what kind of environments variables were set or modified.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

duricu vlad

unread,
Mar 30, 2018, 7:08:21 AM3/30/18
to rabbitm...@googlegroups.com
Hey, I have checked the ERLANG_HOME = " C:\Program Files\erl9.3" (DEFAULT INSTALL PATH)path and it is the wright one. I found a post where it says that I should remove the rabbitmq-service and I must install it again, but when I run the command as the administrator rabbitmq-service remove it gave me the next error:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.4\sbin>rabbitmq-service.bat remove
C:\Program Files\erl9.3\erts-9.3\bin\erlsrv: Unable to remove service (not enough privileges?)
Error: The handle is invalid.


To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

duricu vlad

unread,
Mar 30, 2018, 7:10:06 AM3/30/18
to rabbitm...@googlegroups.com
And an interesting fact is that rabbitmq doesn't show in the services and regedit, after I reinstall it.

duricu vlad

unread,
Mar 30, 2018, 7:17:00 AM3/30/18
to rabbitm...@googlegroups.com
Hey, do not  bother to answer my question, I have finally succeeded to install it.

Michael Klishin

unread,
Mar 30, 2018, 9:37:15 AM3/30/18
to rabbitm...@googlegroups.com
Hi Duricu,

May I ask what was the root cause?

To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

duricu vlad

unread,
Mar 30, 2018, 9:44:43 AM3/30/18
to rabbitm...@googlegroups.com
I do not know exactly what was the problem. I downloaded again the rabbitMQ, but the second time was from GitHub. I think it wasn't installed properly, even though it didn't give me an error. I run the exe file (re)install, I removed and install again the service, I added the management plugins and worked. The paths from the system environment wear correct, it wasn't a problem here. And also gave ma an error about the management-path-envirent of erlang, these I didn't know what to solve it, but finally worked.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages