# Can't use Mender-Arrtifact to create a snapshot

**URL:** <https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716>\
**Category:** General Discussions\
**Tags:** raspberry-pi-4\
**Created:** [October 22, 2020, 1:44pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716 "2020-10-22T13:44:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 22, 2020, 1:44pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/1 "2020-10-22T13:44:23Z")

</div>

I’m newbie in Mender and I’m in topic that create a snapshot using Mender-Artifact on Raspberry Pi 4 but I’m get an error like this when run Mender-Artifact command. Please help!!!  
Thansk for reading

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/42d4e3f5c0b9c660ce0f9aba0ab9a794b91decc9.png)  
P/s I’m using Raspios-Buster-Lite-Armhf OS

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 22, 2020, 2:14pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/2 "2020-10-22T14:14:27Z")

</div>

The precompiled mender-artifact binary is for x86\_64 not Arm. It’s normally run on a development system running either MacOS or Linux. Is there reason you need to run it on the Raspberry Pi?

Drew

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 22, 2020, 2:25pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/3 "2020-10-22T14:25:06Z")

</div>

I’m trying to learn how to convert a current OS image so I can deploy to many devices using Pi and Mender Server. Is there any solutions for my problem???  
Thanks

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 22, 2020, 3:04pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/4 "2020-10-22T15:04:47Z")

</div>

The main docs for that [are here](https://docs.mender.io/system-updates-debian-family).

The alternative is to use the [snapshot feature](https://docs.mender.io/artifact-creation/create-an-artifact-with-system-snapshot).

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 22, 2020, 3:21pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/5 "2020-10-22T15:21:22Z")

</div>

Can I upgrade my Pi to 64 bit kernel and use the old way to create snapshot? I mean that the beta 64 bit kernel of Raspberry Pi??

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 22, 2020, 3:47pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/6 "2020-10-22T15:47:45Z")

</div>

It’ll still be Arm64 no X86\_64.

What do you mean by the “old way” to create a snapshot?

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 22, 2020, 4:23pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/7 "2020-10-22T16:23:43Z")

</div>

I mean that use Mender-Artifact to create a snapshot by following the guide in this links

> **[Deploy a system update | Mender documentation](https://docs.mender.io/get-started/deploy-a-system-update)**

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 22, 2020, 4:36pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/8 "2020-10-22T16:36:37Z")

</div>

But why do you want to do this on the Raspberry Pi itself? The mender-artifact binary that we provide is intended to run on your desktop/laptop build system.

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 22, 2020, 5:43pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/9 "2020-10-22T17:43:46Z")

</div>

Well, I just following the guide in Mender Docs. It said that I need a Raspberry Pi devices and Raspbian as Operating system

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 22, 2020, 6:37pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/10 "2020-10-22T18:37:25Z")

</div>

Right. That is the device that is being updated. The development of the images to run on those devices is handled by a separate development system. All the steps [from here](https://docs.mender.io/get-started/deploy-a-system-update) are expected to be run from your workstation.  
Drew

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 23, 2020, 12:52am UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/11 "2020-10-23T00:52:02Z")

</div>

I think i don’t get it. Can you explain more specific for me??? I want to create a golden image of my Raspbian OS on Raspberry Pi 4.Upload it to Mender Server and deploy to the device. All the steps from Mender Docs I run it on my Raspberry Pi 4. Thanks!!!

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 23, 2020, 2:53pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/12 "2020-10-23T14:53:38Z")

</div>

Then you want to use the [snapshot feature](https://docs.mender.io/artifact-creation/create-an-artifact-with-system-snapshot).

But more likely what you want is to take your golden image, without any Mender integration, run it through our mender-convert utility to create the multiple partition image. I assume your existing image is a single partition (plus the boot) which we cannot use to do full robust updates. If you review sections 1-4 of [our docs site](https://docs.mender.io/), I think that will explain it all.

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 23, 2020, 5:28pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/13 "2020-10-23T17:28:05Z")

</div>

So now how can i create a golden image to deploy? I already tried the Snapshot feature and it still don’t work. I also try a System Updates Debian Family that you suggests but I still get the same error when i execute MenderArtifact command

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 23, 2020, 5:43pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/14 "2020-10-23T17:43:32Z")

