mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.78k stars 628 forks source link

[BUG] - Startup loop/high CPU usage in Docker with 1.5.1 #3528

Closed runbgp closed 2 months ago

runbgp commented 2 months ago

First Check

What is the issue you are experiencing?

I spun up a new instance of Mealie today to test out Mealie 1.5.1 with Postgres 16.

I had it working for a moment, so I'm not sure if this is a race condition or something else. I cannot get it to work again even if I remove all persistent data.

I start up Mealie & Postgres using Docker Compose, CPU usage skyrockets and from the logs it appears that Mealie is boot looping after attempting to change user, it appears.

Steps to Reproduce

  1. Start up Mealie on a brand new Ubuntu 24.04 VM using Docker Compose. No folders for the volumes exist, this is a fresh startup.

Please provide relevant logs

docker-compose logs after running for 30s~: https://paste.ix0.io/XrZzf4 docker-compose.yml: https://paste.ix0.io/xNN6SK

Mealie Version

1.5.1

Deployment

Docker (Linux)

Additional Deployment Details

Ubuntu 24.04 LTS

hay-kot commented 2 months ago

I believe you need to add the Postgres database name to the Postgres container so that it’s created on startup. I think it’s ‘POSTGRES_DATABASE’ but you’d have to double check the Postgres docs.

boc-the-git commented 2 months ago

You've also got fatal errors in your postgres logs, by the looks: FATAL: role "root" does not exist

runbgp commented 2 months ago

I ended up migrating to using SQLite to remove complexity for now, plus I'm not using local storage. Going to close this out. Thanks!