# ArtifactCommit\_Leave state script not running when using standalone operation only

**URL:** <https://hub.mender.io/t/artifactcommit-leave-state-script-not-running-when-using-standalone-operation-only/3406>\
**Category:** General Discussions\
**Tags:** standalone, state-scripts\
**Created:** [March 22, 2021, 9:40am UTC](https://hub.mender.io/t/artifactcommit-leave-state-script-not-running-when-using-standalone-operation-only/3406 "2021-03-22T09:40:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sensslen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/sensslen/32/245_2.png) [@sensslen](https://hub.mender.io/u/sensslen)\
**Post date:** [March 22, 2021, 9:40am UTC](https://hub.mender.io/t/artifactcommit-leave-state-script-not-running-when-using-standalone-operation-only/3406/1 "2021-03-22T09:40:32Z")

</div>

I’m trying to run state scripts to cleanup data partition after a new artifact has been committed in standalone mode.

While I do see the output of state scripts called `ArtifactInstall_Leave*`, I do not get any output of state scripts called `ArtifactCommit_Leave*` when using mender commit command after installing the new update.

Are there any additional steps required to make these state scripts run?

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [March 22, 2021, 12:37pm UTC](https://hub.mender.io/t/artifactcommit-leave-state-script-not-running-when-using-standalone-operation-only/3406/2 "2021-03-22T12:37:09Z")

</div>

As far as I can tell, the script should be run:  
[https://docs.mender.io/artifact-creation/state-scripts#standalone-mode](https://docs.mender.io/artifact-creation/state-scripts#standalone-mode)

Could you paste the log, please?

---

<div class="post-metadata">

**Author:** ![sensslen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/sensslen/32/245_2.png) [@sensslen](https://hub.mender.io/u/sensslen)\
**Post date:** [March 23, 2021, 8:30am UTC](https://hub.mender.io/t/artifactcommit-leave-state-script-not-running-when-using-standalone-operation-only/3406/3 "2021-03-23T08:30:43Z")

</div>

I guess I fooled myself! When checking the artifact installation process I tested with the wrong artifact (which does not contain the mentioned scripts)

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [March 23, 2021, 8:33am UTC](https://hub.mender.io/t/artifactcommit-leave-state-script-not-running-when-using-standalone-operation-only/3406/4 "2021-03-23T08:33:08Z")

</div>

Thank you for the resolution still @sensslen, and best of luck with Mender 🙂
