# Type\_info type field empty

**URL:** <https://hub.mender.io/t/type-info-type-field-empty/3259>\
**Category:** General Discussions\
**Tags:** mender-artifact\
**Created:** [February 22, 2021, 3:45pm UTC](https://hub.mender.io/t/type-info-type-field-empty/3259 "2021-02-22T15:45:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [February 22, 2021, 3:45pm UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/1 "2021-02-22T15:45:06Z")

</div>

I’m tracking down not being to install a mender artifact created with mender-artifact 3.5.0 with mender-client 2.1.2. All artifacts have always been created with v3 flag.

Previously using mender-client 2.1.2 with artifact created with mender-artifact 3.2.1 works fine

The error i’m seeing on installation is:

```
ERRO[0000] Reading headers failed: installer: failed to read Artifact: type_info provides values not yet supported module=standalone
DEBU[0000] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor
ERRO[0000] installer: failed to read Artifact: type_info provides values not yet supported module=main

```

I am using `--no-checksum-provide` argument passed to artifact creation process as per the docs.  
One important difference seems to be that the type field in the type-info file is empty in the artifact created with 3.5.0 compared to the one created with 3.2.1, and my understanding was that this was a required field. Has something changed? Is it a bug.

I have tested the mender-artifact out of yocto tree and the empty field is reproducible.

the type-info file with mender-artifact 3.2.1:

` {"type":"rootfs-image","artifact_depends":{},"artifact_provides":{}}`

the type-info file with mender-artifact 3.5.0:

`{"type":"","artifact_provides":{"rootfs-image.version":"TY-K-TURN_2_0.0.28-5"},"clears_artifact_provides":["artifact_group","rootfs_image_checksum","rootfs-image.*"]}`

I have also testing with latest upstream mender-artifact master (3f3eaa8d6da4c4b7c80909004d3dd7d9dc9c4568) and empty field is still produced.

---

<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:** [February 22, 2021, 4:24pm UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/2 "2021-02-22T16:24:48Z")

</div>

@kacf can you help?

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [February 22, 2021, 5:37pm UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/3 "2021-02-22T17:37:13Z")

</div>

I have manually put back in the “type” to “rootfs-image” and the problem still exists, so I’ll need to investigate the other fields.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [February 22, 2021, 7:58pm UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/4 "2021-02-22T19:58:12Z")

</div>

looks like all of the following is required to get past this error

> -no-default-clears-provides --no-default-software-version --no-checksum-provide

albeit the type-info file now looks like this:

`{"type":""}`

so the question still remains is the required ‘type’ field no-longer required?

---

<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:** [February 23, 2021, 8:41am UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/5 "2021-02-23T08:41:30Z")

</div>

This is a bug! Good find, @dellgreen. Apparently this was introduced in 2019, so I’m surprised it has remained undetected for so long.

Regarding the flags you are using: Yes, they are required since they are introducing new features, which are on by default, and old clients do not support reading them.

The answer to your question about `type-info` is: The `type` field _is_ required, and the client should not have accepted the Artifact without it. I have fixed the issue [here](https://github.com/mendersoftware/mender-artifact/pull/330). It means that new clients with this fix will not accept such corrupt Artifacts made with an old mender-artifact, but all clients will accept Artifacts made with the new mender-artifact, assuming the flags are used.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [February 23, 2021, 10:01am UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/6 "2021-02-23T10:01:38Z")

</div>

awesome thank you, mystery over 😃

---

<div class="post-metadata">

**Author:** ![dbasner](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dbasner/32/1373_2.png) [@dbasner](https://hub.mender.io/u/dbasner)\
**Post date:** [November 30, 2021, 10:17am UTC](https://hub.mender.io/t/type-info-type-field-empty/3259/7 "2021-11-30T10:17:30Z")

</div>

can also verify: had an issue with 3.2.1, types got lost when renaming artifacts, fixed in 3.6.1
