Recreating SMath Database

In some rare cases, such as a lost admin password or internal data inconsistency, it may be required to recreate the Local Licensing Server database.

It may be performed as follows:

  • Navigate to the folder from where you initialized your server application — this is where your compose file is stored

  • Stop the server application by calling

    docker compose down
    
  • After the server application is stopped, you need to clean up the docker volume containing the server database. To do this, you first need to find out this volume's name. It may be discovered by calling

    docker volume ls
    
  • The previous command will show you all docker volumes on your machine. Please find the one called XXX_postgres-data-XXX, where XXX is most likely your company name. Remove it by calling

    docker volume rm XXX_postgres-data-XXX
    
  • Make sure the volume has been deleted by calling one more time

    docker volume ls
    
  • Your database is cleaned now and in order to recreate it you need to start your server application over again by calling

    docker compose up -d
    

Note: Your database is empty now and it is necessary to configure admin password over again and configure your license on Licenses page as it is described in your delivery instruction.