Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Can't connect to database while reconfigure (en / de)

Can't connect to database while reconfigure (en / de)

Added by Michael Buchholz almost 4 years ago

Hello dear forum community,

I have a new problem I can't solve^^
Today I installed the current update via "apt install". That worked. Then an "openproject configure" and that was it. A connection to the database is no longer possible.

First of all: I know MySQL very well, but this is my first contact with PostgreSQL. So I got pgAdmin on my computer and adjusted postgresql.conf accordingly so that I can access it with pgAdmin from my Windows computer (listen_adresses = 0.0.0.0) as well as pg_hba.conf (host all all 192.168.1.0/24 md5 )
With pgAdmin I can now access all databases and have already changed the password of the pg_users "openproject" and "postgres" for security reasons.

However, I cannot establish a connection to the database with an "openproject reconfigure". It doesn't matter whether I use "127.0.0.1", "localhost" or "192.168.1.54" as the destination or whether I use the port "45432" or "5432" (in \ etc \ postgresql \ 10 \ main \ postgresql .conf is given at least 5432).

Can someone help me in a timely manner, also in German?


Replies (2)

RE: Can't connect to database while reconfigure (en / de) - Added by Peter Weirich almost 4 years ago

Welche Distribution benutzt du denn und enthält die Datenbank schon irgendwelche Daten, die verloren gehen könnten?

Mit openproject logs -f kannst du dir die aktuellen logs ausgeben lassen, vielleicht findest du da schon einen Hinweis auf den Fehler.

RE: Can't connect to database while reconfigure (en / de) - Added by Michael Buchholz almost 4 years ago

... hab es gerade gefunden jabadabadu

Also ja, es existieren schon Daten. Die habe ich aber zur Sicherheit mit pgAdmin schon mal in Sicherheit gebracht.

Knackpunkt war hauptsächlich der Fakt, das in der "pg_hba.conf" schlicht und ergreifend der Host für 127.0.0.1 fehlte. Was mir nicht klar war ist, das bei Festlegen eines Adressbereiches automatisch das Default für Localhost entsorgt wird. Dieses muss man dann explizit ein/nachtragen.

Daten sind auf jeden Fall alle heil geblieben. Bei Reconfigure habe ich lediglich die Datenbank eingetragen und alles weitere (bereits vorhandene) übersprungen.

Wenn jetzt noch mal mein anderes Problem gelöst wird, dann kann ich da erst mal einen Haken hinter machen ...

  • (1 - 2/2)
Loading...