# Provision and Preset are not permanent

**URL:** <https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523>\
**Category:** Uncategorized\
**Created:** [December 24, 2019, 6:59am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523 "2019-12-24T06:59:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sthasanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sthasanto/32/148_2.png) [@sthasanto](https://forum.genieacs.com/u/sthasanto)\
**Post date:** [December 24, 2019, 6:59am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/1 "2019-12-24T06:59:12Z")

</div>

I had configured provision and preset script in genieacs but it seems they are not permanent. These scripts are getting deleted automatically. Is there any way to store these script permanent?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 24, 2019, 4:46pm UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/2 "2019-12-24T16:46:59Z")

</div>

Which version of Genie are you using?

---

<div class="post-metadata">

**Author:** ![sthasanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sthasanto/32/148_2.png) [@sthasanto](https://forum.genieacs.com/u/sthasanto)\
**Post date:** [April 20, 2020, 3:58am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/3 "2020-04-20T03:58:52Z")

</div>

Hello, I am using genieacs 1.1.3  
I noticed that every time the services gets restarted or server gets rebooted preset and provisions are gone.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [April 20, 2020, 6:23pm UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/4 "2020-04-20T18:23:59Z")

</div>

Do you have everything setup correctly?

Are you restarting redis when you restart Genie?

My restart script looks like this (we are **NOT** using a systemd based server):

```bash
#!/bin/sh

function isRoot() {
    if ["$(id -u)" == "0"]; then
        echo true
    else
        echo false
    fi
}

if [$(isRoot) == false]; then
	echo "Sorry, you are not root."
	exit 1
fi

/etc/rc.d/rc.genieacs-cwmp stop
/etc/rc.d/rc.genieacs-nbi stop
/etc/rc.d/rc.genieacs-fs stop
/etc/rc.d/rc.mongodb stop
/etc/rc.d/rc.redis stop

/etc/rc.d/rc.redis start
/etc/rc.d/rc.mongodb start
/etc/rc.d/rc.genieacs-fs start
/etc/rc.d/rc.genieacs-nbi start
/etc/rc.d/rc.genieacs-cwmp start

```

---

<div class="post-metadata">

**Author:** ![sthasanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sthasanto/32/148_2.png) [@sthasanto](https://forum.genieacs.com/u/sthasanto)\
**Post date:** [April 21, 2020, 3:21am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/5 "2020-04-21T03:21:21Z")

</div>

Dear Sir,

I just faced the same issue again. But I don’t remember restarting any services. So I checked the stats in haproxy and found that uptime of CWMP service has changed in servers 2-5. So I login to server and checked the uptime of CWMP service and it hasn’t restarted since 1 days. For understanding I have attached some screenshot.

Thank you for your quick response.

 ![genieacs_stats](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/63978a43d66f3e1bc5fdf25c57fd8392ce9dff0f.png)

---

<div class="post-metadata">

**Author:** ![sthasanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sthasanto/32/148_2.png) [@sthasanto](https://forum.genieacs.com/u/sthasanto)\
**Post date:** [April 21, 2020, 3:22am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/6 "2020-04-21T03:22:21Z")

</div>

![cwmp_as3](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/4402fdfefa4879937cdf0c675f4b8c16ee849637.png)

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [April 21, 2020, 3:12pm UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/7 "2020-04-21T15:12:22Z")

</div>

You are using a HA proxy. Are all of your cwmp servers configured to the same Mongo and Redis instance?

---

<div class="post-metadata">

**Author:** ![sthasanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sthasanto/32/148_2.png) [@sthasanto](https://forum.genieacs.com/u/sthasanto)\
**Post date:** [April 23, 2020, 5:00am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/8 "2020-04-23T05:00:15Z")

</div>

Dear Sir,  
I have configured Redis in all the servers where CWMP services are configured. Also all CWMP servers are configured to same MongoDB.

---

<div class="post-metadata">

**Author:** ![sthasanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sthasanto/32/148_2.png) [@sthasanto](https://forum.genieacs.com/u/sthasanto)\
**Post date:** [May 3, 2020, 3:05am UTC](https://forum.genieacs.com/t/provision-and-preset-are-not-permanent/523/10 "2020-05-03T03:05:19Z")

</div>

It seems there was some issue in MongoDB. Now the issue is fixed.
