Error creating the Database

musicbrainz
Tags: #<Tag:0x00007fe3db11adc0>

#1

Hi everybody,
I am trying to Setup MusicBrainz Server from source code following the instructions https://github.com/metabrainz/musicbrainz-server/blob/master/INSTALL.md.

And I have errors with the command

./admin/InitDb.pl --createdb --clean

sudo ./admin/InitDb.pl --createdb --clean >> temp
Can’t locate package Throwable::Error for @MusicBrainz::Server::Exceptions::InvalidInput::ISA at /usr/local/lib/x86_64-linux-gnu/perl/5.22.2/Class/MOP/Class.pm line 957.
You can only consume roles, Throwable is not a Moose role at /usr/local/lib/x86_64-linux-gnu/perl/5.22.2/Moose/Exporter.pm line 419
Moose::with(‘Throwable’) called at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/Exceptions.pm line 21
require MusicBrainz/Server/Exceptions.pm at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/Connector.pm line 3
MusicBrainz::Server::Connector::BEGIN at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/Exceptions.pm line 0
eval {…} at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/Exceptions.pm line 0
require MusicBrainz/Server/Connector.pm at /usr/share/perl5/Module/Runtime.pm line 317
Module::Runtime::require_module(‘MusicBrainz::Server::Connector’) called at /usr/local/share/perl/5.22.2/Class/Load.pm line 174
Class::Load::try {…} at /usr/share/perl5/Try/Tiny.pm line 99
eval {…} at /usr/share/perl5/Try/Tiny.pm line 94
Try::Tiny::try(‘CODE(0x557fcd5da928)’, ‘Try::Tiny::Catch=REF(0x557fcd61f3a0)’) called at /usr/local/share/perl/5.22.2/Class/Load.pm line 180
Class::Load::try_load_class(‘MusicBrainz::Server::Connector’, undef) called at /usr/local/share/perl/5.22.2/Class/Load.pm line 35
Class::Load::load_class(‘MusicBrainz::Server::Connector’) called at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/DatabaseConnectionFactory.pm line 39
MusicBrainz::Server::DatabaseConnectionFactory::get_connection(‘MusicBrainz::Server::DatabaseConnectionFactory’, ‘SYSTEM’) called at admin/InitDb.pl line 70
main::RequireMinimumPostgreSQLVersion at admin/InitDb.pl line 517
Compilation failed in require at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/Connector.pm line 3.
BEGIN failed–compilation aborted at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/Connector.pm line 3.
Compilation failed in require at /home/osboxes/Documents/ATrx/GitInit/musicbrainz-serverInit/admin/…/lib/MusicBrainz/Server/DatabaseConnectionFactory.pm line 39.
MusicBrainz::Server::DatabaseConnectionFactory::get_connection(“MusicBrainz::Server::DatabaseConnectionFactory”, “SYSTEM”) called at ./admin/InitDb.pl line 70
main::RequireMinimumPostgreSQLVersion() called at ./admin/InitDb.pl line 517

I tried to various things to solve it but nothing worked.
Any help is welcome
Regards


#2

You added a sudo here.

Also note that this is the database creation step; it has nothing to do with npm.