vlead / vlabs-openedx-platform

Other
1 stars 0 forks source link

Backup script is not working #25

Open sivashankerN opened 6 years ago

sivashankerN commented 6 years ago

something is wrong with the backup and restore script.

When we do restore and backup in the same vagrant box, backup is not happening with backup script is not working

sudo sh backup

2018-01-24T05:32:51.593+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused couldn't connect to [127.0.0.1] couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed Error: during mongodb service restart

sivashankerN commented 6 years ago

when we comment following lines in backup file

sed -i 's/auth = true/auth = false/g' /etc/mongod.conf
if [ $? -ne 0 ]; then
  echo "Error: Something went wrong during mongod configuration."
  exit 1;
fi
rm /edx/var/mongo/mongodb/mongod.lock
if [ $? -ne 0 ]; then
  echo "Error: during deleting mongodb lock file"
  exit 1;
fi

service mongod restart
if [ $? -ne 0 ]; then
echo "Error: during mongodb service restart"
exit 1;
fi

Then we are able to take backup.

@ksripathi Please check it