Skip to content

DB no longer starts up #4811

@Shardboii

Description

@Shardboii

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes / No
  • Are you sure you're not using someone else's docker image?
    • Yes / No
  • Have you searched for similar issues (both open and closed)?
    • Yes / No

Describe the bug

I don't really know what im supposed to do or change here

Error: in 18+, these Docker images are configured to store database data in a

       format which is compatible with "pg_ctlcluster" (specifically, using

       major-version-specific directory names).  This better reflects how

       PostgreSQL itself works, and how upgrades are to be performed.

       See also https://github.com/docker-library/postgres/pull/1259

       Counter to that, there appears to be PostgreSQL data in:

         /var/lib/postgresql/data (unused mount/volume)

       This is usually the result of upgrading the Docker image without

       upgrading the underlying database using "pg_upgrade" (which requires both

       versions).

       The suggested container configuration for 18+ is to place a single mount

       at /var/lib/postgresql which will then place PostgreSQL data in a

       subdirectory, allowing usage of "pg_upgrade --link" without mount point

       boundary issues.

       See https://github.com/docker-library/postgres/issues/37 for a (long)

       discussion around this process, and suggestions for how to do so.

This error popped up and NPM_DB no longer works. It's not affecting my current proxies but only the WebUI. Which means i won't be able to make any changes via the GUI

Nginx Proxy Manager Version

v2.12.6

To Reproduce
Steps to reproduce the behavior:

  1. Update Nginx Proxy Manager a few times over the span of a year
  2. oop
  3. See problem - Stopped for 4 minutes with exit code 1

Expected behavior

It continues working

Screenshots

Operating System

Fedora Server

Additional context

Compose file:

services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '81:80' # Public HTTP Port
      - '1002:443' # Public HTTPS Port
      - '30020:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP
    environment:
      # Postgres parameters:
      DB_POSTGRES_HOST: 'db'
      DB_POSTGRES_PORT: '5432'
      DB_POSTGRES_USER: '****'
      DB_POSTGRES_PASSWORD: '****'
      DB_POSTGRES_NAME: 'npm'
      # Uncomment this if IPv6 is not enabled on your host
      # DISABLE_IPV6: 'true'
    volumes:
      - /mnt/Server_NAS/dockerapps/nginx-proxy-manager/data:/data
      - /mnt/Server_NAS/dockerapps/nginx-proxy-manager/certs:/etc/letsencrypt
    depends_on:
      - db

  db:
    image: postgres:latest
    environment:
      POSTGRES_USER: '***'
      POSTGRES_PASSWORD: '***'
      POSTGRES_DB: 'npm'
    volumes:
      - postgres:/var/lib/postgresql/data

volumes:
  postgres:

Im using Watchtower to automatically update this

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions