The db-migrate.js script has not yet been run.


Issue:  When upgrading to a newer version the installer should run the db-migrate.js script.  If it doesn't for some reason you will get errors like this in the mws logs:

2017-05-08T16:24:40.609-0400    localhost-startStop-1   ERROR  grails.app.conf.BootStrap       0               The db-migrate.js script has not yet been run. Please see the upgrade section of the installation guide for instructions.

This is likely to happen if you have MWS and Mongo running on separate machines.

 

Solution:  You can run the db-migrate.js script manually.  You will need to find the script in /opt/mws/tools/.  You should then copy it to the machine running Mongo.  You can run the script with this syntax:

mongo -u mws_user mws db-migrate.js -p

Tags: migrate, mongo, mongodb, MWS, services, upgrade, web
Last update:
2017-05-12 00:24
Author:
Ben Roberts
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.