Page tree
Skip to end of metadata
Go to start of metadata

Problem

Important

Use this guide only for the first login after the installation.

This procedure will erase all your data saved in motion database


The Motion Web Gui show the generic error at the first login after the installation.

Solution

During the installation the application tried to create the tables inside the motion database without a successful result.

  1. Connect to database with root credentials

    mysql -u root -p<password>
  2. Check the number of table created in the motion database: the correct number is around 180
  3. If the number of table in the database is not correct, you need to delete the database:

    DROP DATABASE motion
  4. Create the motion database:

    CREATE DATABASE motion;
  5. Restart motion service

    pm2 restart motion