RabbitMQ service cannot be started on Windows 10

10,783 views
Skip to first unread message

Ping

unread,
Oct 28, 2017, 7:29:30 PM10/28/17
to rabbitmq-users
I got the error below when I try to start the service:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-service start
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The RabbitMQ service is starting.
The RabbitMQ service could not be started.

A system error has occurred
.

System error 1067 has occurred.

The process terminated unexpectedly.

C
:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>


Below is the versions I installed. 
otp_win64_20.1.exe installed on C:\Program Files\erl9.1
rabbitmq-server-3.6.12.exe


It was working when it was installed the first time a few weeks ago. Maybe I installed other software that might cause the issues.

Any idea?

Michael Klishin

unread,
Oct 28, 2017, 8:08:39 PM10/28/17
to rabbitm...@googlegroups.com
See server logs.

https://groups.google.com/d/msg/rabbitmq-users/CDvLDqQL8OA/_-aFtDYxBgAJ is a common reason for that (non-ASCII characters in installation
path, such as username, should be handled by 3.6.12).


--
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

Ping

unread,
Oct 29, 2017, 7:12:27 AM10/29/17
to rabbitmq-users
As I mentioned that it was working when i installed it the first time, which was on 15th October 2017. The installation path is

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12
C:\Program Files\erl9.1

In fact, I uninstalled all both, and installed them under C:\RabbitMQ, which is still not working.

I tried following most instructions (install them under C:\RabbitMQ using Admin role) on link below, but still get the same error on the opening post.



No logs have been created, below is empty

C:\Users\'#.lp\AppData\Roaming\RabbitMQ\log

Any idea?


On Sunday, October 29, 2017 at 1:08:39 AM UTC+1, Michael Klishin wrote:
See server logs.

https://groups.google.com/d/msg/rabbitmq-users/CDvLDqQL8OA/_-aFtDYxBgAJ is a common reason for that (non-ASCII characters in installation
path, such as username, should be handled by 3.6.12).

On Sun, Oct 29, 2017 at 2:29 AM, Ping <pingpongo...@gmail.com> wrote:
I got the error below when I try to start the service:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-service start
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The RabbitMQ service is starting.
The RabbitMQ service could not be started.

A system error has occurred
.

System error 1067 has occurred.

The process terminated unexpectedly.

C
:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>


Below is the versions I installed. 
otp_win64_20.1.exe installed on C:\Program Files\erl9.1
rabbitmq-server-3.6.12.exe


It was working when it was installed the first time a few weeks ago. Maybe I installed other software that might cause the issues.

Any idea?

--
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.

Ping

unread,
Oct 29, 2017, 7:44:23 AM10/29/17
to rabbitmq-users
When I run below, I got the error below:

C:\RabbitMQ\RabbitMQServer\rabbitmq_server-3.6.12\sbin>rabbitmqctl start
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
Error: Failed to initialize erlang distribution: {{shutdown,
                                                   {failed_to_start_child,
                                                    net_kernel,
                                                    {'EXIT',nodistribution}}},
                                                  {child,undefined,
                                                   net_sup_dynamic,
                                                   {erl_distribution,
                                                    start_link,
                                                    [['rabbitmq-cli-38',
                                                      shortnames],
                                                     false]},
                                                   permanent,1000,supervisor,
                                                   [erl_distribution]}}.

C:\RabbitMQ\RabbitMQServer\rabbitmq_server-3.6.12\sbin>

What else should I try?

Michael Klishin

unread,
Oct 29, 2017, 9:46:40 AM10/29/17
to rabbitm...@googlegroups.com
The filename, directory name, or volume label syntax is incorrect.

is a really generic message that according to a Google search has something to do with non-ASCII characters in a path.

The “nodistribution” error could be due to messed up Erlang VM command line flags due to ^^^ or a firewall preventing epmd from binding to its port or other processes
(in this case, rabbitmqctl) connecting to it.

See http://www.rabbitmq.com/networking.html and check your firewall and anti-virus settings.

Ping

unread,
Oct 29, 2017, 12:05:02 PM10/29/17
to rabbitmq-users
Now, when I run the command below, the service starts, and Windows service is in running status

C:\RabbitMQ\RabbitMQServer\rabbitmq_server-3.6.12\sbin>rabbitmq-service.bat start
The RabbitMQ service is starting.
The RabbitMQ service was started successfully.

But I cannot send/receive message, or use Management UI. Status below

C:\RabbitMQ\RabbitMQServer\rabbitmq_server-3.6.12\sbin>rabbitmqctl.bat status
Status of node rabbit@Ping
Error: unable to connect to node rabbit@Ping: nodedown

DIAGNOSTICS
===========

attempted to contact: [rabbit@Ping]

rabbit@Ping:
  * connected to epmd (port 4369) on Ping
  * epmd reports: node 'rabbit' not running at all
                  other nodes on Ping: ['RabbitMQ']
  * suggestion: start the node

current node details:
- node name: 'rabbitmq-cli-31@Ping'
- home dir: C:\Users\'#.lp
- cookie hash: 5OcTEsvfXKvd65PbXA0omw==


If I stop rabbitmq-service, and start rabbitmq-server like below, it seems working,

C:\RabbitMQ\RabbitMQServer\rabbitmq_server-3.6.12\sbin>rabbitmq-service.bat stop
The RabbitMQ service is stopping.
The RabbitMQ service was stopped successfully.


It works only when I run this below. (Management UI, and app can send and receive messages)

C:\RabbitMQ\RabbitMQServer\rabbitmq_server-3.6.12\sbin>rabbitmq-server.bat start

              RabbitMQ 3.6.12. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/Users/'#.lp/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
  ######  ##        C:/Users/'#.lp/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
  ##########
              Starting broker...
 completed with 6 plugins.


Any idea? I should run rabbitmq-service as Windows service in the background without running others. But it seems not the case

Luke Bakken

unread,
Oct 29, 2017, 12:15:49 PM10/29/17
to rabbitmq-users
Hello,

The document mentions setting the RABBITMQ_BASE environment variable to a path without special characters. As you can see by this path, your username contains non-ASCII characters and may be causing this problem:


C:\Users\'#.lp\AppData\Roaming\RabbitMQ\log

Please give this a try:

* Fully uninstall RabbitMQ and remove the C:\Users\'#.lp\AppData\Roaming\RabbitMQ\log directory and C:\RabbitMQ directory (if it exists).
* Create the C:\RabbitMQ directory
* Set the system-wide environment variable RABBITMQ_BASE to C:\RabbitMQ. Please make sure to set the system-wide environment variable and not the per-user one.
* Install RabbitMQ and use the default installation paths

When  RabbitMQ starts, it will place log files and other artifacts in C:\RabbitMQ. For instance, you should see the directory C:\RabbitMQ\log there.

Let us know how this works.
Thanks,
Luke

Michael Klishin

unread,
Oct 29, 2017, 12:16:48 PM10/29/17
to rabbitm...@googlegroups.com
You have narrowed the problem down to the Windows service, not RabbitMQ itself (or Erlang, or firewall, etc).

Consider searching list archives with this newly discovered important piece of information. Here’s one possible scenario a very quick search for “Windows service” reveals:

Ping

unread,
Oct 29, 2017, 12:37:02 PM10/29/17
to rabbitmq-users
Hi Luke, 

Please see my latest problem. Thanks.
Reply all
Reply to author
Forward
0 new messages