After starting the bot, I get the following error:
2023-12-23T23:16:27Z INF Initializing bridge built_at="Dec 19 2023, 12:57:29" go_version=go1.21.5 name=mautrix-whatsapp version=0.10.5+dev.a1f1c91b
2023-12-23T23:16:27Z DBG Initializing database connection
2023-12-23T23:16:27Z DBG Initializing state store
2023-12-23T23:16:27Z DBG Initializing Matrix event processor
2023-12-23T23:16:27Z DBG Initializing Matrix event handler
2023-12-23T23:16:27Z DBG Bridge built with end-to-bridge encryption, but disabled in config
2023-12-23T23:16:27Z INF Bridge initialization complete, starting...
2023-12-23T23:16:27Z DBG Running database upgrades
2023-12-23T23:16:27Z INF Database is up to date current_version=57 db_section=main latest_known_version=57 oldest_compatible_version=45
2023-12-23T23:16:27Z INF Database is up to date current_version=5 db_section=matrix_state latest_known_version=5 oldest_compatible_version=5
2023-12-23T23:16:27Z DBG Starting application service HTTP server
2023-12-23T23:16:27Z DBG Checking connection to homeserver
2023-12-23T23:16:27Z INF Starting HTTP listener address=0.0.0.0:29318
2023-12-23T23:16:27Z DBG Request completed as_user_id=@whatsappbot:jmaris.me duration=1.818771 method=GET req_id=1 response_length=118 response_mime=application/json status_code=200 url=http://matrix:6167/_matrix/client/versions?user_id=%40whatsappbot%3Ajmaris.me
2023-12-23T23:16:27Z DBG Request completed as_user_id=@whatsappbot:jmaris.me duration=0.44378 method=GET req_id=2 response_length=69 response_mime=application/json status_code=403 url=http://matrix:6167/_matrix/client/v3/account/whoami?user_id=%40whatsappbot%3Ajmaris.me
2023-12-23T23:16:27Z FTL /whoami request failed with unknown error error="failed to GET /_matrix/client/v3/account/whoami: M_FORBIDDEN (HTTP 403): M_FORBIDDEN: User does not exist."
``
I have set up mautrix-whatsapp with conduit using docker compose with the following compose file. I have checked that matrix is accessible for containers inside the compose file, but I can't check that the bridge is accessible from the matrix server because the bridge constantly restarts.
After starting the bot, I get the following error:
version: '3'
services: homeserver: image: matrixconduit/matrix-conduit:latest container_name: matrix restart: unless-stopped ports:
/home/services/matrix/db:/var/lib/matrix-conduit/:z environment: CONDUIT_SERVER_NAME: (REDACTED) CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/ CONDUIT_DATABASE_BACKEND: rocksdb CONDUIT_PORT: 6167 CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB CONDUIT_ALLOW_REGISTRATION: 'true' CONDUIT_ALLOW_FEDERATION: 'true' CONDUIT_ALLOW_CHECK_FOR_UPDATES: 'true' CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
CONDUIT_MAX_CONCURRENT_REQUESTS: 100
mautrix-whatsapp: container_name: mautrix-whatsapp image: dock.mau.dev/mautrix/whatsapp:latest restart: unless-stopped volumes:
bridgedb: image: docker.io/library/postgres:14 restart: unless-stopped volumes:
the bridge config is as follows: