I have completely removed everything (docker compose down --volumes --rmi all
and docker system prune --all
). So starting with an empty system and yet I see some strange errors in the logs:
$ docker logs grampsweb_celery
(__main__.py:8): Gtk-CRITICAL **: 15:13:48.085: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Two Gramps application data directories exist.
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade e5e738d09fa7 -> e176543c72a8, Add tree column to User
ERROR [alembic.util.messaging] Online migration expected to match one row when updating 'e5e738d09fa7' to 'e176543c72a8' in 'alembic_version'; 0 found
FAILED: Online migration expected to match one row when updating 'e5e738d09fa7' to 'e176543c72a8' in 'alembic_version'; 0 found
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/app/src/gramps_webapi/__main__.py", line 351, in <module>
cli(
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/gramps_webapi/__main__.py", line 225, in migrate_db
subprocess.run(cmd, env=env, check=True)
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'alembic', 'upgrade', 'head']' returned non-zero exit status 255.
What causes the “Two Gramps application directories exists” ?
and
why running a migration if there no old database?
A little later in the log:
[2025-04-27 15:14:06,392: INFO/MainProcess] Connected to redis://grampsweb_redis:6379/0
[2025-04-27 15:14:06,404: INFO/MainProcess] mingle: searching for neighbors
[2025-04-27 15:14:07,429: INFO/MainProcess] mingle: all alone
[2025-04-27 15:14:07,457: INFO/MainProcess] celery@63268c105030 ready.
[2025-04-27 15:15:09,521: INFO/MainProcess] Task gramps_webapi.api.tasks.import_file[32ef6e6a-d077-47a3-9231-baffd9ef0ee6] received
[2025-04-27 15:15:16,583: ERROR/ForkPoolWorker-1] Task gramps_webapi.api.tasks.import_file[32ef6e6a-d077-47a3-9231-baffd9ef0ee6] raised unexpected: ValueError("Database path '129d0fa3-6ada-49d5-a145-50862339765d'for family tree 'unnamed tree' not found in database directory /root/.local/share/gramps/grampsdb")
Let me know if you want the full logs
Regards
Claus