Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3316

Do not interpret state scripts stderr output as error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.0
    • Fix Version/s: 2.3.1
    • Labels:
    • Days in progress:
      0

      Description

      When a state script logs anything to stderr, the client reports :

       

      ERRO[0075] stderr collected while running script /var/lib/mender/scripts/script

       

      As the purpose of stderr is to log error and diagnostic messages, it doesn't necessarily mean an error occurred when there is something in stderr.

      References (because the stream name is misleading and some people don't believe it's also for diagnostics):

      The client should rather check if an error occurred by reading the return code of the script.

      Related : MEN-1349

        Attachments

          Activity

            People

            • Assignee:
              oleorhagen Ole Petter Orhagen
              Reporter:
              christian Christian Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel