Starting Mule 4.4.0 as a linux service - mule

According to Mule documentation, the recommended way to install Mule as a service is to use the Java Service Wrapper by running:
$MULE_HOME/bin/mule install
After running the command, Mule just runs in the foreground. The same thing happens if I run:
$MULE_HOME/bin/mule remove
Using systemctl to start/stop
systemctl mule start
systemctl mule stop
returns the message "mule.service could not be found." Does this feature only work with the enterprise version? The documentation does not specify if this works with the community edition.
Here are links to the documentation I used:
https://help.mulesoft.com/s/article/Starting-mule-as-a-service-on-linux
https://docs.mulesoft.com/mule-runtime/4.3/starting-and-stopping-mule-esb#start-mule-as-a-linuxunix-daemon

Related

Why can I not start RabbitMQ service 3.8.7 on Windows 10

I'm trying to run RabbitMQ 3.8.7 on Windows 10 and the service will not start
Versions
Rabbit MQ 3.8.7
Erlang 23.0 Win 64
Windows 10 Version 21H2
When I try to start the RabbitMQ service through services.msc the status changes to running and when I refresh the status is empty.
From an admin Powershell command line I've tried
rabbitmq-server.bat Nothing happens. No error message.
.\rabbitmq-diagnostics.bat -q ping Error: Failed to connect and authenticate to rabbit#mycomputer in 60000 ms
Looking for log files in C:\Users\user.name\AppData\Roaming\RabbitMQ\log There are no log files
I tried this answer with no success
When installing newer versions of RabbitMQ, e.g. 3.9.7 or 3.10.5 then I do not have these problems. But our server uses 3.8.7 and I need to test locally how to upgrade from 3.8.7 to 3.10.5.
Why can I not start RabbitMQ 3.8.7 on Windows 10?

RabbitMQ management not visible after installation

I am trying to install Rabbitmq on local machine..
I have initially downloaded Erlang v23.1 and then rabbitmq for windows.
The RabbitMQ service is running but i can't see the management interface.
I ran the command
rabbitmq-plugins enable rabbitmq_management
I am getting below result
The tutorial which i follow say that it should be something like
.
I noted that i have missing some plugins. Can this be a reason why rabbitmq managment interface is not visible. If yes how can i install those..

Error while installing RabbitMQ Service on Windows

I want to install RabbitMQ Service as a Windows Service. I see an option to install RabbitMQ Service from installer (v3.6.5). However, it does not work.
I write a Batch script trying to re-install RabbitMQ service after running installer file.
set HOMEDRIVE=C:
set HOMEPATH=\Users\%username%
call "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-service.bat" remove
call "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-service.bat" install
call net start RabbitMQ
call "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-plugins.bat" enable rabbitmq_management
However, this script is quite unstable.
Sometimes it works, but sometimes it doesn't.
I tested in many PCs with Windows 10, Windows 8.1, Windows 7 and Windows Server 2012.
When error occurs, it always occurs in the last command (enabling RabbitMQ management)
C:\Program Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ removed from system.
C:\Program Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ added to system.
The RabbitMQ service is starting.
The RabbitMQ service was started successfully.
Plugin configuration unchanged.
Applying plugin configuration to rabbit#<myhost>... failed.
* Could not contact node rabbit#<myhost>.
Changes will take effect at broker restart.
* Options: --online - fail if broker cannot be contacted.
--offline - do not try to contact broker.
Sometimes, I got this error
...
Plugin configuration unchanged.
Applying plugin configuration to rabbit#<myhost>... failed.
Error: noproc
In my PC, I get the first error (could not contact node...) when %HOMEDRIVE%%HOMEPATH% is C:\users\myusername. When I change to C:\Windows, it works well. Then I change back to C:\users\, it also works well, no more error.
However, on a server with Windows Server 2012, even C:\Windows does not work (could not contact node...).
In all PCs, I see .erlang.cookie file in both C:\Windows and C:\Users[username]. (I don't know anything about erlang, just follow some instructions from other questions in StackOverFlow).
What is wrong with my script?
Is the error related to the version of RabbitMQ? I am not using the latest version.
Is it related to Erlang? I guess if Erlang caused this problem, then two commands about removing/installing RabbitMQ service would be failed.
Is it able to install the service without checking service option from installer, just run command rabbitmq-service.bat install?
The RabbitMQ team monitors this mailing list and only sometimes answers questions on stackoverflow.
You should be using the most recent version of the RabbitMQ installer for Windows, available here. I am assuming that <myhost> in your question is an edited-out hostname, not what is actually being used. You also don't mention which version of Erlang you have installed, but I assume it is a recent one.
You should uninstall RabbitMQ and ensure all traces are removed from C:\Users\myusername (be sure to check %APPDATA%) and C:\Windows. You should not have to change the default values of HOMEDRIVE and HOMEPATH prior to installation. Use an administrative account when running the Erlang and RabbitMQ .exe installers.
Please note that 3.6.12 has this issue on Windows. A workaround is to set vm_memory_calculation_strategy to erlang. I fixed this issue and it will be delivered in 3.6.13.
Thanks for using RabbitMQ!

RabbitMQ setUp Issue In windows

I am beginner to RabbitMQ. For the first time I am trying to configure RabbitMQ in my windows machine.I followed the steps given on official site www.rabbitmq.com/install-windows-manual.html.But the problem I am facing is when I run "services.msc" command, I am not able to see RABBITMQ_SERVICENAME .
What could be the issue?
Shivangi,
When you say "I am not able to see RABBITMQ_SERVICENAME", does it mean you don't see the RabbitMQ service in the list of services ?
What I usually do when RabbitMQ service fails to install correctly, I use the rabbitmq-service script located in the "sbin" installation folder and run the 2 following commands in a command prompt:
rabbitmq-service remove
rabbitmq-service install

How to keep mule CE 5.3.0 running

I've created my mule application, and i deploy it on mule ce 5.3.0 my question now is how to keep my server running which means even if i close my CMD (the window where my mule is running) my application keep running.
See here: https://developer.mulesoft.com/docs/display/current/Starting+and+Stopping+Mule+ESB#StartingandStoppingMuleESB-StartingandStoppingMuleViatheCommandLine
Starting In the Background
Use the cd command to navigate to the $MULE_HOME/bin directory.
Run the startup script according to the options below.
Unix: ./mule start
Windows: mule.bat start
To further add on to what Ryan said, you can also install Mule as a service if you're running on Windows. From then you can also configure your Mule server to start up every time your machine boots up.
You can do so using the following command:
mule install