# Download\_Enter script not working

**URL:** <https://hub.mender.io/t/download-enter-script-not-working/2495>\
**Category:** General Discussions\
**Created:** [September 25, 2020, 1:18pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495 "2020-09-25T13:18:19Z")\
**Posts on this page:** 9\
**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, 1:18pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/1 "2020-09-25T13:18:19Z")

</div>

For some reason, my Download\_Enter\_01\_User\_confirmation.py wouldnt execute. I made sure that the script resided in etc/mender/scripts directory. When I check in Mender server after deployment, it just waits for device showing “pending”. When I check all processes in my device using “ps -aux”, the script is not seen in the list.

When I try the same script but with the artifact as ArtifactInstall\_Enter\_01\_User\_confirmation.py , it executes flawlessly.

What might I be missing ? Is there something I need to do to run Download or sync scripts ?  
(Side note: I followed [this link](https://hub.mender.io/t/how-to-create-state-scripts-with-mender-using-raspberry-pi/1518) for the state script)

---

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [September 28, 2020, 11:38am UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/2 "2020-09-28T11:38:25Z")

</div>

Hi Samanratna,  
i also remind having a problem similar like this a while ago,  
do you have an file that specifies the version of the state scripts?  
like the example here

```
rootfs_overlay_production-server/etc/
└── mender
    ├── mender.conf
    ├── scripts
    │ └── version <- this file with value 3 
    └── server.crt

```

Greets Gene

---

<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 28, 2020, 1:21pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/3 "2020-09-28T13:21:16Z")

</div>

Hi @genedupre,

Yes I do. I do not have the sever.crt file though. What does it have ? And how did you solve the issue ?

---

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [September 28, 2020, 1:58pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/4 "2020-09-28T13:58:22Z")

</div>

hi @SamanRatna  
for the server.crt see

> **[Production installation | Mender documentation](https://docs.mender.io/2.3/administration/production-installation#encrypting-keys-optional)**

  
Gene

---

<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:59pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/5 "2020-09-28T15:59:22Z")

</div>

You only need the server.crt if you are running a self-hosted Mender server with a self-signed certificate.

As for the Download\_Enter script, can you provide the output of the following two commands when run on the device in question?

> $ sudo ls -l /etc/mender/scripts

> $ sudo journaltcl -u mender-client

Drew

---

<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 28, 2020, 5:00pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/6 "2020-09-28T17:00:38Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/c1884b445437adb8ea11d39d16be7fd9b2d68a5a.png)

the version was not created when installing mender client, so I made a file myself with value 3.  
It didn’t work. The deployment gave “pending” like before. I tried with value 2 too because my mender-client version is 2.4.0.1. ( I am assuming that setting that values manually was dumb, but I gave a shot anyway )

_( Also, the version was there at /var/lib/mender/scripts instead with value 3 inside by default after mender client installation )_

---

<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, 5:19pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/7 "2020-09-28T17:19:09Z")

</div>

You need to make your script executable:

> $ sudo chmod 755 /etc/mender/scripts/Download\_Enter\_01\_yes.py

The second command is “journalctl” not “journaltcl”.

---

<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 28, 2020, 6:43pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/8 "2020-09-28T18:43:51Z")

</div>

Hi @drewmoseley,

Thanks man, I didn’t know I had to make that executable. Dumb me but thanks for tolerating me, lol. I really appreciate your support and quick followups buddy.

Here is the log for the $ sudo journalctl -u mender-client

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/dbc980122b707f5ed3957ae61ac0736e7960b296.png)

The same messages continue forever. What does this log mean ? Is it something related to continuous polling made my the mender-client daemon ?

---

<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, 6:57pm UTC](https://hub.mender.io/t/download-enter-script-not-working/2495/9 "2020-09-28T18:57:08Z")

</div>

Yes, that’s the standard logging you will see as the mender client polls the server for updates.

Drew
