instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.43k stars 2.43k forks source link

ActiveRecord::InvalidForeignKey in Login::CanvasController#create #2144

Closed emmanuelpineda closed 1 year ago

emmanuelpineda commented 1 year ago

Summary:

After doing the installation on my local computer, when I logged in for the first time, I got this error:

image

Steps to reproduce:

  1. Download the repository
  2. Run the command: ./script/docker_dev_setup.sh
  3. Run the initial setup script (https://community.canvaslms.com/t5/Canvas-Question-Forum/Unable-to-get-Login-Credentials-When-install-canvas-using-docker/td-p/503423)
  4. Go to http://canvas.docker/login/canvas from the browser
  5. Login

Expected behavior:

Allow login

Actual behavior:

Does not allow login

Additional notes:

During the installation, I chose the option to migrate database

emmanuelpineda commented 1 year ago

After restarting the Docker container, it worked fine.