# Mender show-provides returns nothing

**URL:** <https://hub.mender.io/t/mender-show-provides-returns-nothing/3413>\
**Category:** General Discussions\
**Created:** [March 22, 2021, 6:39pm UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413 "2021-03-22T18:39:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![flixr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/flixr/32/141_2.png) [@flixr](https://hub.mender.io/u/flixr)\
**Post date:** [March 22, 2021, 6:39pm UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/1 "2021-03-22T18:39:08Z")

</div>

Hi,

I created a new mender rootfs artifact (using mender-artifact 3.5.0) and installed it on the device via mender -install (mender client version 2.5.0).  
After booting into the new image I don’t get any output via “mender show-provides” as described in [Software versioning | Mender documentation](https://docs.mender.io/artifact-creation/software-versioning)

I was expecting to get the rootfs-image.version, which is set in the artifact (verified with “mender-artifact read”):  
Updates:  
0:  
Type: rootfs-image  
Provides:  
rootfs-image.checksum: 12e434063264e187577b2ecda3e9e2e105f2eeac90d599b47c95250d92ae94f1  
rootfs-image.version: rc\_cube\_v21.04.0-pre2

Is this not supported when installing in standalone mode, is there something else I need to do or is this a bug?

Thanks, Felix

---

<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:** [March 22, 2021, 8:39pm UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/2 "2021-03-22T20:39:05Z")

</div>

Hi Felix,

I think this is supposed to work but there is at least one other similar report. @kacf can you comment?

Drew

---

<div class="post-metadata">

**Author:** ![hacpa](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hacpa](https://hub.mender.io/u/hacpa)\
**Post date:** [March 23, 2021, 12:29am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/3 "2021-03-23T00:29:15Z")

</div>

Did you commit the update? You probably just need to do that: “mender commit”. I noticed that the “Provides” are only updated when the update is committed.

---

<div class="post-metadata">

**Author:** ![flixr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/flixr/32/141_2.png) [@flixr](https://hub.mender.io/u/flixr)\
**Post date:** [March 23, 2021, 7:37am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/4 "2021-03-23T07:37:15Z")

</div>

Yes, the update is committed.

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [March 23, 2021, 8:31am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/5 "2021-03-23T08:31:10Z")

</div>

Did you happen to use the `--no-default-software-version` argument while building the artifact? This is often used to upgrade old devices which don’t support the software versioning, and if left in place, will prevent software versioning from working.

---

<div class="post-metadata">

**Author:** ![flixr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/flixr/32/141_2.png) [@flixr](https://hub.mender.io/u/flixr)\
**Post date:** [March 23, 2021, 8:49am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/6 "2021-03-23T08:49:11Z")

</div>

No, I did not explicitly disable this. And as mentioned earlier it seems to correctly be part of the mender artifact:

“mender-artifact read” reports rootfs-image.version under provides, which matches the “type-info” content in the artifact

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [March 23, 2021, 9:24am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/7 "2021-03-23T09:24:12Z")

</div>

I can’t reproduce this here. Can you post the full output from `mender-artifact read`, as well as the exact commands you used, including intermediary commands, such as `reboot`.

---

<div class="post-metadata">

**Author:** ![flixr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/flixr/32/141_2.png) [@flixr](https://hub.mender.io/u/flixr)\
**Post date:** [March 23, 2021, 11:14am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/8 "2021-03-23T11:14:18Z")

</div>

mender-artifact read:

```auto
Mender artifact:
  Name: rc_cube_v21.04.0-pre2
  Format: mender
  Version: 3
  Signature: signed but no key for verification provided; please use `-k` option for providing verification key
  Compatible devices: '[rc_cube]'
  Provides group: 
  Depends on one of artifact(s): []
  Depends on one of group(s): []
  State scripts:

Updates:
    0:
    Type: rootfs-image
    Provides:
	rootfs-image.checksum: 12e434063264e187577b2ecda3e9e2e105f2eeac90d599b47c95250d92ae94f1
	rootfs-image.version: rc_cube_v21.04.0-pre2
    Depends: Nothing
    Clears Provides: ["artifact_group", "rootfs_image_checksum", "rootfs-image.*"]
    Metadata: Nothing
    Files:
      name: rootfs.ext4
      size: 10962862080
      modified: 2021-03-22 16:41:14 +0100 CET
      checksum: 12e434063264e187577b2ecda3e9e2e105f2eeac90d599b47c95250d92ae94f1

```

To install: `sudo -n mender -log-level debug -log-file /tmp/mender-update.log -install <artifact>`  
Then rebooted and commited.

Seems I cannot attach the log as file…

---

<div class="post-metadata">

**Author:** ![flixr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/flixr/32/141_2.png) [@flixr](https://hub.mender.io/u/flixr)\
**Post date:** [March 23, 2021, 1:56pm UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/9 "2021-03-23T13:56:51Z")

</div>

Hm… after updating again (with the same mender artifact), I now get the expected output from “mender show-provides”.

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [March 25, 2021, 4:39am UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/10 "2021-03-25T04:39:37Z")

</div>

Yes, I can’t see anything wrong in your output. I guess you solved it for now, but let us know if you find a way to reproduce it.

---

<div class="post-metadata">

**Author:** ![flixr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/flixr/32/141_2.png) [@flixr](https://hub.mender.io/u/flixr)\
**Post date:** [March 25, 2021, 6:51pm UTC](https://hub.mender.io/t/mender-show-provides-returns-nothing/3413/11 "2021-03-25T18:51:47Z")

</div>

Yes, it’s working now and I can’t reproduce it any more.  
Maybe it was because the mender store was somehow not “initialized” yet when updating the first time or something like that…
