Provision and Preset are not permanent

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?

Which version of Genie are you using?

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.

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):

#!/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

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.

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

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

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