tssgery / musicbrainz

A prebuilt, Turnkey Linux based, installation of the musicbrainz server
2 stars 1 forks source link

setup_musicbrainz fails during InitDb.pl process #1

Open prae5 opened 12 years ago

prae5 commented 12 years ago

The setup_musicbrainz script fails during the InitDB.pl process. I've tried this a few times and have also run it manually and again it has the same issue.

Could you give me a few pointers?

Downloaded: 8 files, 3.0G in 2h 14m 42s (383 KB/s)
Use of uninitialized value $databaseName in string eq at ./admin/InitDb.pl line 469.
Wed Oct 24 00:06:01 2012 : InitDb.pl starting
Failed query:
    'SELECT 1 FROM pg_shadow WHERE usename = ?'
    (musicbrainz)
DBI connect('dbname=template1','postgres',...) failed: FATAL:  Ident authentication failed for user "postgres" at local/lib/perl5/DBIx/Connector.pm line 32.

 at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 427.
    Sql::__ANON__('DBI connect(\'dbname=template1\',\'postgres\',...) failed: FA...') called at local/lib/perl5/Try/Tiny.pm line 100
    Try::Tiny::try('CODE(0x8ee9390)', 'Try::Tiny::Catch=REF(0x8faf6a8)') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 430
    Sql::_select_list('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'ARRAY(0x8efbc70)', 'arrayref', 'CODE(0x8efbcc0)') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 449
    Sql::select_list_of_lists('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'musicbrainz') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 382
    Sql::select_single_column_array('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'musicbrainz') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 397
    Sql::select_single_value('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'musicbrainz') called at ./admin/InitDb.pl line 191
    main::Create('READWRITE') called at ./admin/InitDb.pl line 499
DBI connect('dbname=template1','postgres',...) failed: FATAL:  Ident authentication failed for user "postgres" at local/lib/perl5/DBIx/Connector.pm line 32.
 at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 429.
    Sql::__ANON__('DBI connect(\'dbname=template1\',\'postgres\',...) failed: FA...') called at local/lib/perl5/Try/Tiny.pm line 100
    Try::Tiny::try('CODE(0x8ee9390)', 'Try::Tiny::Catch=REF(0x8faf6a8)') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 430
    Sql::_select_list('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'ARRAY(0x8efbc70)', 'arrayref', 'CODE(0x8efbcc0)') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 449
    Sql::select_list_of_lists('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'musicbrainz') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 382
    Sql::select_single_column_array('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'musicbrainz') called at /var/www/musicbrainz-server/admin/../lib/Sql.pm line 397
    Sql::select_single_value('Sql=HASH(0x8ee9360)', 'SELECT 1 FROM pg_shadow WHERE usename = ?', 'musicbrainz') called at ./admin/InitDb.pl line 191
    main::Create('READWRITE') called at ./admin/InitDb.pl line 499
Wed Oct 24 00:06:02 2012 : InitDb.pl failed
tssgery commented 12 years ago

musicbrainz has changed their schema a few times since this TKL patch was created, the patch has been broken for a little while now due to those changes and I haven't had the time to resolve the issues yet. I'll attempt to take a look in the next few days.

prae5 commented 12 years ago

thanks for the update

tssgery commented 12 years ago

I haven't forgotten about this, it's just not a huge priority for me. Musicbrainz has changed quite a bit since this TKLpatch was created and I no longer use this myself... If you want to take a look, feel free to fork my repo and have a go. Otherwise, I'll take a look when I get a chance.

dekela commented 11 years ago

Did you find any fix for this? I am trying to install it and it keeps on failing.

Thanks dekela

prae5 commented 11 years ago

I have a working setup for this. I will see if I can get access to my build server and post a patch.

If not I will do this next week when I'm home.

Sent from my iPhone

On 30 Jan 2013, at 14:02, dekela notifications@github.com wrote:

Did you find any fix for this? I am trying to install it and it keeps on failing.

Thanks dekela

— Reply to this email directly or view it on GitHub.

tssgery commented 11 years ago

For my part, I am just about through with this effort. Musicbrainz distributes prebuilt appliances http://musicbrainz.org/doc/MusicBrainz_Server/Setup#MusicBrainz_Server_virtual_machine) and their changes to the schema and process are tough for me to keep up with due to my other time commitments.

prae5 commented 11 years ago

I've looked to use their vm's in the past and they are less than reliable.

Past few times I've downloaded them to verify against my servers I've found they either don't support the current schema at the time, or they have had other errors in them that haven't made them useable.

On 31 January 2013 18:14, Eric Young notifications@github.com wrote:

For my part, I am just about through with this effort. Musicbrainz distributes prebuilt appliances http://musicbrainz.org/doc/MusicBrainz_Server/Setup#MusicBrainz_Server_virtual_machine) and their changes to the schema and process are tough for me to keep up with due to my other time commitments.

— Reply to this email directly or view it on GitHubhttps://github.com/tssgery/musicbrainz/issues/1#issuecomment-12956749.

tssgery commented 11 years ago

I have the same problems keeping up with them as they do with themselves then :)

dekela commented 11 years ago

Did you manage to get a patch? I am trying to get it installed using https://github.com/metabrainz/musicbrainz-server/blob/master/INSTALL.md

Thanks

Dekel

On Wed, Jan 30, 2013 at 4:04 PM, prae5 notifications@github.com wrote:

I have a working setup for this. I will see if I can get access to my build server and post a patch.

If not I will do this next week when I'm home.

Sent from my iPhone

On 30 Jan 2013, at 14:02, dekela notifications@github.com wrote:

Did you find any fix for this? I am trying to install it and it keeps on failing.

Thanks dekela

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/tssgery/musicbrainz/issues/1#issuecomment-12890621.

Dekel Amrani No Worries...

tssgery commented 11 years ago

As mentioned, I am not working on this right now. Someone can fork my repository and take over if they wish.