You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bloodhound.apache.org by Terry Mark <te...@gmail.com> on 2015/10/05 20:54:37 UTC
Password authentication issues when running bloodhound_setup.py
I've confirmed that I can connect to the bloodhound database as the
bloodhound user:
(bloodhound)srv-lifelabssvn:/home/tmark/bloodhound/installer# psql -U
bloodhound -W -d bloodhound
Password for user bloodhound:
psql (9.3.6)
Type "help" for help.
bloodhound=>
However, when I run bloodhound_setup.py, I invariably get an error. I had
read that others had experienced problems with passwords which required
escaping of some characters, so I ensured that these passwords should not
require escaping.
(bloodhound)root@srv-lifelabssvn:/home/tmark/bloodhound/installer# python
bloodhound_setup.py -u bloodhound -p test1234 -d postgres
--admin-user=admin --admin-password=abc123 --database-host=127.0.0.1
--project=
main --environments_directory=bloodhound/environments
Warning: Environment already exists at bloodhound/environments/main.
Warning: Updating
/home/tmark/bloodhound/installer/bloodhound/environments/main/bloodhound.htdigest.
Backup created at
/home/tmark/bloodhound/installer/bloodhound/environments/main/bloodhound.htdigest_bak_1.
Adding TRAC_ADMIN permissions to the admin user admin
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Running upgrades
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Running wiki upgrades
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Running wiki Bloodhound upgrades
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Loading default product wiki
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Running default product wiki upgrades
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
Running default product Bloodhound wiki upgrades
Error: TimeoutError: Unable to get database connection within 0 seconds.
(OperationalError: FATAL: password authentication failed for user
"bloodhound"
FATAL: password authentication failed for user "bloodhound"
)
You can now start Bloodhound by running:
tracd --port=8000
/home/tmark/bloodhound/installer/bloodhound/environments/main
And point your browser at http://localhost:8000/main
What am I doing wrong ? I know sqlite3 is supposed to be easier to deploy,
but we'd really rather figure this out now and use the database we want to
use from the outset.
thanks !
terry
Re: Password authentication issues when running bloodhound_setup.py
Posted by Ryan J Ollos <rj...@apache.org>.
On Mon, Oct 5, 2015 at 11:54 AM, Terry Mark <te...@gmail.com> wrote:
>
> However, when I run bloodhound_setup.py, I invariably get an error. I had
> read that others had experienced problems with passwords which required
> escaping of some characters, so I ensured that these passwords should not
> require escaping.
>
Just for reference, the characters that need to be URL-encoded are listed
here:
http://trac.edgewall.org/wiki/TracEnvironment#DatabaseConnectionStrings
What am I doing wrong ? I know sqlite3 is supposed to be easier to deploy,
> but we'd really rather figure this out now and use the database we want to
> use from the outset.
>
You could look in the config file in your environments "config" directory.
You should see trac.ini and another file ... I forget the name, but it
might be bloodhound.ini. I believe the later contains the database string
in the [trac] section. I'd check that it looks correct.