Diffblue upgrade instructions
This page explains how to upgrade to a new release of Diffblue Cover.
- Ensure that the Diffblue service is installed and running on the target.
- There is 5 GB of free storage space on the target.
- You should also ensure you have the following files from the new installation:
- installation instructions.
Copy the latest version of diffblue.tar.gz and install-diffblue.py to your existing installed system.
Unpack the tar file. For example:
tar -xvf release-1.10.0.tar
Stop the Diffblue service:
sudo service diffblue stop
Ensure that no Diffblue services are running:
You should see no running containers. If there are containers still running, try to stop them again. If that fails, please contact customer support.
Run the install script:
sudo python install-diffblue.py
You might receive this error:
Starting Diffblue server. ---- ERROR: The start of the Diffblue server has FAILED. Details: Warning: diffblue.service changed on disk. Run 'systemctl daemon-reload' to reload units.
If you do, reload the Diffblue service using systemctl:
sudo systemctl daemon-reload
Check the application server logs to verify that the migration was successfull:
sudo docker logs -f diffblue_application-server_1
You should see a response like this:
yarn run v1.6.0 $ npm run migrate && node build/server.js > firstname.lastname@example.org migrate /application-server > DATABASE_URL=$DIFFBLUE_MONGODB_CONN_STRING db-migrate up [INFO] Processed migration 20180906110503-add-function-foriegn-key-to-job [INFO] Processed migration 20180910101850-add-goals-foreign-key-to-line [INFO] Processed migration 20180910141333-add-analysis-finished-to-line [INFO] Processed migration 20180910142547-add-included-to-line [INFO] Done info: Log level: debug info: Connecting to MongoDB... info: Listening on port 8080 error: Error connecting to RabbitMQ Error: connect ECONNREFUSED 172.20.0.2:5672 at Object._errnoException (util.js:992:11) at _exceptionWithHostPort (util.js:1014:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14) error: Retrying in 10 seconds info: Connected to MongoDB! info: MongoDB connection opened! Database connected Admin Database connected
If you see an error, please contact us.
The installation procedure automatically starts the Diffblue service. To check, list the Docker containers again: