Home > Enterprise >  dependencies reference nonexistent child node
dependencies reference nonexistent child node

Time:04-11

I tried to dockerize my Wagtail Web Application and this error Occurred. I tried docker-compose build there was no errors. after that i tried docker-compose up then this error occurred I really need help on this error. Error-

49a28e66a331_wagtail_landing_web_1 | django.db.migrations.exceptions.NodeNotFoundError: Migration home.0002_create_homepage dependencies reference nonexistent child node ('wagtailcore', '0053_locale_model')
49a28e66a331_wagtail_landing_web_1 exited with code 1

This is the Dockerfile this is the dockerfile of my wagtail site.I'm very new to wagtail and docker .Please guide me if there is an Error

FROM python:3.8.1-slim-buster
RUN useradd wagtail
EXPOSE 80
ENV PYTHONUNBUFFERED=1 \
    PORT=80
ENV PYTHONDONTWRITEBYTECODE 1
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
    build-essential \
    libpq-dev \
    libmariadbclient-dev \
    libjpeg62-turbo-dev \
    zlib1g-dev \
    libwebp-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install "gunicorn==20.0.4"

COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

COPY ./compose/local/web/entrypoint /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod  x /entrypoint

COPY ./compose/local/web/start /start
RUN sed -i 's/\r$//g' /start
RUN chmod  x /start
WORKDIR /app

ENTRYPOINT ["/entrypoint"]

This is the YAML file This is the yaml file of the System

version: "3.7"

services:
  web:
    build:
      context: .
      dockerfile: ./compose/local/web/Dockerfile
    image: wagtail_bootstrap_blog_web
    command: /start
    volumes:
      - .:/app
    ports:
      - 8000:8000
    env_file:
      - ./.env/.dev-sample
    depends_on:
      - db

  db:
    image: postgres:12.0-alpine
    volumes:
      - postgres_data:/var/lib/postgresql/data/
    environment:
      - POSTGRES_DB=wagtail_bootstrap_blog
      - POSTGRES_USER=wagtail_bootstrap_blog
      - POSTGRES_PASSWORD=wagtail_bootstrap_blog

volumes:
  postgres_data:
 

CodePudding user response:

You didn't mention wagtail versions or if this is an upgrade. But that error sounds like this: https://docs.wagtail.org/en/stable/releases/2.11.3.html#run-before-declaration-needed-in-initial-homepage-migration

  • Related