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

mender-artifact panic when getting from ssh (snapshot)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Labels:
    • Days in progress:
      9

      Description

      When using mender-artifact to generate the artifact from a remote device (ssh) the OS can prompt for the SSH password. If the user wants to kill the process there (SIGINT), mender-artifact will raise a panic.

      How to reproduce:

      • Start a mender-artifact write command from a device supporting mender snapshot feature:
        • mender-artifact write rootfs-image -f ssh://pi@10.20.33.251 -n dump -o dump2.mender -t raspberrypi
      • When asked for the password, cancel using SIGINT signal
        • pi@10.20.33.251's password: (Ctrl+C)

      Error trace:

      $ mender-artifact write rootfs-image -f ssh://pi@10.20.33.251 -n dump -o dump2.mender -t raspberrypi
      pi@10.20.33.251's password: 
      panic: send on closed channel
      
      goroutine 5 [running]:
      os/signal.process(0x719d80, 0xc00015c000)
      	/snap/go/4286/src/os/signal/signal.go:237 +0x225
      os/signal.loop()
      	/snap/go/4286/src/os/signal/signal_unix.go:23 +0x52
      created by os/signal.init.0
      	/snap/go/4286/src/os/signal/signal_unix.go:29 +0x41
      

        Attachments

          Activity

            People

            • Assignee:
              oleorhagen Ole Petter Orhagen
              Reporter:
              lluis Lluís Campos
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel