# HomeyScript problem

**URL:** <https://community.homey.app/t/homeyscript-problem/45030>\
**Category:** Questions & Help\
**Created:** [March 21, 2021, 5:24pm UTC](https://community.homey.app/t/homeyscript-problem/45030 "2021-03-21T17:24:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Buran](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_buran/32/107750_2.png) [@Thomas\_Buran](https://community.homey.app/u/Thomas_Buran)\
**Post date:** [March 21, 2021, 5:24pm UTC](https://community.homey.app/t/homeyscript-problem/45030/1 "2021-03-21T17:24:00Z")

</div>

Hello. My flows don’t works. I have some pause icon here. What’s going on? Thanks.

 ![IMG_20210321_182053](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/4117596042d8eaadc42c0d7d28dbbd2b4098c76f.jpeg)

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [March 21, 2021, 5:25pm UTC](https://community.homey.app/t/homeyscript-problem/45030/2 "2021-03-21T17:25:33Z")

</div>

That could mean the app is disabled, or didn’t start properly. Have you tried restarting the Homeyscript app?

---

<div class="post-metadata">

**Author:** ![Thomas\_Buran](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_buran/32/107750_2.png) [@Thomas\_Buran](https://community.homey.app/u/Thomas_Buran)\
**Post date:** [March 21, 2021, 5:38pm UTC](https://community.homey.app/t/homeyscript-problem/45030/3 "2021-03-21T17:38:45Z")

</div>

Thanks! It’s working now. I really need to save all my scripts. 😃

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [March 22, 2021, 6:08pm UTC](https://community.homey.app/t/homeyscript-problem/45030/4 "2021-03-22T18:08:29Z")

</div>

When this happens again check the memory usage of homeyscript app. In my situation some scripts were using statements with memory leak, so memory usage of homey script app goes up. When it hits around 80 mb the homeyscript app is paused by homey.

---

<div class="post-metadata">

**Author:** ![tb1962](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1962/32/7888_2.png) [@tb1962](https://community.homey.app/u/tb1962)\
**Post date:** [March 22, 2021, 7:46pm UTC](https://community.homey.app/t/homeyscript-problem/45030/5 "2021-03-22T19:46:27Z")

</div>

@Thomas_Buran, Just a tip: if you need a script to backup your scripts, here is a script i use to send all scripts to a backup server. You can use this script with HomeyScript. Schedule it to run every night and you have always a recent backup

```
'use strict';
function execute() {
Homey.apps.getApp({id:'com.athom.homeyscript/'}).then(homeyScript => {
    homeyScript.apiGet('script').then(async scripts => {
        var len = scripts.length
        for (var x = 0; x < len;++x) {
            const scriptName = scripts[x]    

            await homeyScript.apiGet('script/'+scriptName).then(data => {
                fetch('http://192.168.1.222:3002/backupscripts',{
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    body: JSON.stringify({
                        scriptName: scriptName,
                        scriptData: data.code
                    })
                }).then(async (response) => await response.text()).catch(e => {
                    Homey.apps.getApp({id:'nl.nielsdeklerk.log'}).then(simpleLog => {
                        simpleLog.apiPut('addlog',{log: `Unable to send script ${scriptName} to backup server`,group:'SCRIPT BACKUP'});
                    })
                });
            })
        }
    })
});
}
execute();
```

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [March 22, 2021, 8:00pm UTC](https://community.homey.app/t/homeyscript-problem/45030/6 "2021-03-22T20:00:39Z")

</div>

Your scripts are also backupped as part of a Homey backup. However, you cannot restore them individually. that would require you to backup, restore another backup with the scrips, download the scripts you need, restore the last backup and upload your scripts again. Bothersome, but feasible. I have but a few, so I cut and paste to file when I change them.
