[solved] how to start the rabbitmq-server with systemctl

I got the rabbitmq package from https://aur.archlinux.org/packages/rabbitmq/. Upon installing with 'pacman -U', I got the message
==> WARNING:
==> This systemd unit executes rabbitmq as rabbitmq user. This is *DIFFERENT*
==> from the legacy sysvinit scripts included in the package that
==> default on using the "root" user. DO NOT MIX usage of this systemd unit
==> with rc.d initscripts, or permission problems may arise.
==> To fix those, use the following command (as root):
chown -R rabbitmq.rabbitmq /var/lib/rabbitmq
==> DO NOT DELETE anything manually, that may make your rabbitmq install
==> unusable, until deletion of everything under /var/lib/rabbitmq
I did the 'chown' thing as advised, but I'm not sure if there is something more I should be doing (or not doing).
I can start the server with
sudo rabbitmq-server
and then in another terminal I can do
sudo /usr/sbin/rabbitmqctl status
and the output seems to show everything working.
The trouble starts if instead of directly running rabbit-server, I do
sudo systemctl enable rabbitmq
sudo systemctl start rabbitmq
It seems to start fine and then I get (when I do systemctl status rabbitmq)
rabbitmq.service - RabbitMQ Messaging Server
Loaded: loaded (/usr/lib/systemd/system/rabbitmq.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2014-12-29 02:03:25 GMT; 4s ago
Process: 25657 ExecStop=/usr/bin/rabbitmqctl stop (code=exited, status=2)
Process: 25549 ExecStart=/usr/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 25549 (code=exited, status=1/FAILURE)
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: * epmd reports: node 'rabbit' not running at all
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: no other nodes on brunnhilde
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: * suggestion: start the node
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: current node details:
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - node name: 'rabbitmqctl-25657@brunnhilde'
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - home dir: /var/lib/rabbitmq
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - cookie hash: 59JWXfWlAKuxru4vaTbvBQ==
Dec 29 02:03:25 brunnhilde systemd[1]: rabbitmq.service: control process exited, code=exited status=2
Dec 29 02:03:25 brunnhilde systemd[1]: Unit rabbitmq.service entered failed state.
Dec 29 02:03:25 brunnhilde systemd[1]: rabbitmq.service failed.
I presume this failure has something to do with the systemd warning that I got when installing, but I am not really sure what to do.
Has anyone got rabbitmq server working using systemctl?
Last edited by mjandrews (2014-12-29 20:25:13)

I seem to have fixed it now.
I changed  /etc/rabbitmq/rabbitmq-env.conf from
NODENAME=rabbit
NODE_IP_ADDRESS=0.0.0.0
NODE_PORT=5672
LOG_BASE=/var/log/rabbitmq
MNESIA_BASE=/var/lib/rabbitmq/mnesia
to
NODENAME=rabbit
NODE_IP_ADDRESS=127.0.0.1
NODE_PORT=5672
HOME=/var/lib/rabbitmq
LOG_BASE=/var/log/rabbitmq
MNESIA_BASE=/var/lib/rabbitmq/mnesia
and that seems to have done the trick.

Similar Messages

  • Is there any way changing the priviledge after starting the managed server with the other user

    Hi,
    is there any way to change the user privilege after i have started the managed
    server with one user.....say for example ....i have started one of my Managed
    server as "root" ...but after that i wanted to make this instance work under as
    "inet"
    how do i do this OR is it possible ????
    please advise ....
    sangita

    Thanks again Rob.
    Rob Woollen <[email protected]> wrote:
    >
    >
    sangita wrote:
    Thanks Rob for been so quick in responding.
    I have 3 questions for you:
    Running a server under root is a huge security hole.My Question: 1) what are the probable security issues while runninga server under
    root ?
    are these security issues external(from outside world) or internal(internally
    within a company) ?
    Iam basically curious to know external threats.
    The problem is the root user can do anything. So if someone finds a
    security hole in your server, then they have complete control of your
    system.
    The usual reason people want to do this is so they can bind to a port
    <
    1024. ie they want their web server to listen to 80.My Question: 2) What is the harm in using port 80 for webserver andwhy do the
    people wanted to bind to a port < 1024 ?
    People normally use 80 for web servers because that's the well-known
    port.
    Personally I would not recommend that you go that route. I would
    recommend that you start the server as a very unprivileged user andbind
    it to some port (say 7001).
    Most firewalls support redirecting ports. Your firewall can redirect
    80
    on the external net to 7001 on the internal net. That's the solution
    I
    would recommend.My Question: 3) Suppose iam having a cluster of 2 Managed servers runningon port
    7070. And Iam having a Iplanet server working as a Webserver that basicallyproxies
    requests to this cluster. Then what is the best approach that i shouldfollow
    in this context.....to be honest with you ....i still couldnot understandwhat
    does "binding" the webserver port to a managed server in weblogic mean.
    I would have your firewall redirect 80 to whatever port Iplanet is
    listening on and then have iplanet proxy to WLS.
    Do not run your WLS servers as root.
    -- Rob
    Iam sorry for asking these "silly" questions(in your opinion) ...butiam a bit
    confused.
    thanks, sangita
    Rob Woollen <[email protected]> wrote:
    Running a server under root is a huge security hole.
    The usual reason people want to do this is so they can bind to a port
    <
    1024. ie they want their web server to listen to 80.
    There is a set uid option in WLS where you start the server as root
    and
    then after it binds to the low port, it will switch to another userthat
    you specify.
    Personally I would not recommend that you go that route. I would
    recommend that you start the server as a very unprivileged user andbind
    it to some port (say 7001).
    Most firewalls support redirecting ports. Your firewall can redirect
    80
    on the external net to 7001 on the internal net. That's the solution
    I
    would recommend.
    -- Rob
    sangita wrote:
    <Sure, it's possible to do this, >
    how to do this?
    <but why do you want to do it? >
    Iam not sure why this group (the other group than me) does start theirserver
    as "root"...but somebody from that group asked me about this today.
    I would not recommend that you start WLS as root on your production
    system ever under any cirucmstance.then what is the best approach and what are the pros and cons if westart the
    server as "root" OR as different user ????
    please advise ....
    thanks again.
    Rob Woollen <[email protected]> wrote:
    Sure, it's possible to do this, but why do you want to do it?
    I would not recommend that you start WLS as root on your production
    system ever under any cirucmstance.
    -- Rob
    sangita wrote:
    Hi,
    is there any way to change the user privilege after i have startedthe managed
    server with one user.....say for example ....i have started one
    of
    my Managed
    server as "root" ...but after that i wanted to make this instance
    work
    under as
    "inet"
    how do i do this OR is it possible ????
    please advise ....
    sangita

  • How to start the Message Server?

    Hi,
    I wish to start the J2EE engine and for the same it is mandatory to start the Message Server first.
    In order to start the message server, I run the following command:
    <i><b>D:\usr\sap\J2E\SYS\exe\uc\NTI386>msg_server start
    msg_server=>sapparam(1c): No Profile used.
    msg_server=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    [Thr 7972] Wed Jul 25 23:39:18 2007
    [Thr 7972] *** ERROR => MsSetWorkDir: chdir D:\usr\sap
    D00\work [msntserv.c   170]
    [Thr 7972] *** ERROR => MsSPrvInit: MsSetWorkDir [msntserv.c   87]
    [Thr 7972] *** ERROR => mainU: MsSPrvInit [msxxserv.c   1634]</b></i>
    I gave my best time to search for Profile configuration details. But I could not do that.
    <b>Can  somebody tell me how to start the Message Server?</b>
    regards,
    Anand

    Hi Anand,
    Will be good to know what OS are you using...
    If you're tryng to start an instance use <prompt>: startsap pf=<profile of the system you want to start>
    If you logon as <sid>adm just type startsap
    If for some reason you need to start only the message server try  <prompt>: msg_server start pf=<profile of the system you want to start>
    Regards
    Juan
    Please reward with points if helpful

  • How to start the oc4j server

    I install oracle 9ias 9.0.3,but i don't know how to start the oc4j server.
    thanks for any help?

    hi
    Refer "Starting and Stopping OC4J" from
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/toc.htm
    hope this helps.
    shrini

  • I fail to start the sap server with error:Operating system call recv failed

    I fail to start the sap server in SAP R3 Management Console and the message in the syslog was :
    R/3 Basis System: Operating system call           recv failed (error no. 10053)
    Is there any one could tell me how to resolve the problem or give me some advice?I will appreciate him/her very much.Thank you.

    trc file: "dev_disp", trc level: 1, release: "620"
    Sun May 07 13:14:30 2000
    kernel runs with dp version 3(ext=1) (@(#) DPLIB-INT-VERSION-3)
    length of sys_adm_ext is 304 bytes
    systemid   560 (PC with Windows NT)
    relno      6200
    patchlevel 0
    patchno    674
    intno      20020600
    pid        3628
    ***LOG Q00=> DpSapEnvInit, DPStart (00 3628) [dpxxdisp.c   978]
         shared lib "dw_xml.dll" version 674 successfully loaded
         shared lib "dw_xtc.dll" version 674 successfully loaded
         shared lib "dw_stl.dll" version 674 successfully loaded
    Sun May 07 13:14:32 2000
    WARNING => DpNetCheck: NiAddrToHostCanon() took 2 seconds
    Sun May 07 13:14:37 2000
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 2 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  3212]
    MtxInit: -2 0 0
    DpShMCreate: sizeof(wp_adm)          12784     (752)
    DpShMCreate: sizeof(tm_adm)          1690816     (8412)
    DpShMCreate: sizeof(wp_ca_adm)     18000     (60)
    DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    DpShMCreate: sizeof(comm_adm)     192000     (384)
    DpShMCreate: sizeof(wall_adm)     (22440/34344/56/100)
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 001E0040, size: 1977824)
    DpShMCreate: allocated sys_adm at 001E0040
    DpShMCreate: allocated wp_adm at 001E0560
    DpShMCreate: allocated tm_adm_list at 001E3750
    DpShMCreate: allocated tm_adm at 001E3778
    DpShMCreate: allocated wp_ca_adm at 00380438
    DpShMCreate: allocated appc_ca_adm at 00384A88
    DpShMCreate: allocated comm_adm_list at 003861F8
    DpShMCreate: allocated comm_adm at 00386210
    DpShMCreate: allocated ca_info at 003B5010
    DpShMCreate: allocated wall_adm at 003B5018
    MBUF state OFF
    Sun May 07 13:14:38 2000
    EmInit: MmSetImplementation( 2 ).
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation std
    <EsNT> Memory Reset enabled as NT default
    <EsNT> EsIUnamFileMapInit: Initialize the memory 2458 MB
    <ES> 2457 blocks reserved for free list.
    ES initialized.
    ***LOG Q0K=> DpMsAttach, mscon ( db01) [dpxxdisp.c   9115]
    CCMS: Initalizing shared memory of size 20000000 for monitoring segment.
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 6200, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   941]
    DpMsgAdmin: Set patchno for this platform to 674
    Release check o.K.
    Sun May 07 13:15:18 2000
    ERROR => W2 (pid 4776) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W2
    Sun May 07 13:15:38 2000
    ERROR => W5 (pid 4548) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W5
    ERROR => W8 (pid 4592) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W8
    ERROR => W9 (pid 4584) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W9
    ERROR => W12 (pid 4676) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W12
    ERROR => W13 (pid 4272) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W13
    my types changed after wp death/restart 0xbf --> 0xb7
    Sun May 07 13:15:58 2000
    ERROR => W4 (pid 4888) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W4
    ERROR => W6 (pid 4788) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W6
    ERROR => W15 (pid 4596) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W15
    Sun May 07 13:16:18 2000
    ERROR => W1 (pid 4892) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W1
    ERROR => W3 (pid 4904) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W3
    ERROR => W7 (pid 4000) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W7
    ERROR => W10 (pid 4864) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W10
    my types changed after wp death/restart 0xb7 --> 0xb5
    Sun May 07 13:16:38 2000
    ERROR => W0 (pid 4900) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W0
    ERROR => W11 (pid 4500) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W11
    ERROR => W14 (pid 4636) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W14
    ERROR => W16 (pid 3532) died [dpxxdisp.c   11523]
    force unlock of wp_adm mutex W16
    my types changed after wp death/restart 0xb5 --> 0x80
    DP_FATAL_ERROR => DpEnvCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    DpModState: change server state from STARTING to SHUTDOWN
    Sun May 07 13:16:42 2000
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   9341]
    MBUF state OFF
    MBUF component DOWN
    ***LOG Q05=> DpHalt, DPStop ( 3628) [dpxxdisp.c   7883]

  • How to start the admin server on another WLS machine?

    Hi,
              I have a weblogic cluster with 2 weblogic machines: machineA and machineB.
              The cluster contains 4 managed servers (2 on each WLS machine)
              The admin server runs on machineA (standalone).
              I have a file backup of the domain directory on machineA.
              Suppose machineA crashes.
              How can I start the admin server on machineB?
              Kind regards,
              Pieter

    Thanks for your reply,
              I know how to (re)start the admin server on machineA. But in this case I want to start the admin server on machineB.
              The documentation says:
              Restarting an Administration Server on Another Machine
              If a machine crash prevents you from restarting the Administration Server on the same machine, you can recover management of the running Managed Servers as follows:
              Install the WebLogic Server software on the new administration machine (if this has not already been done).
              Make your application files available to the new Administration Server by copying them from backups or by using a shared disk. Your application files should be available in the same relative location on the new file system as on the file system of the original Administration Server.
              Make your configuration and security data available to the new administration machine by copying them from backups or by using a shared disk. For more information, refer to Directory and File Backups for Failure Recovery.
              Restart the Administration Server on the new machine.
              Simply starting the admin server on the other machine does not work because it tries to start the admin server on the ip address of the old machine.
              Edited by [email protected] at 05/10/2007 7:47 AM

  • How to start the osb server

    Hi please help me on this

    Hi Vijay,
              Before starting the OSB Server i need small clarification,
    While OSB Domain Creation what option ur selected i.e. either OSB Developer or Just OSB,
    If ur Selected OSB Developer then,
    goto Your Installation Directory Like Oracle-->Middleware-->User_Projects-->Applcations(Domains)-->Double Click on Ur Domain Name-->Double Click on StartWebLogic.cmd
    If ur Selected only OSB then,u need to follow the below 2 steps
    1) goto Your Installation Directory Like Oracle-->Middleware-->User_Projects-->Applcations(Domains)-->Double Click on Ur Domain Name-->Double Click on StartWebLogic.cmd
    2) copy the Path like Oracle/Middleware/User_Projects/Applcations(Domains)/Servers,
    open cmd and paste here, after that,
    Oracle/Middleware/User_Projects/Applcations(Domains)/Servers/StartManagedWeblogic.cmd osb_server1&.
    Hope it will help you.....
    Regards,
    Kiran

  • How to start the temp server

    Hi experts
    Whether it is possible to copy the data of all disk in SAP server to another standby server with different hardware configuration ( without installing SAP only copying data from one server to another server retaining the IP id and hostname same) i want to activate in the stanby server whee we coied the SAP datas. what is the procedure do as it is??
    bala

    hi ruchit
    i will describe the full text here. the sap server the os is crashed. with the vendor we got the standby server and installed the OS and partitioned the disk in to three logical partition. now we have copied the data from crashed server to their respective disks. now i want to start / initiate the server which data has been dumped from the old one. at present we want recover the SAP by some sort of settings / registries so to avoid the New SAP installation time.Here i need that how to enable all the services from this dump and make the SAP work. where we have maintained the Hostname and IP address is the same. could u tell me the steps involved in it.
    bala

  • How to install the OPC server with the Application installer

    Hi to all,
                 I had make the datalogging progam by communication the PLC through modbus using the OPC server.
    1. I had configer the opc client through project explorer some time it run fine but when i run by next day it can't communicate with OPC server but the OPC server is communicating with the PLC.When i right click on the properties of the opc i/o client in the project exploer and make any change and again run the application it works where the problem is.
    2.The second problem is while building the installer who OPC server will installered to my targate PC.Bacuse i had installed the application  on the target PC just for testing but OPC server havn't installed even though there is no option for the addition of the OPC server while bulding.
    Solved!
    Go to Solution.

    HI Serdar,
                      Thanks for the reply i had seen your example your idea is ok but if i have more then 100 tag and with different data types then where is problem to manage all those tags.
    Now what i had done i had put the express vi of create or configer I/O server and give the process name same as file name like opcdemomo and same server name mention in the project explorer and restart and shout down tow and three times it works i havn't get any problem.but that is not the good method.

  • How to start the file server for Agile PLM

    when i try to add one attachment for an Item, i got the following error message:
    The preferred file server http://agileserver:8080/Filemgr/AttachmentServlet for user : xxx is down
    how to startup the file mgr?

    Hi is this looks like a question for Agile A9.
    For Agile A9 or Primavera questions, you can use Oracle Support, Support Communities, Yahoo Groups for Agile API or WRAU.
    This forum is for Agile PLM for Process, which is part of the same Agile family but a different product.
    Thanks.

  • How to Integrate the portal server with Third party system

    Hi Experts,
    I got a requirement to create a integration between portal server and thrid party system.
    If anybody have specific document for this kindly circulate the same to [email protected]
    For every inputs higher points will be rewarded.....
    Thanks in Advance,
    Jasmine

    Jasmine,
    You don't mention which third-party?
    There are many complient/supported third-party apps/ and APIs available.
    Check https://www.sdn.sap.com/irj/sdn/developerareas/was?rid=/webcontent/uuid/e081a4b6-0801-0010-7fa4-c3c7a0454815
    further.
    James

  • How to start the X server from console

    In solaris 10 once we logged in cosole session is there any possibility to go to CDE or Java Mode
    Without Log out.
    Regds
    Suseendran .A
    919213540324

    Hello.
    Yes, this is possible (perhaps root access is needed).
    However it is rather difficult...
    I would try to write an own xinit script...
    Martin

  • Impossible to start UCM managed server with the WLS console

    Hi,
    I cannot start the UCM managed server with the WLS console. The node manager is running by startNodeManager.cmd. The admin server by startWebLogic.cmd.
    When I start the UCM server with the console WLS (Environment, Servers, Control tab and Start on the checked server), it seems to be running (the state is RUNNING) but when I open the url on the the web server UCM there is a 404 error
    In the log, there are many java.lang.ClassNotFoundException: oracle.jrf.wls.JRFStartup, oracle.security.jps.wls.JpsWlsStartupClass, oracle.core.ojdl.weblogic.ODLConfiguration, oracle.jrf.AppContextStartup, oracle.as.jmx.framework.wls.spi.StartupListener, oracle.ias.cache.Startup, oracle.dms.wls.DMSStartup ...
    If I start UCM directly by startManagedWebLogic.cmd and not with the WLS console, everything is OK. No error in the log and UCM server is working well
    Any idea ?
    Thanks
    Hugues

    Great!
    I had the same error: when starting UCM on WL Console, it starts and says Running. But when accessing it on the browser receive the error 404. In the other hand, when starting with Commands, it force shutdowns.
    I have set the StartScriptEnabled property to true, now I can start UCM only on the command Line, to start it on WL Console, I have to manually start the node manager.
    Is there a way/script to start the node manager automatically?
    Regards,

  • Memleak cannot work when start the management server by ctrlhandler.act

    Hi, all
    I use ctrlhandler.act to start a management server on running system. when start the memleak detector, i got the error message on server output:
    [JRockit] ManagementServer started trend analysis
    java.lang.NullPointerException
    Continuing ...
    java.lang.Exception: discarding statement XMLEncoder0.writeObject(HeapHistogram0);
    Continuing ...
    but when I started the management server with command line -Xmanagement. all is ok. What's the matter?
    Thanks a lot!

    Sorry, the jrocki version is 1.4.2_05 and 1.4.2_08.
    And the os: windows XP professional and Redhat AD 7.2
    And the weblogic server version is 'weblogic8.1 sp3'
    any suggestion? Thank you!

  • How to start the server. Urgent.

    I mistakenly deleted the icon from the Start menu, to start the SAP IDES server in my laptop. How to start the server from any other path.
    I installed it in E drive (2003 server). Database path is F drive.

    Hi,
    Check the following path
    E:\Program Files\SAP\FrontEnd\SapGui
    Here the actual Logon Pad file would be stored with name "SAPLOGON" or "SAPLGPAD".
    Create another shortcut for above file on your desktop.
    Best regards,
    Prashant

Maybe you are looking for

  • Photos in imovie are displayed twice ?!

    photos are displayed twice in imovie database !? Why ?

  • OSX Lion 10.7.3 and Airport Utility 6 Installation Errors

    I tried to run a Software Update and install the latest upgrades but the installation fails for both Airport Utility 6 and OSX Lion 10.7.3 updates. Each time, the update is downloaded succesfully then after the installer runs for a while an error pop

  • How to switch off orb.properties locally.

    Hi, I am using 1.3 J2SE client to run weblogic EJBs. This is working good with sun's JDK. I need to connect to Weblogic from old Silverstream, which is also using working 1.3 Sun's jre, but it has set up it's own ORB in orb.properties (JRE/lib direct

  • ResultSet wihtin ResultSet but causes cursor problem?

    I have a SQL error when running the code below: while(rs0.next()){ ... String s= rs0.getString(1); ResultSet rs=null; rs=getResult1(aConnnection, s); /*statment is created in the function and ResultSet returned */ while(rs.next()){ ... rs.close(); rs

  • Run App Engine through command line but have it show up in Process Monitor

    We are trying to run Application Engine through command line and have it show up in the Process Monitor. We have successfully ran the Application Engine through command line. We also can successfully run the Application Engine through PIA. Only when