RabbitMQ on Ubuntu 16.04 on Windows Subsystem for Linux - rabbitmq

I am running RabbitMQ on Ubuntu 16.04 under the Windows 10 "windows on linux" installation.
I cannot connect using rabbitmqctl. I used su to run as root and also tried to run it under my username with sudo, but everytime I run the command I get:
Diagnostic log
attempted to contact: ['rabbit#SJDEV-JWRIGHT3']
rabbit#SJDEV-JWRIGHT3:
* connected to epmd (port 4369) on SJDEV-JWRIGHT3
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?
* suggestion: is the Erlang distribution using TLS?
current node details:
- node name: 'rabbitmq-cli-133#SJDEV-JWRIGHT3'
- home dir: /var/lib/rabbitmq
- cookie hash: iLmkDqwKzDZPxk8ynhqsVw==
I have uninstall and re-installed both Erlang and RabbitMQ. I changed the host names as suggested by someone else, and I still cannot figure out this problem.
I have rebooted the system, and when I tried to run rabbitmq-server restart and got:
ERROR: node with name "rabbit" already running on "SJDEV-[NODE]"
I am new to linux and have been digging in to this for a week and hit my breaking point.

Okay I found out the problem in a round about way. I am running this version of Ubuntu on the Windows Subsystem for Linux application on my windows 10 machine. My windows machine is already running rabbitmq and it happens to be on the same node as the node that I was trying to access using the rabbitmqctl. So there must be a correlation between the Ubuntu and windows system that shows rabbitmq already running. I may try this on a VM and see if I can get a clean break and try again.
Thanks.

I had this issue today.
My config is below:
Have a rabbitmq-server on Windows 10 OS
Have a rabbitmq-server on Ubuntu which was installed on Windows 10 OS (Ubuntu 18.04 app from Windows store)
Now below error makes sense:
ERROR: node with name "rabbit" already running on "MyComputerNamehere"
Another hint was Windows OS firewall has allowed both of them, in other words, they are running on same computer with name (ex: MyComputerNamehere).
Though I know the issue, I didn't fix it by removing rabbitmq-server from Windows 10, as I wanted Windows 10 rabbitmq-server, so gave up on Ubuntu on Windows 10.
Hope this explanation helps someone.

Related

RabbitMQ node 'rabbit' not running at all

Some of the commands I've tried running
Some more of the commands I've tried running
I've recently tried installing RabbitMQ version 3.8.2 through chocolatey which in turn installs erlang version 22.3 . I've checked that the erlang cookies match, that the port 4369 is open and listening. I've added an environment variable called "RABBITMQ_NODENAME" with the value "rabbit#localhost". I've tried uninstalling and reinstalling countless times and I've also tried running most cli commands but cannot for the life of me get the node running. I can't get a status out of rabbitmqctl or rabbitmq-diagnostics because the node isn't running and when I try to run the start_app command it doesn't work and returns nothing for the error message. Any help would be greatly appreciated!

How to fix HTTPD (Apache) Error 256 on OSX Monterey 12.5

I have a Apache2 installed with Homebrew on a Mac running OSX Monterey. I haven't done LAMP development for a while, so I'm not sure when the error started, but I've recently updated OSX to 12.5. When I returned to working on a LAMP project, my Apache installation stopped working. Running brew services produced the following output: Name Status User File httpd error 256 root ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist mysql started Nizz0k ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist.
Running the stop, start, and restart commands produces "success" output in the terminal, but Apache doesn't work. I can't navigate to my local vhosts, and of course, running brew services still shows an error.
In running apachectl -e error Apache complains about permissions to the error logs
I have tried:
uninstalling and reinstalling HTTPD
The apr-utilities fix.
confirming Mac installed Apache is stopped.
At this point, I think my problem is that there was conflicting information about how to run Apache on Homebrew. Earlier versions apparently required sudo, but running it this was now produces warnings like this:
Warning: Taking root:admin ownership of some httpd paths:
/usr/local/Cellar/httpd/2.4.54/bin
/usr/local/Cellar/httpd/2.4.54/bin/httpd
/usr/local/opt/httpd
/usr/local/opt/httpd/bin
/usr/local/var/homebrew/linked/httpd
This will require manual removal of these paths using `sudo rm` on
brew upgrade/reinstall/uninstall.
Warning: httpd must be run as non-root to start at user login!
/Library/LaunchDaemons/homebrew.mxcl.httpd.plist: service already bootstrapped
Bootstrap failed: 37: Operation already in progress
Error: Failure while executing; `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist` exited with 37.
The issue is even after removing the paths as suggested in the error, a reinstallation brings Root back as the owner.
I do have the same problem with nginx.
Manually unloaded it and then restarting it worked fine.
Try:
sudo launchctl bootout system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist
sudo brew services start httpd

Can't running my ubuntu 20.04 after installed rabbitMQ

I installed rabbitMQ on my ubuntu 20.04, but when i restart my computer it can't start correctly.
My error message is :
Failed to start RabbitMQ Messaging server.
Do you have any idea what can i do?

Can't Access newly installed redis(5.0.5) on Ubuntu 19.10

I newly installed Ubuntu 19.10, and installed redis with sudo apt install redis-server(5.0.5).
And started sudo systemctl start redis.
Executed redis-cli, then I got Could not connect to Redis at 127.0.0.1:6379: Y
The last 1 charactor (Y in this case) is different each time.
I just installed with using apt and didn't change any configs.
Is there any bugs or something I missed? please help me.
I tried to install from source code (5.0.7).
It works.

Boot2Docker start up fails in windows

I am trying to start docker from winodws7 enterprise edition.
boot2docker start
results
Waiting for VM and Docker daemon to start...
..........................................................................oooooo
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
Trying to get Docker socket one more time
Error requesting socket: exec: "ssh": executable file not found in %PATH%
Docker client does not run on Windows for now. Please use
"boot2docker" ssh
to SSH into the VM instead.
I tried this link. But All answers doesn't help me. I have re-installed the boot2docker and powered off boot2docker-vm in Virtual machine and restarted. Virtualisation is enabled in my bios. My Sys has better capabilities.
Using 1.4.1 version.
Please Some Suggestions?
As boot2docker complained, you don't have ssh in your path. Please add ssh.exe into Windows path (it might not be visible, but boot2docker installation includes msys-git installation which includes ssh.exe, so you need to add Git installation directory in path, e.g.
c:\Program Files (x86)\Git\bin