Unknown Error Starting a Railway container
forrest-umkmall
HOBBYOP

4 months ago

I'm getting an unknown error trying to start a lightdash image with dbt and have had it a few times. The console says to reach out if I continue to see issues. My docker file is:

# Dockerfile for Lightdash with embedded dbt project
FROM lightdash/lightdash:latest

# Set working directory for dbt project
WORKDIR /usr/app/dbt

# Copy dbt project files from project root
COPY dbt/ ./

# Install Python and dbt to compile the project and generate manifest.json
USER root
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv && \
    rm -rf /var/lib/apt/lists/* && \
    pip3 install --no-cache-dir --break-system-packages dbt-core dbt-postgres

# Generate manifest.json at build time
# dbt parse generates the manifest without needing database connection
RUN dbt deps --profiles-dir . && \
    dbt parse --profiles-dir .

# Set environment variables for Lightdash
ENV DBT_PROJECT_DIR=/usr/app/dbt

# Switch back to lightdash user for security
USER lightdash

# Expose the Lightdash port
EXPOSE 8080
Solved

2 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


4 months ago

Hello,

You have since deleted the service in question. If you encounter this issue again with a new service, please reopen the thread


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...