I am trying out Sqitch and so far I really like it. I have managed to connect to a local database on my Mac OS X, but I am having trouble connecting to a remote database on a CentOS cluster.
I have no trouble connecting with psql like this from one Linux-box to another:
>$ psql -h <host> -U <user> -d <database>
Password for user <user>:
psql (9.4beta1)
Type "help" for help.
<database>=# \q
However, when I run the following I get "no password supplied error":
$ sqitch -h <host> -u <user> -d <database> --engine pg status
#On database db:pg://<user>@<host>/<database>
fe_sendauth: no password supplied
trace: Trace begun at /usr/local/lib64/perl5/DBI.pm line 683
trace: DBI::__ANON__(undef, undef) called at /usr/local/lib64/perl5/DBI.pm line 740
trace: DBI::connect('DBI', 'dbi:Pg:host=<host>;dbname=<database>', '<user>', undef, 'HASH(0x31108f0)') called at /usr/local/share/perl5/App/Sqitch/Engine/
pg.pm line 119
trace: App::Sqitch::Engine::pg::__ANON__('App::Sqitch::Engine::pg=HASH(0x3045460)') called at /usr/local/share/perl5/App/Sqitch/Engine/
pg.pm line 152
trace: eval {...} at /usr/local/share/perl5/App/Sqitch/Engine/
pg.pm line 152
trace: App::Sqitch::Engine::pg::initialized('App::Sqitch::Engine::pg=HASH(0x3045460)') called at /usr/local/share/perl5/App/Sqitch/Command/
status.pm line 108
trace: App::Sqitch::Command::status::catch {...} ('App::Sqitch::X=HASH(0x2d6e618)') called at /usr/local/share/perl5/Try/Tiny.pm line 104
trace: Try::Tiny::try('CODE(0x1263910)', 'Try::Tiny::Catch=REF(0x2c78a40)') called at /usr/local/share/perl5/App/Sqitch/Command/
status.pm line 113
trace: App::Sqitch::Command::status::execute('App::Sqitch::Command::status=HASH(0x2dacfd0)') called at /usr/local/share/perl5/App/Sqitch.pm line 377
trace: App::Sqitch::try {...} at /usr/local/share/perl5/Try/Tiny.pm line 76
trace: eval {...} at /usr/local/share/perl5/Try/Tiny.pm line 72
trace: Try::Tiny::try('CODE(0x2ce8b40)', 'Try::Tiny::Catch=REF(0x2a995a8)') called at /usr/local/share/perl5/App/Sqitch.pm line 397
trace: App::Sqitch::go('App::Sqitch') called at /usr/local/bin/sqitch line 17
It seems that it is the line with the DBI::connect call that refuses to supply the password. I no next to nothing about Perl, but It looks like the password is "undef" no matter what. I have created a $HOME/.pgpass file that works as it should with psql.
The Perl DBI version is 1.631, and sqitch is version 0.995.
Anybody experienced anything similar?
Thanks in advance for any help.
Regards
Eric Mortensen