How to solve the Shell Script Step Failures with no logs

Hello gang :vulcan_salute:

As the world of software development continues to evolve rapidly, it is critical to have cutting-edge tools that can help manage and deploy software applications easily and efficiently. Harness Platform is one such tool, providing a comprehensive suite of features designed to streamline the software development, deployment, and management process.

One of the essential components of the Harness Platform is the Immutable Delegate, which is the new version of the legacy Delegate. Immutable Delegates are designed to be more stable.

However, even with Immutable Delegates, issues can still arise. Specifically, some users may experience failures with no logs during a shell script step in their pipeline runs, as shown below:

If you encounter this issue, it is most likely related to a lack of a variable for your Delegate. The missing variable is:

    value: “<< manager_url >>/log-service/”

To resolve this no log issue, you need to add the variable to your Delegate. Here’s how:

  • Update your Delegate YAML.
  • Add the variable “LOG_STREAMING_SERVICE_URL” and set the value to “<< manager-url >>/log-service/”.
  • Apply your changes.

With this variable added to your Delegate, you should no longer experience failures during shell script steps with no logs being displayed.

In conclusion, while Immutable Delegates are a significant improvement over legacy Delegates, issues can still arise. However, by following the steps outlined above, you can resolve shell script step failures related to missing logs due to the variable and continue to enjoy the benefits of the Harness Platform.