# ArtifactInstall and ArtifactCommit state scripts are not getting executed, only Download script is executing

**URL:** <https://hub.mender.io/t/artifactinstall-and-artifactcommit-state-scripts-are-not-getting-executed-only-download-script-is-executing/5985>\
**Category:** General Discussions\
**Tags:** update-modules, state-scripts, new-install\
**Created:** [July 7, 2023, 6:23am UTC](https://hub.mender.io/t/artifactinstall-and-artifactcommit-state-scripts-are-not-getting-executed-only-download-script-is-executing/5985 "2023-07-07T06:23:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nareshtech20](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nareshtech20](https://hub.mender.io/u/nareshtech20)\
**Post date:** [July 7, 2023, 5:10pm UTC](https://hub.mender.io/t/artifactinstall-and-artifactcommit-state-scripts-are-not-getting-executed-only-download-script-is-executing/5985/3 "2023-07-07T17:10:51Z")

</div>

found solution [https://hub.mender.io/t/state-scripts-do-not-get-executed/3901/4?u=nareshtech20](https://hub.mender.io/t/state-scripts-do-not-get-executed/3901/4)

As mentioned in [artifact-creation state-scripts](https://docs.mender.io/artifact-creation/state-scripts#root-filesystem-and-artifact-scripts)

> Blockquote  
> The reason for having both root filesystem and Artifact scripts is related to the fact that some scripts must run before the Client downloads the Artifact and as such can not be delivered with the Artifact. Those scripts are `Idle` , `Sync` and `Download` . Therefore it is important to remember that when deploying a new update, all scripts will be run from the currently running root filesystem until `ArtifactInstall` , at which point the scripts from the new Artifact will take over.  
> Blockquote

Only Idle, Sync, Download state scripts can be on device, remaining states scripts ArtifactInstall, ArtifactReboot, ArtifactCommit, ArtifactRollback, ArtifactRollbackReboot, ArtifactFailure should be part of artifact itself.

---

_[View the full topic](https://hub.mender.io/t/artifactinstall-and-artifactcommit-state-scripts-are-not-getting-executed-only-download-script-is-executing/5985)._
