Skip to content

Docker startup fails due to interactive input in seed command #4848

@Mahendra1706

Description

@Mahendra1706

Problem

When running EvalAI using Docker, the Django container fails to start due to an EOFError raised from an interactive input() call in the seed command.

This happens because python manage.py seed is executed automatically during container startup in a non-interactive environment.

Steps to Reproduce

  1. Clone the EvalAI repository
  2. Run docker compose up --build
  3. Observe the Django container exit with:

Root Cause

The seed script prompts for user input when existing database data is detected. Docker containers are non-interactive, so input() raises EOFError.

Expected Behavior

The seed command should not require interactive input in Docker or CI environments.

Suggested Fix

Skip database reseeding safely in non-interactive environments instead of prompting for input or crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions