Grampsweb container keeps restarting after upgrade

I ran a

docker compose pull

to get the latest updates, and now the grampsweb container keeps restarting.
The container log has this info:

INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
ERROR [alembic.util.messaging] Requested revision c1d2e3f4a5b6 overlaps with other requested revisions b2c3d4e5f6a7
FAILED: Requested revision c1d2e3f4a5b6 overlaps with other requested revisions b2c3d4e5f6a7
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 481, in <module>
    cli(
    ~~~^
        prog_name="python3 -m gramps_webapi"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )  # pylint:disable=no-value-for-parameter,unexpected-keyword-arg
    ^
  File "/venv/lib/python3.13/site-packages/click/core.py", line 1524, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.13/site-packages/click/core.py", line 1445, in main
    rv = self.invoke(ctx)
  File "/venv/lib/python3.13/site-packages/click/core.py", line 1912, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/venv/lib/python3.13/site-packages/click/core.py", line 1912, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/venv/lib/python3.13/site-packages/click/core.py", line 1308, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.13/site-packages/click/core.py", line 877, in invoke
    return callback(*args, **kwargs)
  File "/venv/lib/python3.13/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/app/src/gramps_webapi/__main__.py", line 231, in migrate_db
    subprocess.run(cmd, env=env, check=True)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 577, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/venv/bin/python3', '-m', 'alembic', 'upgrade', 'head']' returned non-zero exit status 255.

I haven’t made any changes to the docker-compose.yaml file for a long time, so wondering if something in the yaml file needs some other values.

These are the images that I have:

$ docker images
REPOSITORY                         TAG            IMAGE ID       CREATED       SIZE
nginxproxy/acme-companion          latest         6366ab301b3e   5 hours ago   48.2MB
nginxproxy/nginx-proxy             latest         02a36e5de796   6 hours ago   181MB
ghcr.io/gramps-project/grampsweb   latest         c1180fbb4428   8 days ago    4.5GB
redis                              7.2.4-alpine   a1811fcf7480   2 years ago   46.1MB

Which version to which version?

If it was a bigger version jump, can you try to upgrade to an intermediate version first?

No, the YAML doesn’t need changes.

Related: [Bug] Container fails to start — Alembic migration error "overlaps with other requested revisions" · Issue #847 · gramps-project/gramps-web-api · GitHub

I was running version 6.0 before I did the pull.
As the Gramps Web wouldn’t start I decided to totally clean up by running docker system prune --all --volumes and start all over. But I still get the alembic error.

Can you try the fix in the linked issue?

Did another prune all and stopped the docker daemon, to be ensure nothing was cached.
The ran docker compose up again and now all containers started.
Thanks for helping.