Files
wekan/docs/Databases/FerretDB
Lauri Ojansivu 4541fa99e1 Database tests run on their own ports, and survive their first real run.
Three things the first run on arm64 found.

The FerretDB it built could not start: `panic: commit.txt value ... !=
vcs.revision value ...`. Go stamps the VCS revision into the binary and
FerretDB's build/version panics when it disagrees with the committed
commit.txt, which only the generator refreshes - so every commit made after the
last refresh built a binary that panicked. Fixed in the fork (its act_build now
regenerates them, as act_dist already did).

Ports: FerretDB listened on 27017, which is where a dev server's database lives
and where the compose files publish FerretDB - so this could not run beside
anything else and, worse, could have pointed the tests at somebody else's
database and rewritten it. It listens on 37017 now and publishes the database
server on 35432, both moved on if busy, both overridable with
WEKAN_CONFORMANCE_PORT and WEKAN_CONFORMANCE_DB_PORT, and its containers are
named per run so a compose stack is never reused or stopped.

And Ctrl-C only killed whatever was in the foreground - a registry lookup, a
sleep - after which the loop carried on and reported the interrupted lookup as
"NO linux/arm64", which is a lie about the image. An interrupt ends the run now,
and the image check has three outcomes rather than two: has it, does not have
it, could not ask. A FerretDB that will not start also prints the last lines of
its log, because the reason is usually one line.

Thanks to xet7 !
2026-07-28 01:48:45 +03:00
..

FerretDB

FerretDB speaks the MongoDB wire protocol and stores the data in something else, so WeKan runs unchanged on top of it — WeKan only ever connects to mongodb://ferretdb:27017/wekan and knows nothing about what is behind it.

There are two versions, and they are different products:

Directory Version Stores into
1 FerretDB v1, the wekan/FerretDB fork — WeKan's default database SQLite (embedded), PostgreSQL, MySQL, MariaDB, SAP HANA
2 FerretDB 2, upstream PostgreSQL with the DocumentDB extension, only

Upstream dropped every backend except PostgreSQL in v2. The fork keeps v1 alive because the embedded SQLite backend is what makes a WeKan install self-contained — no database server at all — and because it is the database WeKan ships for the platforms MongoDB has no server build for: ppc64le, s390x and riscv64.

See also

  • ../MongoDB — the classic database, if you prefer MongoDB itself
  • wekan/FerretDB — the fork, its releases and its CHANGELOG