Git Product home page Git Product logo

Comments (4)

ahilles107 avatar ahilles107 commented on September 3, 2024

Yep, it's pg_hba.conf configuration connected. Publisher can't connect to this database with provided credentials. This can help You: https://stackoverflow.com/questions/3278379/how-to-configure-postgresql-to-accept-all-incoming-connections

from web-publisher.

mikeavena avatar mikeavena commented on September 3, 2024

I used that stack overflow answer to change the pg_hba.conf to include:

# IPv4 local connections:
host    all             all             0.0.0.0/0               md5
# IPv6 local connections:
host    all             all             ::0/0                   md5

I added the listen_address = '*' to the postgresql.conf file, and I reloaded the configuration. I still get the same error though. I also tried using trust instead of md5, but still the same result.

from web-publisher.

mikeavena avatar mikeavena commented on September 3, 2024

For anyone facing the same issue, I figured it out. By coming back to it and mistakenly entering the second SQL command in the instructions, I got the error SQLSTATE[08006] : role "root" does not exist. I solved this with an answer from https://github.com/taigaio/taiga-back/issues/387 and added a user named "root" to postgres. Next, I upgraded the root user to a superuser. After that, everything worked just fine. I don't know why it was looking for a user named root instead of the one specified in parameters.yml.

Now, I have no idea if this was actually a secure way of installing this. I'm only testing right now, so I'm not super concerned, but @ahilles107 would you be able to give feedback about this?

from web-publisher.

ahilles107 avatar ahilles107 commented on September 3, 2024

I'm not sure how it should be done on postgres configuration. I never had to create root user - i always create new user and database for publisher instance.

from web-publisher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.