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 ./ backup

2. Run the script.

$ ./

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.

/ 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":"","port":4350,"protocol":"http","id":"bb94a6313867:34:ka6uub4p","uri":"","address":"","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.