# Single File

**URL:** <https://hub.mender.io/t/single-file/486>\
**Category:** Update Modules\
**Created:** [April 16, 2019, 1:55pm UTC](https://hub.mender.io/t/single-file/486 "2019-04-16T13:55:59Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [March 25, 2020, 7:50am UTC](https://hub.mender.io/t/single-file/486/21 "2020-03-25T07:50:46Z")

</div>

> [@gerardostola](#):
>
> Now we could download a single file successfully, using the demo server. By the way, it can only send the domain [s3.docker.mender.io](http://s3.docker.mender.io), we could not change it and that could be nice, given that clients and servers live on different networks. The only workaround we found was to resolve that domain through the client´s /etc/hosts file, which is somewhat dirty.

This is a limitation of the Demo environment, as we provide demo certificates for the [docker.mender.io](http://docker.mender.io) and [s3.docker.mender.io](http://s3.docker.mender.io) domains.

If you want to use a custom domain name you can setup a production environment, [Production installation | Mender documentation](https://docs.mender.io/2.3/administration/production-installation)

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [June 15, 2020, 12:02pm UTC](https://hub.mender.io/t/single-file/486/22 "2020-06-15T12:02:01Z")

</div>

Hi,

How to include multiple files to deploy using this module?

---

<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:** [June 15, 2020, 4:14pm UTC](https://hub.mender.io/t/single-file/486/23 "2020-06-15T16:14:26Z")

</div>

HI @nishad1092 this update modules is specifically for deploying single files. You may be looking for:

- [Directory Overlay](https://hub.mender.io/t/directory-overlay/529/9)
- [Directory](https://hub.mender.io/t/directory/325/47)

Drew

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [June 16, 2020, 4:10am UTC](https://hub.mender.io/t/single-file/486/24 "2020-06-16T04:10:26Z")

</div>

Sure @drewmoseley, It looks good.

I have another query, so I just deployed a directory of two python file using directory module, and then I would like to execute this .py file, so I’m trying to execute it through script module by simple bash script to python run the file. But it isn’t getting deployed nor gettign executed. ? tell me if Im doing wrong or is there any other way?

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [June 16, 2020, 9:48am UTC](https://hub.mender.io/t/single-file/486/25 "2020-06-16T09:48:16Z")

</div>

Hi @drewmoseley,

I looked over this, It worked just fine, But one glitch, Few deployments went just fine, But whenever a deployment is failed or aborted, then the current artifact is show with “Inconsistent” tag, and also device isn’t syncing in real time after this, I had to restart manually.

Sir, Why is this? How to resolve it, or is this is a known bug\issue ? Because if a update fails, which might happen right, in that scenario, one can’t access the device becuase it isn’t realtime sycned and because of this, im not able to further deploy until i manually restart the device.

---

<div class="post-metadata">

**Author:** ![craige](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@craige](https://hub.mender.io/u/craige)\
**Post date:** [May 31, 2024, 6:22pm UTC](https://hub.mender.io/t/single-file/486/26 "2024-05-31T18:22:50Z")

</div>

Following the tutorial provided step by step I have generated a single file artifact, however when I try to use this for a deployment I get the following error from the device:

> 2024-05-31 18:09:35.518 +0000 UTC info: Running Mender client 4.0.2  
> 2024-05-31 18:09:35.519 +0000 UTC info: Deployment with ID 24b6fe54-31e6-4eb3-b543-fed5a58ec130 started.  
> 2024-05-31 18:09:35.524 +0000 UTC info: Sending status update to server  
> 2024-05-31 18:09:36.57 +0000 UTC error: Parse error: Failed to parse the header: Failed to parse the type-info artifact\_provides JSON: The JSON is not an object  
> 2024-05-31 18:09:36.578 +0000 UTC info: Sending status update to server

The JSON contained within the type-info file in the artifact is as follows;

> {“type”:“single-file”,“artifact\_depends”:null,“artifact\_provides”:null}

Why is this not working as expected?

As a side note - the documentation on using the single-file-artifact-gen [here](https://docs.mender.io/artifact-creation/create-an-artifact) seems very outdated and does not work since the --software-version and --software-name arguments are seemingly unsupported.

[Previous page](https://hub.mender.io/t/single-file/486.md?page=1)
