Trying to setup grampsweb (I have the desktop version 5.1.6, Windows). Docker-logs show the errors below. I am running docker on a synology-nas.
grampsweb | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
grampsweb | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
grampsweb | ERROR [alembic.util.messaging] Requested revision 84960b7d968c overlaps with other requested revisions e176543c72a8
grampsweb | FAILED: Requested revision 84960b7d968c overlaps with other requested revisions e176543c72a8
grampsweb | Traceback (most recent call last):
grampsweb | File "<frozen runpy>", line 198, in _run_module_as_main
grampsweb | File "<frozen runpy>", line 88, in _run_code
grampsweb | File "/app/src/gramps_webapi/__main__.py", line 202, in <module>
grampsweb | cli(
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1157, in __call__
grampsweb | return self.main(*args, **kwargs)
grampsweb | ^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1078, in main
grampsweb | rv = self.invoke(ctx)
grampsweb | ^^^^^^^^^^^^^^^^
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1434, in invoke
grampsweb | return ctx.invoke(self.callback, **ctx.params)
grampsweb | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 783, in invoke
grampsweb | return __callback(*args, **kwargs)
grampsweb | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb | File "/usr/local/lib/python3.11/dist-packages/click/decorators.py", line 33, in new_func
grampsweb | return f(get_current_context(), *args, **kwargs)
grampsweb | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb | File "/app/src/gramps_webapi/__main__.py", line 118, in migrate_db
grampsweb | subprocess.run(cmd, env=env, check=True)
grampsweb | File "/usr/lib/python3.11/subprocess.py", line 571, in run
grampsweb | raise CalledProcessError(retcode, process.args,
grampsweb | subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'alembic', 'upgrade', 'head']' returned non-zero exit status 255.
grampsweb_celery | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb_celery | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1434, in invoke
grampsweb_celery | return ctx.invoke(self.callback, **ctx.params)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 783, in invoke
grampsweb_celery | return __callback(*args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/decorators.py", line 33, in new_func
grampsweb_celery | return f(get_current_context(), *args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/app/src/gramps_webapi/__main__.py", line 118, in migrate_db
grampsweb_celery | subprocess.run(cmd, env=env, check=True)
grampsweb_celery | File "/usr/lib/python3.11/subprocess.py", line 571, in run
grampsweb_celery | raise CalledProcessError(retcode, process.args,
grampsweb_celery | subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'alembic', 'upgrade', 'head']' returned non-zero exit status 255.
grampsweb_celery | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
grampsweb_celery | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
grampsweb_celery | ERROR [alembic.util.messaging] Requested revision 84960b7d968c overlaps with other requested revisions e176543c72a8
grampsweb_celery | FAILED: Requested revision 84960b7d968c overlaps with other requested revisions e176543c72a8
grampsweb_celery | Traceback (most recent call last):
grampsweb_celery | File "<frozen runpy>", line 198, in _run_module_as_main
grampsweb_celery | File "<frozen runpy>", line 88, in _run_code
grampsweb_celery | File "/app/src/gramps_webapi/__main__.py", line 202, in <module>
grampsweb_celery | cli(
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1157, in __call__
grampsweb_celery | return self.main(*args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1078, in main
grampsweb_celery | rv = self.invoke(ctx)
grampsweb_celery | ^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb_celery | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb_celery | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1434, in invoke
grampsweb_celery | return ctx.invoke(self.callback, **ctx.params)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 783, in invoke
grampsweb_celery | return __callback(*args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/decorators.py", line 33, in new_func
grampsweb_celery | return f(get_current_context(), *args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/app/src/gramps_webapi/__main__.py", line 118, in migrate_db
grampsweb_celery | subprocess.run(cmd, env=env, check=True)
grampsweb_celery | File "/usr/lib/python3.11/subprocess.py", line 571, in run
grampsweb_celery | raise CalledProcessError(retcode, process.args,
grampsweb_celery | subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'alembic', 'upgrade', 'head']' returned non-zero exit status 255.
grampsweb_celery | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
grampsweb_celery | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
grampsweb_celery | ERROR [alembic.util.messaging] Requested revision 84960b7d968c overlaps with other requested revisions e176543c72a8
grampsweb_celery | FAILED: Requested revision 84960b7d968c overlaps with other requested revisions e176543c72a8
grampsweb_celery | Traceback (most recent call last):
grampsweb_celery | File "<frozen runpy>", line 198, in _run_module_as_main
grampsweb_celery | File "<frozen runpy>", line 88, in _run_code
grampsweb_celery | File "/app/src/gramps_webapi/__main__.py", line 202, in <module>
grampsweb_celery | cli(
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1157, in __call__
grampsweb_celery | return self.main(*args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1078, in main
grampsweb_celery | rv = self.invoke(ctx)
grampsweb_celery | ^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb_celery | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
grampsweb_celery | return _process_result(sub_ctx.command.invoke(sub_ctx))
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1434, in invoke
grampsweb_celery | return ctx.invoke(self.callback, **ctx.params)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 783, in invoke
grampsweb_celery | return __callback(*args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/usr/local/lib/python3.11/dist-packages/click/decorators.py", line 33, in new_func
grampsweb_celery | return f(get_current_context(), *args, **kwargs)
grampsweb_celery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grampsweb_celery | File "/app/src/gramps_webapi/__main__.py", line 118, in migrate_db
grampsweb_celery | subprocess.run(cmd, env=env, check=True)
grampsweb_celery | File "/usr/lib/python3.11/subprocess.py", line 571, in run
grampsweb_celery | raise CalledProcessError(retcode, process.args,
grampsweb_celery | subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'alembic', 'upgrade', 'head']' returned non-zero exit status 255.
And my docker-compose:
version: "3.8"
services:
grampsweb: &grampsweb
image: ghcr.io/gramps-project/grampsweb:latest
container_name: grampsweb
restart: unless-stopped
ports:
- 5515:5000
environment:
GRAMPSWEB_TREE: "My Family"
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
depends_on:
- grampsweb_redis
volumes:
- ./config/users:/app/users # persist user database
- ./config/index:/app/indexdir # persist search index
- ./config/thumb_cache:/app/thumbnail_cache # persist thumbnails
- ./config/cache:/app/cache # persist export and report caches
- ./config/secret:/app/secret # persist flask secret
# - ./config/db:/root/.gramps/grampsdb # persist Gramps database
# - ./config/media:/app/media # persist media files
- ./config/tmp:/tmp
- /volume1/homes/jaysea/Documents/Personal/GRAMPS/media/:/app/media
- /volume1/homes/jaysea/Documents/Personal/GRAMPS/grampsdb/:/root/.gramps/grampsdb
grampsweb_celery:
<<: *grampsweb # YAML merge key copying the entire grampsweb service config
ports: []
container_name: grampsweb_celery
depends_on:
- grampsweb_redis
command: celery -A gramps_webapi.celery worker --loglevel=INFO
grampsweb_redis:
image: redis:alpine
container_name: grampsweb_redis
restart: unless-stopped