# Why resources report is not generated?

If you're experiencing issues with generating the resources status report using the yc command on Linux or macOS, it might be due to insufficient permissions. This section explains the possible reason for the failure and provides a solution.

# Reason

The vmstat [Linux] and vm_stat [macOS] commands used in the backend requires administrative privileges to access system information and retrieve virtual memory statistics data. By default, regular users do not have the necessary permissions to execute this command successfully.

# Solution

To generate the virtual memory status output using the yc command, you can use the sudo command to acquire the required elevated privileges. Follow the steps below:

  1. Open a terminal or command prompt.
  2. Run the following command, replacing <PID> with the actual process ID and /path/to/config.yaml with the appropriate configuration file:
sudo ./yc -c /path/to/config.yaml -p <PID>
1
  1. Enter your password when prompted.

Note that your user account must have administrative rights to use sudo.

By using sudo, you grant the yc command the necessary privileges to retrieve virtual memory information, allowing the output generation to proceed successfully.