Restarting Without Updating

This procedure is used in instances where your server has restarted and PlexTrac is not configured to automatically restart, or if you need to restart PlexTrac for any other reason without updating.
  1. Perform a precautionary backup.

$ sudo ./plextrac_backup_restore.sh backup

2. Run the rebuild.sh script.

$ ./rebuild.sh

3. Tail the database container log.

$ docker logs -f $(docker ps -f name=plextrac_plextracdb -q)

Proceed to the next step when you see the following text.

/entrypoint.sh couchbase-server

4. Exit tailing of the log (Ctrl-Z). Tail the API log with the following:

$ docker logs -f $(docker ps -f name=plextrac_plextracapi -q)

Your instance is ready for the "restore" step below when you output similar to the following (SEE NEXT STEP FOR TROUBLESHOOTING):

Migrating 176 findings at Thu May 14 2020 14:15:08 GMT+0000 (Coordinated Universal Time)
checkForUpdates completed at Thu May 14 2020 14:15:08 GMT+0000 (Coordinated Universal Time)
{"level":30,"time":1589465708600,"pid":34,"hostname":"bb94a6313867","created":1589465704921,"started":1589465708597,"host":"0.0.0.0","port":4350,"protocol":"http","id":"bb94a6313867:34:ka6uub4p","uri":"http://0.0.0.0:4350","address":"0.0.0.0","msg":"server started","v":1}

If instead of the above, you note an "unhandledPromiseRejectionWarning similar to this:

(node:45) UnhandledPromiseRejectionWarning: CouchbaseError: Temporary failure received from server.

Return to the command prompt and enter the following command:

$ docker-compose restart plextracapi

5. If the restart command above was required, repeat step 4.

6. Navigate to your URL and begin work.