Skip to content

Wallabag Database Migration After Version Upgrade

Summary

After upgrading certain versions of Wallabag, there may be a need for a database migration. This can result in either of the following:

  • SQL or SQLITE errors within the docker-compose logs
  • Blank page when navigating to Wallabag

How to Migrate Database After Upgrade

There is a section of the Wallabag instructions related to upgrading that provide steps to migrate the database, however, they don't seem to clear things up that well. In order to properly do the database migration, use the following steps:

  • Open a terminal and SSH into the instance running Wallabag.
  • Run docker ps to find the name of the container.
  • Run the following command:
docker exec -t NAME_OR_ID_OF_YOUR_WALLABAG_CONTAINER /var/www/wallabag/bin/console doctrine:migrations:migrate --env=prod --no-interaction

After running this command, the output should show a message indicating a successful database migration. Navigating to Wallabag should now display the login screen.

References