Failed Installation of grampsweb on vps with portainer. please help

I just tried to install grampsweb on a vps with portainer.

It keeps restarting.

Does anyone know what I have done wrong?

This is part of the logging:

`File "/venv/lib/python3.13/site-packages/click/core.py", line 1490, in main`
`rv = self.invoke(ctx)`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1970, in invoke`
`return _process_result(sub_ctx.command.invoke(sub_ctx))`
`~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1970, in invoke`
`return _process_result(sub_ctx.command.invoke(sub_ctx))`
`~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1353, in invoke`
`return ctx.invoke(self.callback, **ctx.params)`
`~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 907, 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 239, 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.`
`INFO  [alembic.runtime.migration] Context impl SQLiteImpl.`
`INFO  [alembic.runtime.migration] Will assume non-transactional DDL.`
`ERROR [alembic.util.messaging] Requested revision 6d8f3cb50b71 overlaps with other requested revisions a8e57fe0d82e`
`FAILED: Requested revision 6d8f3cb50b71 overlaps with other requested revisions a8e57fe0d82e`
`Traceback (most recent call last):`
`File "", line 198, in _run_module_as_main`
`File "", line 88, in _run_code`
`File "/app/src/gramps_webapi/`**`main`**`.py", line 489, in `
`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 1569, in `**`call`**
`return self.main(*args, **kwargs)`
`~~~~~~~~~^^^^^^^^^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1490, in main`
`rv = self.invoke(ctx)`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1970, in invoke`
`return _process_result(sub_ctx.command.invoke(sub_ctx))`
`~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1970, in invoke`
`return _process_result(sub_ctx.command.invoke(sub_ctx))`
`~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 1353, in invoke`
`return ctx.invoke(self.callback, **ctx.params)`
`~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`
`File "/venv/lib/python3.13/site-packages/click/core.py", line 907, 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 239, 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.`

My guess is a race condition between celery and flask, check if your celery container has depends_on as in our docs. Also make sure the volumes are empty and do not contain a partially initialized database from a previous attempt.

Thanks David,

A new operating system and docker compose did the trick. Everything is working fine now.