Hi,
I'm started testing PAW on Linux. Currently using version 2.0.39. I want to test and do the backup of the content before to upgrade to 2.0.41 but script backup.sh not working.
In logs returning me this message in mongo folder:
failed: error connecting to db server: no reachable servers
I'm using:
Red Hat Enterprise Linux Server 7.4
Docker version 18.03.1-ce, build 9ee9f40
Any ideas??
Thanks in advance
PAW - backup on Linux not working.
-
- MVP
- Posts: 160
- Joined: Wed Aug 17, 2011 3:51 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: Excel 2007
Re: PAW - backup on Linux not working.
For now, edit scripts/backup.sh and comment out these lines by putting # in front of each:
You don't need the hot backup taken unless you are using the backup to migrate to PAW Distributed.
For some reason it seems that Mongo is not reachable by the backup container. Have you tried restarting Mongo? (scripts/paw.sh restart mongo)
Code: Select all
step "Hot backup of mongo for PAW distributed restore"
mkdir -p "${BACKUP_DIR}/mongo"
docker run --rm --network "${PAW_NET}" -v "${BACKUP_DIR}/mongo":/backup:z --user "$TOOL_USER:$TOOL_GROUP" mongo:3.2.10 bash -c "mongodump --host mongo --out /backup &> /backup/backup.log"
tar -czf "${BACKUP_DIR}/mongo.tgz" -C "${BACKUP_DIR}/mongo" .
rm -rf "${BACKUP_DIR}/mongo"
For some reason it seems that Mongo is not reachable by the backup container. Have you tried restarting Mongo? (scripts/paw.sh restart mongo)