2022-05-11 14:39:36 +00:00
---
title: FAQ
nav_order: 1
permalink: /faq
---
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
# FAQ
2023-01-10 23:26:41 +00:00
## Why does Dendrite exist?
Dendrite aims to provide a matrix compatible server that has low resource usage compared to [Synapse ](https://github.com/matrix-org/synapse ).
It also aims to provide more flexibility when scaling either up or down.
Dendrite's code is also very easy to hack on which makes it suitable for experimenting with new matrix features such as peer-to-peer.
2022-05-11 14:39:36 +00:00
## Is Dendrite stable?
2020-12-03 13:22:32 +00:00
Mostly, although there are still bugs and missing features. If you are a confident power user and you are happy to spend some time debugging things when they go wrong, then please try out Dendrite. If you are a community, organisation or business that demands stability and uptime, then Dendrite is not for you yet - please install Synapse instead.
2022-05-11 14:39:36 +00:00
## Is Dendrite feature-complete?
2020-12-03 13:22:32 +00:00
2023-04-03 17:08:13 +00:00
No, although a good portion of the Matrix specification has been implemented. Mostly missing are client features - see the [readme ](https://github.com/matrix-org/dendrite/blob/main/README.md ) at the root of the repository for more information.
2022-08-13 18:24:52 +00:00
2022-08-13 18:31:43 +00:00
## Why doesn't Dendrite have "x" yet?
2022-08-13 18:24:52 +00:00
Dendrite development is currently supported by a small team of developers and due to those limited resources, the majority of the effort is focused on getting Dendrite to be
specification complete. If there are major features you're requesting (e.g. new administration endpoints), we'd like to strongly encourage you to join the community in supporting
2023-11-22 11:14:49 +00:00
the development efforts through [contributing ](./development/CONTRIBUTING.md ).
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
## Is there a migration path from Synapse to Dendrite?
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
No, not at present. There will be in the future when Dendrite reaches version 1.0. For now it is not
possible to migrate an existing Synapse deployment to Dendrite.
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
## Can I use Dendrite with an existing Synapse database?
2022-03-18 11:44:13 +00:00
No, Dendrite has a very different database schema to Synapse and the two are not interchangeable.
2023-01-10 23:26:41 +00:00
## Can I configure which port Dendrite listens on?
Yes, use the cli flag `-http-bind-address` .
2022-05-11 14:39:36 +00:00
## I've installed Dendrite but federation isn't working
2020-12-03 13:22:32 +00:00
Check the [Federation Tester ](https://federationtester.matrix.org ). You need at least:
* A valid DNS name
* A valid TLS certificate for that DNS name
* Either DNS SRV records or well-known files
2023-01-10 23:26:41 +00:00
## Whenever I try to connect from Element it says unable to connect to homeserver
Check that your dendrite instance is running. Otherwise this is most likely due to a reverse proxy misconfiguration.
2022-05-11 14:39:36 +00:00
## Does Dendrite work with my favourite client?
2020-12-03 13:22:32 +00:00
It should do, although we are aware of some minor issues:
* **Element Android**: registration does not work, but logging in with an existing account does
* **Hydrogen**: occasionally sync can fail due to gaps in the `since` parameter, but clearing the cache fixes this
2023-01-10 23:26:41 +00:00
## Is there a public instance of Dendrite I can try out?
Use [dendrite.matrix.org ](https://dendrite.matrix.org ) which we officially support.
2022-08-13 18:24:52 +00:00
## Does Dendrite support Space Summaries?
2023-07-20 14:06:05 +00:00
Yes
## Does Dendrite support Threads?
Yes, to enable them [msc2836 ](https://github.com/matrix-org/matrix-spec-proposals/pull/2836 ) would need to be added to mscs configuration in order to support Threading. Other MSCs are not currently supported.
2022-08-13 18:24:52 +00:00
```
mscs:
mscs:
2023-07-20 14:06:05 +00:00
- msc2836
2022-08-13 18:24:52 +00:00
```
Please note that MSCs should be considered experimental and can result in significant usability issues when enabled. If you'd like more details on how MSCs are ratified or the current status of MSCs, please see the [Matrix specification documentation ](https://spec.matrix.org/proposals/ ) on the subject.
2022-05-11 14:39:36 +00:00
## Does Dendrite support push notifications?
2020-12-03 13:22:32 +00:00
2022-03-18 11:44:13 +00:00
Yes, we have experimental support for push notifications. Configure them in the usual way in your Matrix client.
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
## Does Dendrite support application services/bridges?
2020-12-03 13:22:32 +00:00
Possibly - Dendrite does have some application service support but it is not well tested. Please let us know by raising a GitHub issue if you try it and run into problems.
2022-01-24 10:29:45 +00:00
Bridges known to work (as of v0.5.1):
2022-05-11 14:39:36 +00:00
* [Telegram ](https://docs.mau.fi/bridges/python/telegram/index.html )
* [WhatsApp ](https://docs.mau.fi/bridges/go/whatsapp/index.html )
* [Signal ](https://docs.mau.fi/bridges/python/signal/index.html )
* [probably all other mautrix bridges ](https://docs.mau.fi/bridges/ )
2020-12-03 13:27:48 +00:00
2022-05-12 11:05:55 +00:00
Remember to add the config file(s) to the `app_service_api` section of the config file.
2020-12-03 13:27:48 +00:00
2022-05-11 14:39:36 +00:00
## Is it possible to prevent communication with the outside world?
2020-12-03 13:27:48 +00:00
2022-05-11 14:39:36 +00:00
Yes, you can do this by disabling federation - set `disable_federation` to `true` in the `global` section of the Dendrite configuration file.
2020-12-03 13:27:48 +00:00
2023-01-10 23:26:41 +00:00
## How can I migrate a room in order to change the internal ID?
This can be done by performing a room upgrade. Use the command `/upgraderoom <version>` in Element to do this.
## How do I reset somebody's password on my server?
2023-11-22 11:14:49 +00:00
Use the admin endpoint [resetpassword ](./administration/4_adminapi.md#post-_dendriteadminresetpassworduserid )
2023-01-10 23:26:41 +00:00
2022-05-11 14:39:36 +00:00
## Should I use PostgreSQL or SQLite for my databases?
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
Please use PostgreSQL wherever possible, especially if you are planning to run a homeserver that caters to more than a couple of users.
2020-12-03 13:22:32 +00:00
2023-01-10 23:26:41 +00:00
## What data needs to be kept if transferring/backing up Dendrite?
The list of files that need to be stored is:
- matrix-key.pem
- dendrite.yaml
- the postgres or sqlite DB
2024-02-28 20:02:25 +00:00
- the jetstream directory
2023-01-10 23:26:41 +00:00
- the media store
- the search index (although this can be regenerated)
Note that this list may change / be out of date. We don't officially maintain instructions for migrations like this.
## How can I prepare enough storage for media caches?
This might be what you want: [matrix-media-repo ](https://github.com/turt2live/matrix-media-repo )
We don't officially support this or any other dedicated media storage solutions.
## Is there an upgrade guide for Dendrite?
Run a newer docker image. We don't officially support deployments other than Docker.
Most of the time you should be able to just
- stop
- replace binary
- start
2022-05-11 14:39:36 +00:00
## Dendrite is using a lot of CPU
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
Generally speaking, you should expect to see some CPU spikes, particularly if you are joining or participating in large rooms. However, constant/sustained high CPU usage is not expected - if you are experiencing that, please join `#dendrite-dev:matrix.org` and let us know what you were doing when the
2022-12-12 16:46:37 +00:00
CPU usage shot up, or file a GitHub issue. If you can take a [CPU profile ](development/PROFILING.md ) then that would
2022-05-11 14:39:36 +00:00
be a huge help too, as that will help us to understand where the CPU time is going.
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
## Dendrite is using a lot of RAM
2020-12-03 13:22:32 +00:00
2022-05-11 14:39:36 +00:00
As above with CPU usage, some memory spikes are expected if Dendrite is doing particularly heavy work
at a given instant. However, if it is using more RAM than you expect for a long time, that's probably
not expected. Join `#dendrite-dev:matrix.org` and let us know what you were doing when the memory usage
2022-12-12 16:46:37 +00:00
ballooned, or file a GitHub issue if you can. If you can take a [memory profile ](development/PROFILING.md ) then that
2022-05-11 14:39:36 +00:00
would be a huge help too, as that will help us to understand where the memory usage is happening.
2020-12-03 13:22:32 +00:00
2023-01-10 23:26:41 +00:00
## Do I need to generate the self-signed certificate if I'm going to use a reverse proxy?
No, if you already have a proper certificate from some provider, like Let's Encrypt, and use that on your reverse proxy, and the reverse proxy does TLS termination, then you’ re good and can use HTTP to the dendrite process.
2022-05-11 14:39:36 +00:00
## Dendrite is running out of PostgreSQL database connections
2020-12-03 13:22:32 +00:00
2020-12-03 13:27:48 +00:00
You may need to revisit the connection limit of your PostgreSQL server and/or make changes to the `max_connections` lines in your Dendrite configuration. Be aware that each Dendrite component opens its own database connections and has its own connection limit, even in monolith mode!
2022-05-06 06:26:24 +00:00
2022-08-13 18:24:52 +00:00
## VOIP and Video Calls don't appear to work on Dendrite
2023-05-30 08:02:53 +00:00
There is likely an issue with your STUN/TURN configuration on the server. If you believe your configuration to be correct, please see the [troubleshooting ](administration/6_troubleshooting.md ) for troubleshooting recommendations.
2022-08-13 18:24:52 +00:00
2022-07-19 10:51:46 +00:00
## What is being reported when enabling phone-home statistics?
2022-05-06 06:26:24 +00:00
2022-07-19 10:51:46 +00:00
Phone-home statistics contain your server's domain name, some configuration information about
your deployment and aggregated information about active users on your deployment. They are sent
to the endpoint URL configured in your Dendrite configuration file only. The following is an
example of the data that is sent:
2022-05-06 06:26:24 +00:00
```json
{
"cpu_average": 0,
"daily_active_users": 97,
"daily_e2ee_messages": 0,
"daily_messages": 0,
"daily_sent_e2ee_messages": 0,
"daily_sent_messages": 0,
"daily_user_type_bridged": 2,
"daily_user_type_native": 97,
"database_engine": "Postgres",
"database_server_version": "11.14 (Debian 11.14-0+deb10u1)",
"federation_disabled": false,
"go_arch": "amd64",
"go_os": "linux",
"go_version": "go1.16.13",
2022-07-19 10:51:46 +00:00
"homeserver": "my.domain.com",
2022-05-06 06:26:24 +00:00
"log_level": "trace",
"memory_rss": 93452,
"monolith": true,
"monthly_active_users": 97,
"nats_embedded": true,
"nats_in_memory": true,
"num_cpu": 8,
"num_go_routine": 203,
"r30v2_users_all": 0,
"r30v2_users_android": 0,
"r30v2_users_electron": 0,
"r30v2_users_ios": 0,
"r30v2_users_web": 0,
"timestamp": 1651741851,
"total_nonbridged_users": 97,
"total_room_count": 0,
"total_users": 99,
"uptime_seconds": 30,
"version": "0.8.2"
}
2022-05-11 14:39:36 +00:00
```