Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Warning about /run/secrets not existing on startup #3885

Closed
5 of 6 tasks
felixschndr opened this issue Jul 11, 2024 · 2 comments
Closed
5 of 6 tasks

[BUG] - Warning about /run/secrets not existing on startup #3885

felixschndr opened this issue Jul 11, 2024 · 2 comments
Assignees
Labels
bug: confirmed bug Something isn't working

Comments

@felixschndr
Copy link
Contributor

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

When starting Mealie the logs states the following:

mealie_app        | Switching to dedicated user
mealie_app        |
mealie_app        |         User uid:    1000
mealie_app        |         User gid:    1000
mealie_app        |
mealie_app        | /opt/pysetup/.venv/lib/python3.10/site-packages/pydantic_settings/sources.py:431: UserWarning: directory "/run/secrets" does not exist
mealie_app        |   warnings.warn(f'directory "{self.secrets_path}" does not exist')
mealie_app        | INFO     2024-07-11T21:58:16 - Started server process [1]
mealie_app        | INFO     2024-07-11T21:58:16 - Waiting for application startup.
....

It warns about the directory /run/secrets not existing. This error does not cause any issues as Mealie continues to start up afterwards.

This issue is raised as a followup on #3852 (comment)

Steps to Reproduce

docker-compose.yml

services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie
    container_name: mealie_app
    ports:
        - 12000:9000
    deploy:
      resources:
        limits:
          memory: 400M
    volumes:
      - ./data/mealie:/app/data/
    environment:
      ALLOW_SIGNUP: "false"
      PUID: ${ENV_PUID}
      PGID: ${ENV_PGID}
      TZ: ${TIMEZONE}
      API_DOCS: "false"
      MAX_WORKERS: 1
      WEB_CONCURRENCY: 1
      DB_ENGINE: postgres
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_SERVER: mealie_database
      POSTGRES_PORT: 5432
      POSTGRES_DB: ${POSTGRES_DB}
      ...
    restart: always
    depends_on:
      - database

Start Mealie with docker compose and check the logs

Please provide relevant logs

/opt/pysetup/.venv/lib/python3.10/site-packages/pydantic_settings/sources.py:431: UserWarning: directory "/run/secrets" does not exist

Mealie Version

Version
: v1.10.1
Build
: d639d168fa7c39ffb802d46ba05e4ec4de33faf9

Deployment

Docker (Linux)

Additional Deployment Details

No response

@pbathuk
Copy link

pbathuk commented Jul 11, 2024

I have only just installed, but I also get the same error

@boc-the-git
Copy link
Collaborator

Thanks for raising it Felix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: confirmed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants