1.1.F Reset BOA DDBB - Daniel-Brosnan-Blazquez/vboa GitHub Wiki
Introduction
This procedure covers the action to reset BOA DDBB.
Be careful when you perform this operation because this will erase all the stored data.
Do not perform this operation if you do not know the implications.
Pre-conditions
- An available BOA environment is ready to use.
Procedure
- Access to the BOA environment.
- If containers are not running, start containers (as root):
Note: the names of the containers may differ between environments (check with docker container list).
docker start boa_app_dev boa_database_dev
- Reset the DDBB:
Note: the names of the containers may differ between environments (check with docker container list).
docker exec -it -u root boa_app_dev /bin/bash
boa_init.py -e -o -s -u
chown boa:boa /log/*
Note: if you see the following message:
The execution of the command init_ddbb.sh -h boa_database_dev -p 5432 -f /datamodel/eboa_data_model.sql has ended unexpectedly with the following error: b'' and the following output: b'ERROR: There are 1 active connections to the DDBB\n'
Restart the containers as follows and try again the reset of the DDBB following the corresponding step:
Note: the names of the containers may differ between environments (check with docker container list).
docker restart boa_app_dev boa_database_dev
Now, the DDBB should not contain any data.