-
Notifications
You must be signed in to change notification settings - Fork 5
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
Any advice on PostgreSQL setup, everything i try seems to give me Ident authentication failed #7
Comments
Try using the username and password you use to logon to your computer. |
Hi. Credentials in the config should be as below: pg_uname $MYPOSTGRESUSERNAME Also the user needs to have the authority to create databases and extension in postgres You could try executing the template sql template_snapperdb_denovo_refs_sql in /snapperdb/snapperdb/snpdb/ to check if you the required permissions Tim |
I've built my machine up from scratch to make sure I had no rubbish in there. From a vanilla CentOS machine
This sets me up with a working Postgres install where I can enter the PSQL command line and create databases etc. I don't have to so anything funny to enter the PSQL command line, I can just call PSQL. But it still fails the same as before. I tried troubleshooting this by switching to my postgres user and then logging into PSQL using my username and this failed with a similar error;
So this caused me to look at the pg_hba.conf file and change the Peer and Ident authentication methods to MD5. After changing these to MD5 and restarting the postgres service again I think it's working. Using just the bundled data I get this;
Does this look ok? |
Hi Jason. |
I installed SAMtools (my PHEnix install script fetched my SAMtools install script but never actually ran it, that was a mistake on my part) and am now getting even further, you can see it actually doing something productive now;
|
it looks like the database did not form correctly when you made it manually. |
I'm going to wipe my machine out and start over so that i know all the steps needed. Fingers crossed i should be back to this same point in about an hour. |
Ok, I have rebuilt from scratch and fixed a few issues along the way. I didn't have the postgresql-contrib package installed so that was giving me a sql error about hstore.control, I have included that in my install script now. How does this look?
|
Looks like success! |
I think we can mark this closed |
Can you give me the 5min idiots guide on how to get this working even if it's just using the bundled demo data, everything i seem to try gives me;
psycopg2.OperationalError FATAL: Ident authentication failed for user "<username>"
I've got a PG user (postgres) that works, and i can enter the PSQL command line and create databases etc. but i can't seem to get the snapperdb.py script running to do this for me.
My PG username and password are entered into the user config but still no dice (This was something i didn't understand properly the last time i opened an issue).
I've even tried changing my pg_hba.conf to either md5 or trust.
The exact error i get is;
The text was updated successfully, but these errors were encountered: