How to read this page

Each row is a message or symptom the code produces, and what to change. If your message is not here, check the application log and the error text in the JSON reply.

Starting and signing in

SymptomCause and fix
Opening the home page shows the setup wizard againSetup is complete only when the database file exists and at least one administrator exists. Finish the wizard or restore the database.
The app starts in development modeDEBUG defaults to true. Set DEBUG=false.
Changes to .env do nothingOnly the variables listed on the Configuration page are read. SECRET_KEY, DATABASE_URI, FLASK_ENV and similar are ignored. Edit config/mlstudio_config.json.
Port already in useStart with --port <number> or set PORT.
Too many sign in attemptsSign in is limited to 5 per minute and registration to 3 per minute. Wait a minute.
API reply 401The route needs you to be signed in. Send X-API-Key, or sign in.
API reply 403 on a projectOnly the owner or an administrator can read it. Ask the owner to add you as a collaborator.

Projects

SymptomCause and fix
Creating a project returns 400The project name already exists. Names are unique across the installation.
Create project with dataset returns 429You created a project less than 5 seconds ago. Wait and retry.
A deleted project's folder is still thereDelete removes database records and workflows, not the folder or the virtual environment.
A package cannot be uninstalledpip, setuptools and wheel are protected.

Files and datasets

MessageCause and fix
Tabular data support is unavailable in the current Python environmentpandas cannot be loaded in the environment. Install or repair pandas there.
Kaggle not configured (503)No administrator Kaggle credentials. Add them on the dataset marketplace admin page or set KAGGLE_USERNAME and KAGGLE_API_KEY.
A path is rejectedPaths containing .. are refused.
Uploaded file has a different nameNames are made safe, and a duplicate gets _1 added.

Workflows and runs

MessageCause and fix
Run start returns 400 with preflight detailsThe preflight check failed. Fix the listed nodes, then run again.
Run mode refusedOnly mode full runs. Debug, from_node, node, from_node_id and breakpoints are not accepted.
Workflow has no generated code (400)Webhook and schedule starts need generated code. Save and generate code in the editor first.
Webhook token returns 404The token is unknown or was revoked or rotated. Create a new one.
Schedule never firesAPScheduler is missing, or the app was not running at that time.
A template workflow lands in the wrong projectPass project_id when using a template through the API. Without it the first project in the database is used.
Experiment stays runningA status read marks a run failed after 2 hours. An administrator can call POST /api/v1/experiments/cleanup-stuck to fail runs older than 1 hour.
Cancel returns success falseThe experiment is not running.

Connections

MessageCause and fix
Local/private hosts are blocked for securityThe target is on localhost or a private network. If that is intended, set the matching *_ALLOW_PRIVATE_NETWORK variable to 1.
MLServer calls failCheck ml_server_url. The code default port is 6000 but MLServer listens on 5008 by default.
Stored secrets cannot be read after a restoreThe encryption key changed. Restore the saved key.
Community joins failCheck COMMUNITY_URL and COMMUNITY_API_KEY, and the private network switch if it is local.

MLServer

CodeCause and fix
BUNDLE_MISSING_SCRIPTThe bundle ZIP has no scoring_script.py.
BUNDLE_TOO_LARGELarger than max_bundle_size_mb (default 500).
MODEL_NOT_ACTIVE (409)The model is not active. It may still be building, awaiting approval, rejected or retired.
MODEL_CIRCUIT_OPEN (503)The model failed repeatedly. Wait for retry_after seconds, then fix the model.
INSUFFICIENT_ROLE, MODEL_SCOPE_ERRORThe token's role or model scope is too narrow. A developer can create only consumer tokens.
TOKEN_EXPIREDSign in again or create a new token.
Server will not start in productionsecret_key in files without MLSERVER_SECRET_KEY. Set the variable.