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:

  • name: LOG_STREAMING_SERVICE_URL
    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.