Build Time Out Error

gold1314
HOBBY

3 months ago

I am getting Build time out error. Deployment failed during the build process

View less

Initialization

(00:00)

Build › Build image

(20:00)

Failed to build an image. Please check the build logs for more details.

Deploy

Downloading tornado-6.1.tar.gz (497 kB)

May 12 16:05:32

Preparing metadata (setup.py): started

May 12 16:05:33

Preparing metadata (setup.py): finished with status 'done'

May 12 16:06:59

Downloading tornado-6.0.4.tar.gz (496 kB)

May 12 16:06:59

Preparing metadata (setup.py): started

May 12 16:06:59

Preparing metadata (setup.py): finished with status 'done'

May 12 16:08:27

Downloading tornado-6.0.3.tar.gz (482 kB)

May 12 16:08:28

Preparing metadata (setup.py): started

May 12 16:08:28

Preparing metadata (setup.py): finished with status 'done'

May 12 16:14:43

May 12 16:14:43

Build timed out

$10 Bounty

6 Replies

3 months ago

Could u share more details?

What are you trying to build? Is it a public repo? If so, can you link it?


gold1314
HOBBY

3 months ago

Its not a public repo, I have streamlit front end with MCP Server using FastMCP.

yfinance==0.2.36
asyncio==3.4.3
langchain-mcp-adapters>=0.0.1
langchain-openai>=0.0.5
langgraph>=0.0.20
fastmcp>=0.0.1
streamlit==1.32.0
openai==1.0.0
plotly==5.0.0
python-dotenv==1.0.0
tornado==6.4

gold1314
HOBBY

3 months ago

Docker File

FROM python:3.11-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    libstdc++6 \
    gcc \
    python3-dev \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Upgrade pip and install wheel
RUN pip install --no-cache-dir --upgrade pip wheel setuptools

# Copy requirements first to leverage Docker cache
COPY requirements.txt .

# Install Python dependencies in two steps
RUN pip install --no-cache-dir numpy==1.26.4 pandas==2.0.0 && \
    pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application
COPY . .

# Expose the port
EXPOSE 8501

# Command to run the application
CMD ["streamlit", "run", "web_app.py", "--server.port=8501", "--server.address=0.0.0.0"] 

3 months ago

What detailed error shows up when you click "Please check the build logs for more details."?


gold1314
HOBBY

3 months ago

This is what is being shown in the error

Attachments


3 months ago

For some reason pip install fails.

How I would debug it is:

  • split the pip install commands into two separate lines:
    ```
    RUN pip install --no-cache-dir numpy==1.26.4 pandas==2.0.0
    RUN pip install --no-cache-dir -r requirements.txt
    ```

  • This would allow to narrow down the culprit (it's more probable that it's something in requirements.txt but worth confirming)

  • Depending on the result debug further: look for a typo or proper versioning, use verbose mode to see more helpful errors

Have you tried the same Dockerfile locally?


Build Time Out Error - Railway Help Station