# Problem while running Download\_Leave script

**URL:** <https://hub.mender.io/t/problem-while-running-download-leave-script/2493>\
**Category:** General Discussions\
**Created:** [September 25, 2020, 11:12am UTC](https://hub.mender.io/t/problem-while-running-download-leave-script/2493 "2020-09-25T11:12:33Z")\
**Posts on this page:** 2\
**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, 11:12am UTC](https://hub.mender.io/t/problem-while-running-download-leave-script/2493/1 "2020-09-25T11:12:33Z")

</div>

Here is the error log I get while executing Download\_Leave\_01\_User.py script.  
I am using Mender Client 2.3 for raspberry pi.

{“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”}

I don’t understand that version thing that the log is telling. Can anyone help ?  
And, basically I am having problem running any rootfs script. I am using update module to do single file update here.

Thanks in advance.

---

<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/problem-while-running-download-leave-script/2493/2 "2020-09-28T15:43:42Z")

</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
