logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.52k stars 423 forks source link

bug: Database name is required in URL #5586

Closed vinumweb closed 6 months ago

vinumweb commented 6 months ago

Describe the bug

When starting the logto with docker compose I get an error saying fatal Error: Database name is required in URL at createPoolFromConfig (file:///etc/logto/packages/cli/lib/database.js:16:48) at async createPoolAndDatabaseIfNeeded (file:///etc/logto/packages/cli/lib/database.js:29:16) at async Object.handler (file:///etc/logto/packages/cli/lib/commands/database/seed/index.js:61:22)

Expected behavior

Logto seeding the db like normal

How to reproduce?

Using the docker compose in Easypanel, and setting the start command.

Context

I'm using Easypanel (it's like portainer)

wangsijie commented 6 months ago

What is your DB_URL in the compose file?

vinumweb commented 6 months ago

What is your DB_URL in the compose file?

All data is on discord in a thread

wangsijie commented 6 months ago

@vinumweb Glad to hear that you have solved this problem. I am closing this, feel free to reopen if you have any further questions.