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

setup_musicbrainz fails during InitDb.pl process #1

Open
prae5 opened this issue Oct 24, 2012 · 10 comments
Open

setup_musicbrainz fails during InitDb.pl process #1

prae5 opened this issue Oct 24, 2012 · 10 comments

Comments

@prae5
Copy link

prae5 commented Oct 24, 2012

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
Copy link
Owner

tssgery commented Oct 24, 2012

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
Copy link
Author

prae5 commented Oct 25, 2012

thanks for the update

@tssgery
Copy link
Owner

tssgery commented Nov 11, 2012

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
Copy link

dekela commented Jan 30, 2013

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

Thanks
dekela

@prae5
Copy link
Author

prae5 commented Jan 30, 2013

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 [email protected] 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
Copy link
Owner

tssgery commented Jan 31, 2013

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
Copy link
Author

prae5 commented Jan 31, 2013

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 [email protected] 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//issues/1#issuecomment-12956749.

@tssgery
Copy link
Owner

tssgery commented Jan 31, 2013

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

@dekela
Copy link

dekela commented Feb 6, 2013

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 [email protected] 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 [email protected] 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//issues/1#issuecomment-12890621.

Dekel Amrani
No Worries...

@tssgery
Copy link
Owner

tssgery commented Feb 6, 2013

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

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

No branches or pull requests

3 participants