Skip to content
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

Who is timdallman and why is his username hard-coded into the install? (Problems creating DB) #5

Closed
jb2cool opened this issue Nov 1, 2017 · 3 comments

Comments

@jb2cool
Copy link

jb2cool commented Nov 1, 2017

I've installed snapperdb via git/pip and following your instructions to create the DB i'm having issues

[sisadmin@jb snapperdb]$ snapperdb.py make_snpdb -c ebg4_config.txt
Traceback (most recent call last):
File "/usr/bin/snapperdb.py", line 8, in
execfile(file)
File "/home/sisadmin/snapperdb/snapperdb.py", line 12, in
from snapperdb import parse_config
File "/usr/bin/snapperdb.py", line 8, in
execfile(file)
File "/home/sisadmin/snapperdb/snapperdb.py", line 12, in
from snapperdb import parse_config
ImportError: cannot import name parse_config
[sisadmin@jb snapperdb]$

If i instead use the snapperdb.py in ~/snapperdb i get a slightly different error but still an error

[sisadmin@jb snapperdb]$ ./snapperdb.py make_snpdb -c ebg4_config.txt
Namespace(command='make_snpdb', config_file='ebg4_config.txt', fastqs=[], log_dir='/home/sisadmin/snapperdb')

Cant connect to SnapperDB ebg_4_snps

The SNPdb ebg_4_snps does not exist - running sql to create database
Traceback (most recent call last):
File "./snapperdb.py", line 270, in
main()
File "./snapperdb.py", line 265, in main
run_command(args)
File "./snapperdb.py", line 97, in run_command
make_snpdb(config_dict)
File "/home/sisadmin/snapperdb/snapperdb/snpdb/init.py", line 83, in make_snpdb
snpdb.make_snpdb()
File "/home/sisadmin/snapperdb/snapperdb/snpdb/snpdb.py", line 162, in make_snpdb
conn = psycopg2.connect(make_db_conn_string)
File "/usr/lib64/python2.7/site-packages/psycopg2/init.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL: Ident authentication failed for user "timdallman"
[sisadmin@jb snapperdb]$

This is a vanilla install of CentOS with a fresh Postgres install so i've not really touched anything yet. Any pointers where to start?

@jb2cool
Copy link
Author

jb2cool commented Nov 1, 2017

Ok, some of that was in jest, i do know that Tim is one of the devs for SnapperDB but something is surely wrong with a hard-coded username and i still don't seem to be able ot use this properly

@ulfschaefer
Copy link
Contributor

ulfschaefer commented Nov 1, 2017

I am not Tim Dallman, but it appears that you are using the default config file under user_configs. I suppose you need to make you own config file with access credentials to your own postgres database and use that.

@jb2cool
Copy link
Author

jb2cool commented Nov 1, 2017

ah yes, i see, thanks. I was using the default config/ref genomes purely as they were there ready for me to use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants