# No public key was provided for authenticating the artifact

**URL:** <https://hub.mender.io/t/no-public-key-was-provided-for-authenticating-the-artifact/2491>\
**Category:** General Discussions\
**Created:** [September 25, 2020, 6:11am UTC](https://hub.mender.io/t/no-public-key-was-provided-for-authenticating-the-artifact/2491 "2020-09-25T06:11:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamanRatna](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SamanRatna](https://hub.mender.io/u/SamanRatna)\
**Post date:** [September 25, 2020, 6:11am UTC](https://hub.mender.io/t/no-public-key-was-provided-for-authenticating-the-artifact/2491/1 "2020-09-25T06:11:54Z")

</div>

This is the error log I got for when deploying my update. I believe that the error is somewhere related to the Download\_Leave script.

1. What might have been the issue?

2. Also, do I need to make any configuration to use Download\_Enter and Download\_Leave scripts that are inside etc/mender/scripts directory ?

Here is my error log:

{“level”:“info”,“message”:“Running Mender client version: 2.3.0”,“timestamp”:“2020-09-24T16:51:00+01:00”}  
{“level”:“info”,“message”:“State transition: update-fetch [Download\_Enter] -\u003e update-store [Download\_Enter]”,“timestamp”:“2020-09-24T16:51:03+01:00”}  
{“level”:“info”,“message”:“No public key was provided for authenticating the artifact”,“timestamp”:“2020-09-24T16:51:04+01:00”}  
{“level”:“info”,“message”:“State transition: update-store [Download\_Enter] -\u003e update-after-store [Download\_Leave]”,“timestamp”:"2020-09-24T16:51:11+01:0$  
{“level”:“info”,“message”:“State transition: update-after-store [Download\_Leave] -\u003e update-install [ArtifactInstall]”,“timestamp”:"2020-09-24T16:51:13+0$  
{“level”:“error”,“message”:"transient error: error executing leave script for update-after-store state: error running leave state script(s) for Download\_Leav$  
{“level”:“info”,“message”:“State transition: update-after-store [Download\_Leave] -\u003e cleanup [Error]”,“timestamp”:“2020-09-24T16:51:13+01:00”}  
{“level”:“info”,“message”:“State transition: cleanup [Error] -\u003e update-status-report [none]”,“timestamp”:“2020-09-24T16:51:13+01:00”}

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 25, 2020, 6:31am UTC](https://hub.mender.io/t/no-public-key-was-provided-for-authenticating-the-artifact/2491/2 "2020-09-25T06:31:07Z")

</div>

> {“level”:“info”,“message”:“No public key was provided for authenticating the artifact”,“timestamp”:“2020-09-24T16:51:04+01:00”}

This just an information print, and should be harmless.

> [@SamanRatna](#):
>
> {“level”:“error”,“message”:"transient error: error executing leave script for update-after-store state: error running leave state script(s) for Download\_Leav$

This seems to be your error, and indeed it seems that a Download\_Leave script is failing.

---

<div class="post-metadata">

**Author:** ![SamanRatna](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SamanRatna](https://hub.mender.io/u/SamanRatna)\
**Post date:** [September 25, 2020, 8:44am UTC](https://hub.mender.io/t/no-public-key-was-provided-for-authenticating-the-artifact/2491/3 "2020-09-25T08:44:59Z")

</div>

Here is the full line for the Download\_Leave error. Can you explain what problem is it addressing to ? I didn’t quite understand the version issue.

{“level”:“error”,“message”:“transient error: error executing leave script for update-after-store state: error running leave state script(s) for Download\_Leave state: statescript: The version read from the version file in the statescript irectory does not match the versions supported by the client, please make sure the file is present and formatted correctly (supported: [2 3]; actual: 0).”,“timestamp”:“2020-09-24T16:51:13+01:00”}

---

<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:** [September 28, 2020, 3:43pm UTC](https://hub.mender.io/t/no-public-key-was-provided-for-authenticating-the-artifact/2491/4 "2020-09-28T15:43:03Z")

</div>

There is a file that is normally created by Yocto or mender-convert in /etc/mender/scripts/version that contains the version number of state scripts supported. You can see how it’s created with [mender-convert here](https://github.com/mendersoftware/mender-convert/blob/a82b5896e6b2f9a412539e943ffc21cfb867d362/mender-convert-modify#L242).

You need to ensure that file exists with whatever mechanism you use to generate your build.

Drew
