Failure by Import

Hi everybody,
I am getting crazy. I deployed grampsweb with docker compose using this yaml https://raw.githubusercontent.com/gramps-project/gramps-web-docs/main/examples/docker-compose-base/docker-compose.yml
I do have npm, and yesterday it was working perfectly fine.
Today I wanted to export, and it did failed, to I thought (bah, maybe I messed something, lets start over) so i deleted the docker and deployed it again.
Now I cannot import the tree. Doesnt matter wich filetype I try (gedcom xml) I always get a fail:
“failed importing gramps file”.
The docker logs grampsweb_celery say:

[2025-04-22 19:26:46,039: INFO/MainProcess] Task gramps_webapi.api.tasks.import_file[78cca0cb-81c2-4b5d-b9a7-c7c2bc98c075] received
[2025-04-22 19:26:46,121: ERROR/ForkPoolWorker-1] Task gramps_webapi.api.tasks.import_file[78cca0cb-81c2-4b5d-b9a7-c7c2bc98c075] raised unexpected: ValueError('Failed importing gramps file')
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/celery/app/trace.py", line 453, in trace_task
    R = retval = fun(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/gramps_webapi/util/celery.py", line 20, in __call__
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/tasks.py", line 211, in import_file
    raise ValueError(f"Failed importing {extension} file")
ValueError: Failed importing gramps file

Anyone has any clue what can be going on here?

Info of the sstem:
Gramps 5.2.4
Gramps Web API 2.9.1
Gramps Web Frontend 25.4.0
Gramps QL 0.4.0
Sifts 1.0.0
locale: en
multi-tree: false
task queue: true
OCR: true
chat: false

GNU/Linux Ubuntu 24.04

Again, yesterday I managed to make it work, load the file and so on…and now , this :_(

EDIT: Oh, I just noticed that everytime I try to IMPORT, a copy of the tree is created in EXPORT inside the volume gramps_gramps_db/_data/92d9e5a5-3253-4d38-8018-a65cfe87a183:

Perhaps the Gramps Web and Celery containers don’t both have access to the same EXPORT_DIR directory (in the default compose files, this is inside the gramps_cache volume).

Hello everybody,
clearly something related to what @davidMstraub answered, as I deleted everything and started over with a new system…and now it is working.

Sorry for the mess here. Thanks for the support!

1 Like