---project: Odoo Acme Corporationtags: - upgrade-document---The playbook supports two modes: **test** and **production**. When executing the production mode the production database will be replaced with the upgraded database at the very end.## Prepare 📝Copy the production database to the upgrade environment. ```bashcd "$HOME/Ansible-Build"task upgrade-odoo acme dump-databasetask upgrade-odoo acme dump-filestoretask upgrade-odoo acme drop-database```## Upgrade ⬆️Run the **test** upgrade.```bashtask upgrade-odoo acme upgrade-testtask upgrade-odoo acme clear-assetstask upgrade-odoo acme inittask upgrade-odoo acme uninstalltask upgrade-odoo acme updatetask upgrade-odoo acme configure-test```Run the **production** upgrade.```bashtask upgrade-odoo acme stop-containertask upgrade-odoo acme upgrade-productiontask upgrade-odoo acme clear-assetstask upgrade-odoo acme inittask upgrade-odoo acme uninstalltask upgrade-odoo acme updatetask upgrade-odoo acme configure-production```If **production** then replace the Ansible prod host with the upgrade host vars. Update the Nginx proxy configuration.## Configure ⚙️Open in browser and login.```bashtask upgrade-odoo acme restarttask upgrade-odoo acme browse```Update snippets.```bashcd "$HOME/Odoo-Build"source task load-dotenv acmetask disable-snippet $TARGET_HOST snippets/sale.report_saleorder_document.add_note_space.xmltask install-snippet $TARGET_HOST snippets/sale.report_saleorder_document.add_signature_note.xml```## Testing 🔬Run the test cases and process the feedback.If **production** mode run the "click everywhere" action.## Production 🚀Rename the databases and filestore if **production** mode.```bashtask upgrade-odoo acme rename-databasetask upgrade-odoo acme rename-filestore```Run the Ansible Odoo playbook with the new configuration.Deploy the updated Nginx configuration including the Postgres and Odoo exporter with Ansible.## Cleanup 🧹Ensure the backups jobs are defined correctly.Remove the old Odoo container, volume, data and database.## Troubleshooting 💡==Document and resolve upgrade issues.==### ==Title of the issue== 🟥**Problem**==How to reproduce the problem?==**Solution**==What is the solution to resolve the issue?==