# Grampsweb container keeps restarting after upgrade

**URL:** <https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634>\
**Category:** Gramps Web\
**Created:** [June 18, 2026, 1:32pm UTC](https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634 "2026-06-18T13:32:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![csam](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/csam/32/5361_2.png) [@csam](https://gramps.discourse.group/u/csam)\
**Post date:** [June 18, 2026, 1:32pm UTC](https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634/1 "2026-06-18T13:32:54Z")

</div>

I ran a

> docker compose pull

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

```python
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:

```python
$ 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

```

---

<div class="post-metadata">

**Author:** ![DavidMStraub](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davidmstraub/32/7_2.png) [@DavidMStraub](https://gramps.discourse.group/u/DavidMStraub)\
**Post date:** [June 18, 2026, 2:09pm UTC](https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634/2 "2026-06-18T14:09:13Z")

</div>

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](https://github.com/gramps-project/gramps-web-api/issues/847)

---

<div class="post-metadata">

**Author:** ![csam](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/csam/32/5361_2.png) [@csam](https://gramps.discourse.group/u/csam)\
**Post date:** [June 18, 2026, 2:44pm UTC](https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634/3 "2026-06-18T14:44:55Z")

</div>

> [@DavidMStraub](#):
>
> can you try to upgrade to an intermediate version

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.

---

<div class="post-metadata">

**Author:** ![DavidMStraub](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davidmstraub/32/7_2.png) [@DavidMStraub](https://gramps.discourse.group/u/DavidMStraub)\
**Post date:** [June 18, 2026, 2:57pm UTC](https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634/4 "2026-06-18T14:57:21Z")

</div>

Can you try the fix in the linked issue?

---

<div class="post-metadata">

**Author:** ![csam](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/csam/32/5361_2.png) [@csam](https://gramps.discourse.group/u/csam)\
**Post date:** [June 18, 2026, 3:24pm UTC](https://gramps.discourse.group/t/grampsweb-container-keeps-restarting-after-upgrade/9634/5 "2026-06-18T15:24:26Z")

</div>

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.
