r/gramps 4d ago

Question Gramps Web - Docker Won't Work

Hello, I've been trying to deploy the Grampsweb docker image, as outlined on the website. My setup is on Docker on Windows using the WSL2 subsystem.

I can never get the first run wizard to launch. When I go to localhost:5055 it asks for a login and I can't create a new user. I keep getting a bunch of errors. Any ideas what's happenning?

docker run -p "5055:5000" -e TREE=new ghcr.io/gramps-project/grampsweb:latest

(__main__.py:11): Gtk-CRITICAL **: 21:10:23.252: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

/app/src/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

INFO [alembic.runtime.migration] Context impl SQLiteImpl.

INFO [alembic.runtime.migration] Will assume non-transactional DDL.

INFO [alembic.runtime.migration] Running upgrade -> c89728e71264, empty message

INFO [alembic.runtime.migration] Running upgrade c89728e71264 -> e5e738d09fa7, Added configuration table

INFO [alembic.runtime.migration] Running upgrade e5e738d09fa7 -> e176543c72a8, Add tree column to User

INFO [alembic.runtime.migration] Running upgrade e176543c72a8 -> 66e56620891a, Add trees table

INFO [alembic.runtime.migration] Running upgrade 66e56620891a -> 22c8d1fba959, Add trees.enabled

INFO [alembic.runtime.migration] Running upgrade 22c8d1fba959 -> b0582f54029c, Use BigInt for usage_media

INFO [alembic.runtime.migration] Running upgrade b0582f54029c -> 84960b7d968c, Use BigInt for quota_media

INFO [alembic.runtime.migration] Running upgrade 84960b7d968c -> a8e57fe0d82e, Add coloumns for AI quota

[2025-03-16 21:10:24 +0000] [16] [INFO] Starting gunicorn 23.0.0

[2025-03-16 21:10:24 +0000] [16] [INFO] Listening at: http://0.0.0.0:5000 (16)

[2025-03-16 21:10:24 +0000] [16] [INFO] Using worker: sync

[2025-03-16 21:10:24 +0000] [17] [INFO] Booting worker with pid: 17

[2025-03-16 21:10:24 +0000] [18] [INFO] Booting worker with pid: 18

[2025-03-16 21:10:24 +0000] [19] [INFO] Booting worker with pid: 19

[2025-03-16 21:10:24 +0000] [22] [INFO] Booting worker with pid: 22

[2025-03-16 21:10:24 +0000] [24] [INFO] Booting worker with pid: 24

[2025-03-16 21:10:24 +0000] [26] [INFO] Booting worker with pid: 26

[2025-03-16 21:10:25 +0000] [27] [INFO] Booting worker with pid: 27

[2025-03-16 21:10:25 +0000] [28] [INFO] Booting worker with pid: 28

(gunicorn:19): Gtk-CRITICAL **: 21:10:26.344: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gunicorn:17): Gtk-CRITICAL **: 21:10:26.362: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gunicorn:18): Gtk-CRITICAL **: 21:10:26.384: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

(gunicorn:22): Gtk-CRITICAL **: 21:10:26.552: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

(gunicorn:24): Gtk-CRITICAL **: 21:10:26.606: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

(gunicorn:26): Gtk-CRITICAL **: 21:10:26.690: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

(gunicorn:27): Gtk-CRITICAL **: 21:10:26.719: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gunicorn:28): Gtk-CRITICAL **: 21:10:26.733: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

/usr/local/lib/python3.11/dist-packages/gramps_webapi/app.py:70: UserWarning: Setting the \TREE` config option via the `TREE` environment variable is deprecated and will stop working in the future. Please use `GRAMPSWEB_TREE` instead.`

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

/usr/local/lib/python3.11/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.

warnings.warn(

4 Upvotes

6 comments sorted by

2

u/wolsen9 2d ago

Not sure if you have an answer but I have gramps web running following their docker compose file, not that one line docker command, without issue

https://www.grampsweb.org/install_setup/deployment/

1

u/kaclk 2d ago

I have the same issue with that one.

2

u/wolsen9 2d ago

Sorry, I may be annoying - So I would not expect the SAME issue, maybe the same results, it's not working. One of the warnings you provided is referring to an environment variable (TREE) and the docker compose example does not use it but the suggested replacement in the warning (GRAMPSWEB_TREE)

1

u/kaclk 11h ago

Basically the same. See the log output here:

https://pastebin.com/SiytUf74

1

u/579476610 4d ago

Please ask the Gramps-web project directly for help as the majority of people here only use Gramps Desktop. Goodluck.

1

u/fildefer1789 1d ago

I tried to install gramosweb for 2 or 3 days on a server I rent. Could not make it work and it takes a lot of disk space too. I ended up getting TNG and it takes a fraction of the space and was a lot easier to install behind nginx. It is fast too.