Errors during syncing with gramps_web_sync (2)

Version

Gramps 6.0.8
Gramps Web API 3.22.0
Gramps Web Frontend 26.9.0
Gramps QL 0.5.0
Sifts 1.3.1
locale: en
multi-tree: false
task queue: true
OCR: true
chat: false

Issue

While trying to syncing from gramps desktop to dockerized gramps web for the first time, it seems to me nothing is syncing:

When I take a look at the docker container, this is what I can see in the log of grampsweb-grampsweb_celery-1:

Hi,

this is certainly a configuration error on the server side. Can you share your compose file? I suspect the celery container doesn’t have the environment variables.

services:
  grampsweb:
    image: ghcr.io/gramps-project/grampsweb:latest
    restart: unless-stopped
    ports:
      - "5055:5000"

    environment:
      GRAMPSWEB_TREE: "Généalogie de Patrice Legoux"

      GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_RATELIMIT_STORAGE_URI: "redis://grampsweb_redis:6379/1"

      # Replace with a long, random value
      GRAMPSWEB_SECRET_KEY: "xxxxxxxxxxxxxxxxxxxx"

      # Adjust if access is via a domain name
      # GRAMPSWEB_BASE_URL: "https://genealogie.example.fr"
      
      GRAMPSWEB_VECTOR_EMBEDDING_MODEL: nomic-embed-text
      GRAMPSWEB_VECTOR_EMBEDDING_BASE_URL: http://ollama:11434

    volumes:
      - gramps_users:/app/users
      - gramps_database:/root/.gramps
      - G:\:/app/media
      - gramps_index:/app/indexdir
      - gramps_cache:/app/cache
      - gramps_secret:/app/secret

    depends_on:
      - grampsweb_redis

  grampsweb_celery:
    image: ghcr.io/gramps-project/grampsweb:latest
    restart: unless-stopped
    environment:
      GRAMPSWEB_VECTOR_EMBEDDING_MODEL: nomic-embed-text
      GRAMPSWEB_VECTOR_EMBEDDING_BASE_URL: http://ollama:11434

    environment:
      GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"

    volumes:
      - gramps_users:/app/users
      - gramps_database:/root/.gramps
      - gramps_media:/app/media
      - gramps_index:/app/indexdir
      - gramps_cache:/app/cache
      - gramps_secret:/app/secret

    depends_on:
      - grampsweb_redis

    command: >
      celery -A gramps_webapi.celery worker
      --loglevel=INFO
      --concurrency=2

  grampsweb_redis:
    image: redis:7-alpine
    restart: unless-stopped
    volumes:
      - gramps_redis:/data

  ollama:
    image: ollama/ollama
    container_name: ollama
    ports:
      - "11434:11434"
    volumes:
      - ollama_data:/root/.ollama

volumes:
  gramps_users:
  gramps_database:
  gramps_media:
  gramps_index:
  gramps_cache:
  gramps_secret:
  gramps_redis:
  ollama_data:

Confirmed.

Your celery container has a duplicate environment block and is missing several of the variables the other container has. Look at the examples in our docs: they use

    environment:
      <<: *grampsweb-env  # YAML merge key copying the grampsweb environment config

If you don’t use that, you have to duplicate the whole env block.

Thank you, riduculous issue!