PAW - backup on Linux not working.

Post Reply
ralph007
Posts: 15
Joined: Mon Apr 07, 2014 4:02 pm
OLAP Product: Cognos Express
Version: 10.1.1
Excel Version: 2010

PAW - backup on Linux not working.

Post by ralph007 » Thu May 09, 2019 7:55 am

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

dr.nybble
Posts: 135
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.

Post by dr.nybble » Thu May 09, 2019 12:55 pm

For now, edit scripts/backup.sh and comment out these lines by putting # in front of each:

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

Post Reply