Error when running starting server service


 
Thread Tools Search this Thread
Operating Systems Solaris Error when running starting server service
# 1  
Old 11-16-2017
Error when running starting server service

Hi

I have installed using tar a program called rabbitmq, and when I try to start it according to documentation, I get the following error:
Code:
/usr/local/sbin/rabbitmq_server-3.6.14/sbin# ./rabbitmq-server
./rabbitmq-server[22]: .[49]: local: not found [No such file or directory]
root@solaris11test:/usr/local/sbin/rabbitmq_server-3.6.14/sbin#

I did add the path as
Code:
export PATH=/usr/local/sbin:$PATH

, But I still get the error.
Can you tell if I am missing something
# 2  
Old 11-16-2017
That means that the file 'rabbitmq-server' is not in the directory that you are trying to launch it from. You are in the wrong directory.

Find the directory that the file is in, change to that directory, and try it again from there.

Code:
cd <wherever>
./rabbitmq-server

You may then get a different error depending on what else is needed eg, a search path needs setting.

Last edited by hicksd8; 11-16-2017 at 04:29 AM..
# 3  
Old 11-16-2017
Hi

Thanks for the reply, but I am in the right directory:
Code:
root@solaris11test:/usr/local/sbin/rabbitmq_server-3.6.14/sbin# ls -lrt
total 61
-rwxr-xr-x   1 1023     1023        1480 Nov  7 09:46 rabbitmqctl
-rwxr-xr-x   1 1023     1023       10971 Nov  7 09:46 rabbitmq-server
-rwxr-xr-x   1 1023     1023        1362 Nov  7 09:46 rabbitmq-plugins
-rwxr-xr-x   1 1023     1023       12095 Nov  7 09:46 rabbitmq-env
-rwxr-xr-x   1 1023     1023        1885 Nov  7 09:46 rabbitmq-defaults
root@solaris11test:/usr/local/sbin/rabbitmq_server-3.6.14/sbin# ./rabbitmq-server
./rabbitmq-server[22]: .[49]: local: not found [No such file or directory]
root@solaris11test:/usr/local/sbin/rabbitmq_server-3.6.14/sbin#

and still not able to run it
# 4  
Old 11-16-2017
Show us the first 50 lines of rabbitmq-server and tell us what operating system and shell you're using.

One would guess that either rabbitmq-server line 49 contains the command:
Code:
. local ...

and local is not a file in your current working directory when you get to line 49 in that script or that rabbitmq-server line 49 is trying to declare a variable in a function to be a local variable and the shell you're using when you run that script doesn't recognize the local keyword.
# 5  
Old 11-16-2017
Please show the rabbitmq-server script, esp. the line 22 (and the definition of all shell variables referenced therein).

EDIT: and line 49 as requested by Don Cragun.
# 6  
Old 11-16-2017
Hi

I did found a solution for that particular error which was I had to replace #!/bin/sh with
Code:
#!/usr/xpg4/bin/sh

. But now I am having another error, refering to line 81 of the script:~
Code:
 ./rabbitmq-server
./rabbitmq-server: line 81: erl: command not found

and viewing the line 81 with vi:

Code:
79 # NOTIFY_SOCKET is needed here to prevent epmd from impersonating the
     80 # success of our startup sequence to systemd.
     81 NOTIFY_SOCKET= \
     82 RABBITMQ_CONFIG_FILE=$RABBITMQ_CONFIG_FILE \
     83 RABBITMQ_DIST_PORT=$RABBITMQ_DIST_PORT \

Now I am also stuck

But erlang is installed as per the following line:

Code:
/usr/sbin/pkgchk -L CSWerlang # list files

which lists the files

Last edited by fretagi; 11-16-2017 at 07:16 AM.. Reason: add more info
# 7  
Old 11-16-2017
Code:
NOTIFY_SOCKET= \

Lose the space
Code:
NOTIFY_SOCKET=\

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

A service is not starting after booting up.

I require a service named "X" to be started automatically every time we restart the Linux 6.2 machine.But it is not starting. I have included the service in Init.d folder by $chkconfig --add X.But the application is not starting automatically after every reboot.I need to invoke $service X start... (1 Reply)
Discussion started by: Anjan Ganguly
1 Replies

2. Red Hat

Httpd service not starting... Error "Documentroot must be a directory"

I am working with CentOS 6.5. Indeed the document root /var/www/html is a directory and it is a mount point of one file system (not NFS) I observed, if I unmount that file system, I could able to start httpd. Is it restricted in CentOS 6.X that the Documentroot can not be a mount point? ... (5 Replies)
Discussion started by: atanubanerji
5 Replies

3. Solaris

Rpcbind service not starting

Hello all, I have read just about every rpcbind not starting thread and article on the internet it seems, but I have not found a solution to my problem as of yet. I have a solaris 10 server that has been running with no problems for a while. The other day it crashed and would not boot to the gui... (2 Replies)
Discussion started by: Madrox72
2 Replies

4. UNIX for Advanced & Expert Users

error starting named service in CentOS

Hi Guys, I am configuring DNS BIND server I am getting following error, can someone please help ...below is my complete /etc/named.caching-nameserver.conf file :- # service named restart Stopping named: Starting named: Error in named... (1 Reply)
Discussion started by: patibandlavinay
1 Replies

5. Solaris

Service error on sparc server running solaris 10

Hi, I am getting following service error on one of the sparc servers running solaris 10 - Code : $ svcs -a | grep "maintenance" maintenance Nov_08 svc:/application/management/sma:default $ svcs -xv svc:/application/management/sma:default (net-snmp SNMP daemon) State: maintenance... (8 Replies)
Discussion started by: sunadmin
8 Replies

6. Solaris

Service not starting Solaris10

On one of our server inetd service has stuck in transition state , tried restarting it but it does not do any thing and there is no associated inetd process for the same , how can i start it .. w/o rebooting it svcs inetd STATE STIME FMRI online* 16:44:55... (3 Replies)
Discussion started by: fugitive
3 Replies

7. UNIX for Dummies Questions & Answers

Starting a service at startup.

Hi guys I want to start a service and a script SiteMonitor.sh at startup. To start with i have modified /etc/rc.local file. Here is the content of my /etc/rc.local file. #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own... (3 Replies)
Discussion started by: pinga123
3 Replies

8. Solaris

set-tmp-permission service is not running in Netra CCMP3060 blade server

In my Solaris 10 - Netra CP3060, the following particular script is not running: lrc:/etc/rc2_d/S00set-tmp-permissions lrc:/etc/rc2_d/S07set-tmp-permissions Above script is to set the default permission of /tmp & /var/tmp while rebooting if it found any inconsistencies. I changed the file... (4 Replies)
Discussion started by: ramnagaraj
4 Replies

9. AIX

Service starting Problem

Dear All, When i am start the service netd i am facing the problem 0513-015 The inetd Subsystem could not be started Please check subsystem resources and try again later. please suggest me. It is urgent (1 Reply)
Discussion started by: pernasivam
1 Replies

10. Linux

Requiste for starting service xinetd

hi... i am trying to find out the services which should be started before the service xinetd can be started. I have read thru the /etc/rc.d/init.d script and i think xinetd depends on service network as it checks whether the variable NETWORKING is set or not || exit 0 Does it... (0 Replies)
Discussion started by: tuxfood
0 Replies
Login or Register to Ask a Question