</div>

The golden master is whatever you want to be installed on top of the base Raspbian. That’s really not a part of Mender. Our mender-convert utility works as a post-processing step.

Basically:

1. Install Raspbian
2. Boot Raspbian
3. Add all your apps using APT or whatever other mechanism you need
4. Power Down
5. Move SDCard to desktop
6. Use dd command to create an image file from the SDCard.

Drew

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 25, 2020, 7:47am UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/15 "2020-10-25T07:47:59Z")

</div>

Well, I have deleted all and start over again and here are all steps I had do. Hope you can look over for me one more time. I’ll be much appreciated.

1. I install a Raspbian OS by recommend in the Mender Docs and flash it into SD card using Win32DiskImager
2. Insert it into a Raspberry Pi 4(Pi) and boot it, set up connection,language,etc.
3. Copy the code from hosted Mender and run it on Pi like this ![InstalledMenderClient](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/47df05fd9bd0b64662c1da8d66d22194c36893db.png)  
After that I saw my device in Hosted Mender, and I accept it.
4. I follow the Guide in Deploy a system update  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/12b62b1aabe5ebc2028d875c2483c9ddb968d53e.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/42aca9deb18f3ecde5d8353eef821f409f146875.png)  
and when I run the final command it get an error like this  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/273773e5b7df3472796dd301815f2d27a2542e30.png)

It supposed to executed and after that I should have a “system-v1.mender” for me to upload to Hosted Mender right? Please tell me what I’ve done wrong

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 26, 2020, 1:54pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/16 "2020-10-26T13:54:50Z")

</div>

You are running steps on the Raspberry Pi that should be run on your development workstation. The mender-artifact binary you are using is compiled for X86 and not for ARM. Note that step 1 of [our docs](https://docs.mender.io/get-started/deploy-a-system-update) states that this should be done on your workstation. If you absolutely need to run the mender-artifact command on your Raspberry Pi you will need to build it yourself.

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 27, 2020, 1:35pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/17 "2020-10-27T13:35:13Z")

</div>

Thanks for all information and support Mr @drewmoseley. I was able to create a snapshot now. But now I have 2 more problem, I hope you can help me figure out  
Here is my problem  
In tab Dashboard, it show my device is connected but can’t deploy anything to my devices. I have checked Identity, MAC address, it all match with my device. Then, I dismiss my device and add it again to Hosted-Mender and the second problem is here. My device did not show up in Pending tab. I have logout my account, refresh page but is still the same. Do you have any suggest for me Mr @drewmoseley.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 27, 2020, 3:18pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/18 "2020-10-27T15:18:21Z")

</div>

Can you provide more details? Screen shots of your devices tab, device details, releases tab and release details will be helpful.  
Also how did you create the deployment and what happened with it? Do you have a deployment status window?

---

<div class="post-metadata">

**Author:** ![Kennen](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kennen](https://hub.mender.io/u/Kennen)\
**Post date:** [October 27, 2020, 4:40pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/19 "2020-10-27T16:40:21Z")

</div>

Of course Mr @drewmoseley I can provide it for you. Here is my info about my device Ip and Mac address  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/725c9f1c099a9bdbe44af9b9b3e3a1429c7c3b3c.png)  
here is releases tab

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/69831c43a3e10991b371ab86b2e41b4fc4dc74d9.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/1eb43d4b8b4a8749947778f780d1fdf85b00f278.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/fde49c3940be4036288c5e46dd3ce76befb86062.png)

I create the deployment by the option " Create a deployment "and after create is pending

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/19cd664ea522536c16503b26f877c4dd714381a3.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/42f3b9b52e5635bb88bb7f5ad5e247ee2def9265.png)

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 27, 2020, 6:20pm UTC](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716/20 "2020-10-27T18:20:55Z")

</div>

On your raspberrypi terminal, what does the output of the following command show? If you can copy and paste the text rather than a screenshot that is much better.

`$ sudo journalctl -u mender-client --no-pager`

Drew

[Next page](https://hub.mender.io/t/cant-use-mender-arrtifact-to-create-a-snapshot/2716.md?page=2)
