"No such file or directory" error when the "./run_all.sh" is attempted using the "ubuntu" user from the command line in a platform node of VCF Operations for Networks
search cancel

"No such file or directory" error when the "./run_all.sh" is attempted using the "ubuntu" user from the command line in a platform node of VCF Operations for Networks

book

Article ID: 404813

calendar_today

Updated On:

Products

VCF Operations for Networks

Issue/Introduction

The script called "run_all.sh" is a script that is included on every VCF Operations for Networks Platform node (appliance). 

The purpose of the script is to allow a command to be run on each and every Platform node in a clustered deployment. 

Here is an example of the proper way to run this script to execute a command to check the health of all services on each Platform node in the cluster:

  1. Log into the Platform node 1 (appliance) using the "support" user and the appropriately set password. 
  2. Enter the command "ub" to switch to the "ubuntu" user.
  3. Enter the command "./run_all.sh sudo /home/ubuntu/check-service-health.sh -p -d"

The expected result would be status lines of output below the command, indicating the progress, per the example below which illustrates the type of output seen in a situation where all services and running and healthy:

--platform1--

ElasticSearch is running and healthy.
ElasticSearch statistics:
Uptime:63-01:27:31

<snip>

All required services are running.

--platform2--

ElasticSearch is running and healthy.
ElasticSearch statistics:
Uptime:63-01:27:20

<snip>

All required services are running.

--platform3--

ElasticSearch is running and healthy.
ElasticSearch statistics:
Uptime:63-01:27:56

<snip>

All required services are running.

 

NOTE:  VCF Operations for Networks was formerly named Aria Operations for Networks (AON), and prior to that was named vRealize Network Insight (vRNI).

Resolution

If you see the "No such file or directory" error instead of the expected result, you may have to log out from the "ubuntu" user and then log back in and repeat the command:

  1. "exit" to logout from the "ubuntu" user
  2. "ub" to log back into the "ubuntu" user
  3. Enter the command that you ran previously.  In this example "./run_all.sh sudo systemctl stop kafka.service"