000038293 - 'No such service afx_server' error when performing afx status/stop/start commands in RSA Identity Governance & Lifecycle

Document created by RSA Customer Support Employee on Jan 1, 2020Last modified by RSA Customer Support Employee on Jan 5, 2020
Version 4Show Document
  • View in full screen mode

Article Content

Article Number000038293
Applies ToRSA Product Set: RSA Identity Governance & Lifecycle 
RSA Version/Condition: All
 
IssueThe following error occurs when trying to execute AFX commands such as stop/start/status.

$ afx {command}
service: no such service afx_server
CauseThe symbolic link for AFX has been broken or was not setup properly when configuring the AFX Server service.
 
ResolutionCreate a symbolic link to the AFX startup script located in $AFX_HOME/bin.
  1. Connect to the AFX Server as the root user.
  2. Create a symbolic link to the AFX startup script located in $AFX_HOME/bin.


ln -s $AFX_HOME/bin/afx_server /etc/init.d/afx_server


  1. Make sure the link was created properly:


ls -l /etc/init.d/afx_server


For example:



$ ls -l /etc/init.d/afx_server
lrwxrwxrwx 1 root root 31 Dec 30 15:26 /etc/init.d/afx_server -> /home/oracle/AFX/bin/afx_server


  1. Switch to the afx user and verify that the AFX commands now work. Here is a sample session using the afx status command. Note that in this example the afx user is oracle.


$ afx status
AFX Server Status:Setting MULE_HOME to /home/oracle/AFX/esb...
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /home/oracle/.activemqrc)

INFO: Invoke the following command to create a configuration file
/home/oracle/AFX/activemq/bin/activemq setup [ /etc/default/activemq | /home/oracle/.activemqrc ]

INFO: Using java '/etc/alternatives/java_sdk_1.7.0/bin/java'
ActiveMQ not running
----
MULE_HOME is set to /home/oracle/AFX/esb
Mule Enterprise Edition is not running.
----
MMC Console is not running.
done


  1. To configure AFX services to start and stop automatically whenever the system reboots, add the service and enable it using the chkconfig utility: 

  1. Add the service:


chkconfig --add afx_server


  1. Enable the service run level:


chkconfig afx_server on


  1. Verify the service has been added: 


chkconfig --list afx_server
WorkaroundLogin to the AFX Server as the afx user and execute the script file along with the command:

cd $AFX_HOME/bin
./afx {command}

For example:


./afx status

Attachments

    Outcomes