GithubHelp home page GithubHelp logo

Comments (15)

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

hmmn, if you could send me the logs from when you create the pgpool container I'll take a look.

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

build logs and the way to build it are here,
https://pad.riseup.net/p/build_log

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

thanks, could you send next the Openshift JSON template you are using to create the pods?

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

also, your pgpool config files you are using if possible would be useful to review.

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

Here you can find the JSON files,
https://gitlab.com/sgk/mattermost
and the pgpool conf here,
https://github.com/syamgk/crunchy-containers/tree/master/conf/pgpool

thanking you too, also please do ask if more info is needed from my side

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

might need to change the image to the custom build one
https://gitlab.com/sgk/mattermost/blob/master/pgpool-rc.json#L90

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

see if you can connect using the psql client as follows:

psql -h pgpool.pgproject.svc.cluster.local -U testuser userdb

here you will replace pgproject with your openshift project you have chosen. Once you connect,
see if you can create a table and query it.

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

I am being able to connect to the db using psql, even while running mattermost across pgpool the user-creation, chat and everything is working properly.
this is happening only while accessing system console and some other points.
Ref: http://forum.mattermost.org/t/mattermost-fails-connecting-to-pgpool/2369

And everything is working fine if run it across master container or any other single instance postgres.

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

probably what is happening is the application (mattermost) is trying to use a database/user combination that is not configured within the pgpool configuration is my guess based on this log message, probably something the app developers can take a look at. you might look at your postgres container as the postgres user and see what databases/users the application has created if any to better debug this.

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

all tables are owned by testuser in this case and mattermost is trying to access the db as testuser
and the same container is working fine without any errors if directly connects to master( postgres instance in the cluster). so I suspect it might be some problem happening in the pgpool area.

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

just to confirm, are all the mattermost tables created in the 'userdb' database and owned by the 'testuser'? If any of the mattermost tables are in the 'postgres' or other database you'll see an error from pgpool.

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

https://pad.riseup.net/p/pgtables
these are the tables inside userdb

from crunchy-containers.

syamgk avatar syamgk commented on May 24, 2024

can also reproduce it by running on docker using docker-compose
https://gitlab.com/sgk/mattermost-docker

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

you might turn on SQL logging in pgpool's config, this will tell you what SQL statement is triggering the error...log_statement when set to true will cause all the SQL statements to be logged inside the container to the pgpool log file.

from crunchy-containers.

jmccormick2001 avatar jmccormick2001 commented on May 24, 2024

just checking to see if you had any updated status? were you able to identify the SQL statements with pgpool logging?

from crunchy-containers.

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.