RabbitMQ does not work on Windows 10, with system error 1067 and no logs

858 views
Skip to first unread message

CD606DC

unread,
Jun 1, 2020, 9:59:13 PM6/1/20
to rabbitmq-users
I had RabbitMQ running on Windows 10 on a Surface Pro 3 without problem. I recently upgraded to a Surface Book 3 and tried to install RabbitMQ on it, but so far I cannot get it to work.

I tried the followings:

* Installing RabbitMQ with Chocolatey
* Installing Erlang/OTP 23 and RabbitMQ 3.8.4 with default settings
* Installing Erlang/OTP 23 into c:/erl-23.0 and RabbitMQ 3.8.4 into c:/rabbitmq (to avoid spaces in directory names).

(Before installing RabbitMQ, I always made sure that ERLANG_HOME is set correctly)

However, nothing works. rabbitmqctl simply complains about node 'rabbit' not running at all. I tried the sequence

rabbitmq-service stop
rabbitmq-service remove
SET HOMEDRIVE=C:
rabbitmq-service install
rabbitmq-service enable
rabbitmq-plugins enable rabbitmq_management

but this does not help at all. I can run 

rabbitmq-service start

and usually for once (per installation) it will say "RabbitMQ service started successfully" but that is not true, since when I tried to do "rabbitmqctl list_users" it tells me that node 'rabbit' is not running. If I try the same command again then I get "System error 1067 has occurred", and from that point onwards it will always give me system error 1067.

Moreover, all these actions created absolutely no log file at all in %USER%\AppData\Roaming\RabbitMQ so I don't know where to look for more detailed error information.

I even tried uninstalling RabbitMQ and Erlang completely and then installing them on WSL (Ubuntu). This somehow allows "rabbitmqctl list_users" to work from within WSL, yet NONE of "normal" example codes works. They all report that connection got closed unexpectedly. If I telnet to localhost 5672 port, the remote side will close connection immediately. This installation does produce log files, but the log files said nothing about why the connections are closed.

I am completely at a loss on how to get RabbitMQ to work on this Surface Book 3. Could anybody kindly help with this? Thank you very much!

Favour Emmanuel

unread,
Jun 1, 2020, 10:15:17 PM6/1/20
to rabbitm...@googlegroups.com
I was able to run RabbitMq on my windows as a localhost, follow this
steps herehttps://www.youtube.com/watch?v=LbP985Gm_3I&t=7s it's really
helpful
> --
> 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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/8f8f6ba4-4f13-459a-b8cb-5aa327097fe5%40googlegroups.com.

TM-Kit Author

unread,
Jun 1, 2020, 10:39:15 PM6/1/20
to rabbitm...@googlegroups.com
Hi, I tried the commands in your video (and I also downgraded the versions of Erlang and RabbitMQ to 22.3 and 3.8.3 to match your video), but it does not work. The symptom is exactly the same: when I run "rabbitmq-service.bat start", it says "The RabbitMQ service was started successfully.", but then any attempt to do "rabbitmqctl list_users" will say that the node "rabbit" is not running at all. Moreover, there is no log file at all.

However, the symptom this time is slightly different: the 1067 messages do not appear, every attempt to run "rabbitmq-service start" works with a "started successfully" message, however, the service then stops by itself (as can be seen on the "Services" GUI). I can also ask the "Services" GUI to start the service, it will start, show "Running" for a short while, and then stops. 

The problem is that, because there is no log file at all, I don't know what exactly is going wrong. 

Could you kindly help me with this? Thanks very much!

You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/Mp18pJA0GMs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/CAHyk%2BGBMqonu0kmqPvyMqZZeOTo66SciXse015%2BXuK1Eh8S1tw%40mail.gmail.com.
Message has been deleted

CD606DC

unread,
Jun 2, 2020, 9:13:34 AM6/2/20
to rabbitmq-users

I still haven't got RabbitMQ to work on this Windows 10, but I would like to provide some more details:

1. Every time I run "rabbitmq-service start" (or "start" the RabbitMQ service from the service window), it will briefly report that the service started successfully, and then silently exits.
2. If I remove %USER%/AppData/Roaming/RabbitMQ before I start the service, the directory will be created during the start, and will have "db" and "log" subdirectories as well as "advanced.config" file (which only contains "[]."). However, nothing will appear in the "log" directory.
3. If I remove "advanced.config" before I start the service, it will not be re-created during the brief time period when the service is up.
4. "epmd" is up and running and listening on 4369, and I have disabled firewall check for it.

The most frustrating problem here is that there is no log at all, so I cannot figure out what is preventing it from starting. 

Could anybody help with this? Thanks very much!

Michael Klishin

unread,
Jun 2, 2020, 9:56:27 AM6/2/20
to rabbitm...@googlegroups.com

You can try logging to console (standard output and error streams) but I would not know how those would be captured on Windows [1].

 

As for your WSL example, you may be connecting using default user credentials from a remote host (as far as RabbitMQ is concerned,

since WSL can technically be seen as a “different host” to your Windows applications). Such connections will be rejected

by design, see [2]. Again, node logs in WSL should have messages about such events [3].

 

  1. https://www.rabbitmq.com/logging.html
  2. https://www.rabbitmq.com/access-control.html#loopback-users
  3. https://www.rabbitmq.com/logging.html#logged-events

--

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.

Luke Bakken

unread,
Jun 2, 2020, 10:18:05 AM6/2/20
to rabbitmq-users
Hello,

Log into your Windows machine using the same administrative account you used to install RabbitMQ. Open the "RabbitMQ Command Prompt (sbin dir)" start menu item, then run these commands:

.\rabbitmq-service.bat stop
.\rabbitmq-server.bat

This will start RabbitMQ in the foreground. Capture the output in the terminal, save it to a file, and attach it to your response.

Thanks,
Luke

Wesley Peng

unread,
Jun 2, 2020, 10:18:47 AM6/2/20
to rabbitm...@googlegroups.com
Hello,

 Following your posting, I just upgraded RMQ and erlang to the latest versions in Ubuntu, both work fine.

Just a few steps:

# apt upgrade erlang
# curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash
# apt install rabbitmq-server
# /etc/init.d/rabbitmq-server restart


Now rabbitmqctl status shows:

OS PID: 12797
OS: Linux
Uptime (seconds): 319
RabbitMQ version: 3.8.4
Node name: rabbit@ubuntu
Erlang configuration: Erlang/OTP 23 [erts-11.0.2] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:64]
Erlang processes: 442 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60


Both code and rabbitmqctl commands work fine. 

Regards.  

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

Michael Klishin

unread,
Jun 2, 2020, 11:27:42 AM6/2/20
to rabbitm...@googlegroups.com

Yes, this, like we often see on this list, is something environment- and very likely Windows-specific.

CD606DC

unread,
Jun 2, 2020, 5:14:25 PM6/2/20
to rabbitm...@googlegroups.com
Thanks everyone, I actually got it working on WSL, the reason is that by default it binds to IPV6 only and when I updated /etc/rabbitmq/rabbitmq.conf to have 

listeners.tcp.default = 127.0.0.1:5672

It works from there. Since it is working on WSL, I decided not to keep checking why it won't work on Windows itself.

Thanks everyone again!

You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/Mp18pJA0GMs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/94EF5F20-A00B-4E36-BD38-038A2016F0FF%40vmware.com.

Michael Klishin

unread,
Jun 2, 2020, 7:10:20 PM6/2/20
to rabbitm...@googlegroups.com

Perhaps we should add WSL as an option in Windows-related docs. Did you just follow one of the Linux guides or was there anything

WSL-specific?

 

Thank you for reporting back to the list, by the way.

CD606DC

unread,
Jun 3, 2020, 11:33:19 AM6/3/20
to rabbitm...@googlegroups.com
Hi, I followed the Ubuntu guide, and then changed rabbitmq.conf to bind it to IPv4. One thing I noticed is that if WSL is Ubuntu 20.04, then Windows side applications can access the server as "localhost:5672", but if WSL is Ubuntu 18.04, then Windows side applications need to access the server as "127.0.0.1:5672" and "localhost" does not work. This might be a peculiarity of my Windows environment, though. Thanks.

Reply all
Reply to author
Forward
0 new messages