teable icon indicating copy to clipboard operation
teable copied to clipboard

Docker deployment - Migration fails.

Open daffelito opened this issue 1 year ago • 2 comments

I have copied the docker-compose.yml and .env from https://help.teable.io/en/deploy/docker. There are no errors during the docker compose up-d, teable-cache and teable-db start without errors. But there are errors in the teable container ( i also see the error if i use docker compose --build )

Running database migration... DB Migrate Starting... file:///app/scripts/db-migrate.mjs:24 throw new Error(Invalid DATABASE_URL: ${error.message}); Error: Invalid DATABASE_URL: Invalid URL at parseDsn (file:///app/scripts/db-migrate.mjs:24:11) at file:///app/scripts/db-migrate.mjs:58:32 at ModuleJob.run (node:internal/modules/esm/module_job:217:25) at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:66:12) Node.js v20.9.0 Database migration failed

When I inspect the docker network that is created, teable-network, it seems like the teable container is not connected. I promise that i have double checked the compose files. If i Inspect the container and look at the network it seems like it is connected to the network, but it does not get an IP-address.

daffelito avatar May 27 '25 08:05 daffelito

It seams like I have solved it my self.

The containers seems to parse the passwords differently. I have special characters in the secrets in the .env file. I tried to Percent-encode them, but that only worked for the Postgres and Redis container. Teable seemed to provide the wrong password. So now I changed to the passkeys to not contain any special characters, and than it worked!

daffelito avatar May 27 '25 09:05 daffelito

I just had the same experience as you, @daffelito.

When a password uses a special font (*/%â...), the metadata tables and the "base_schema_table_read_only_role" role are created in PostgreSQL, Docker launches, but errors occur that prevent Teable from starting.

Would it be possible to improve the code to allow the use of special fonts?

herve-lg avatar Sep 04 '25 13:09 herve-lg