Skip to content

[Support Request]: Restoring database in Docker #3009

@pcapiod

Description

@pcapiod

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi, the issue I am facing is related to a transfer from a docker setup with a bare-metal database (Mariadb) to a full docker setup (Mariadb).
The export of the database was done using mysqldump to an .sql file.
When importing the .sql file to the new database, I could see all the shelves/books and pages I have created with the good users in the database tables. However when I want to login using my previous credentials, I get "An Unknown error occured". I have tried different credentials (either different email or password) which I ended getting "wrong credentials" (that makes sense).
To restore the database, this is what I did:

  • Run the docker-compose file docker-compose up -d
  • Enter the container docker exec -it bookstack_db bash
  • Import the database mysql -u bookstack -p bookstackapp < bookstack_backup.sql
  • Restart the docker container (there was no apparent error in the logs)
  • Login

If you need more information, please, let me know.

Exact BookStack Version

v21.08.3-ls161

Log Content

No response

PHP Version

No response

Hosting Environment

Arcolinux, Kernel 5.10LTS, Gnome desktop, installed with a docker container (linuxserver), Mariadb database.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions