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

Error in generated commands for onboarding

    XMLWordPrintable

    Details

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

      Description

      A user has reported an error with the onboarding commands.  It looks like python is unable to load PyYAML somewhere and the stderr output is leaking into the generated commands:

      sudo bash -c 'wget https://d1b0l86ne08fsf.cloudfront.net/PyYAML missing, try running 'sudo pip3 install pyyaml'./dist-packages/debian/armhf/mender-client_PyYAML missing, try running 'sudo pip3 install pyyaml'.-1_armhf.deb
       dpkg -i mender-client_PyYAML missing, try running 'sudo pip3 install pyyaml'.-1_armhf.deb cp /etc/mender/mender.conf.demo /etc/mender/mender.conf   sed /etc/mender/mender.conf -i -e "/Paste your Hosted Mender token here/d;s/hosted.mender.io/docker.mender.io/;1 a \ \ \"ServerCertificate\": \"/etc/mender/server.crt\"," wget -q -O /etc/mender/server.crt https://raw.githubusercontent.com/mendersoftware/meta-mender/master/meta-mender-demo/recipes-mender/mender/files/server.crt DOCKER_HOST_IP="55.55.55.11" grep "\ss3.docker.mender.io" /etc/hosts >/dev/null 2>&1 || echo "$DOCKER_HOST_IP s3.docker.mender.io # Added by mender" | tee -a /etc/hosts > /dev/null grep "\sdocker.mender.io" /etc/hosts >/dev/null 2>&1 || echo "$DOCKER_HOST_IP docker.mender.io # Added by mender" | tee -a /etc/hosts > /dev/null   mkdir -p /var/lib/mender echo "device_type=raspberrypi3" | tee /var/lib/mender/device_type systemctl enable mender && systemctl restart mender'

       
       


        Attachments

          Activity

            People

            • Assignee:
              oleorhagen Ole Petter Orhagen
              Reporter:
              drewmoseley Drew Moseley
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel