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

Improve state script version error messages

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      When the state script "version" file is missing or wrongly formatted, it is hard to figure out why the state scripts are not run. See the community list threads State scripts supported versions and statescript: supported versions does not match.

      Acceptance criteria

      • The version is correctly parsed if it is followed by a newline
      • There is an error message if state scripts are used and the /etc/mender/scripts/version file is missing, explaining that it must be in place (and ideally what the latest supported version of this Mender client is)
      • There is a separate error message if the version file exists but is parsed incorrectly, explaining that it needs to contain a single number (and ideally what the latest supported version of this Mender client is)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oleorhagen Ole Petter Orhagen
                Reporter:
                a10003 Eystein Maloy Stenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support

                    Summary Panel