Error when importing permission schemes

I’m trying to run the command ‘mattermost permissions import ./permission_schemes/default.jsonl’ to import default permission schemes automatically when running the mattermost server. I modified the makefile to run the command when running ‘make run-server.’ However, I’m getting this error message when running ‘make run-server’ now:
“This API endpoint is not accessible as required migrations have not yet completed.”
Does anyone have any know what may be causing this? Currently, I’m on a forked version of mattermost 5.35 (latest version), but I also had the error before updating. Here is the console output leading up to the error:

run-server-console-output

Thanks