Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-4953

Internal server error while adding new recording in the release editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-02-17
    • Component/s: Release editor
    • Labels:
      None

      Description

      I received this error while trying to add a new recording to a new artist. I'm using Chrome 20 under Windows 7x64 SP1 if that matters.

      Caught exception in MusicBrainz::Server::Controller::ReleaseEditor::Add->add "Could not create MusicBrainz::Server::Edit::ReleaseGroup::Create edit

      $VAR1 = {
      'name' => undef,
      'artist_credit' => {
      'names' => [
      {
      'join_phrase' => '',
      'artist' =>

      { 'name' => 'Freshkills', 'id' => 903902 }

      ,
      'name' => 'Freshkills'
      }
      ]
      }
      };

      Attribute (data) does not pass the type constraint because: Validation failed for 'MooseX::Types::Structured::Dict[type_id,MooseX::Types::Structured::Optional[Maybe[Int]],name,Str,artist_credit,MusicBrainz::Server::Edit::Types::ArtistCreditDefinition,comment,MooseX::Types::Structured::Optional[Maybe[Str]],secondary_type_ids,MooseX::Types::Structured::Optional[ArrayRef[Int]]]' with value { artist_credit:

      { names: ARRAY(0xe117d40) }

      , name: undef, type_id: undef } at accessor MusicBrainz::Server::Edit::ReleaseGroup::Create::data (defined at lib/MusicBrainz/Server/Edit/ReleaseGroup/Create.pm line 28) line 4
      MusicBrainz::Server::Edit::ReleaseGroup::Create::data('MusicBrainz::Server::Edit::ReleaseGroup::Create=HASH(0x104cf888)', 'HASH(0xfddeda0)') called at lib/MusicBrainz/Server/Edit/ReleaseGroup/Create.pm line 75
      MusicBrainz::Server::Edit::ReleaseGroup::Create::initialize('MusicBrainz::Server::Edit::ReleaseGroup::Create=HASH(0x104cf888)', 'name', undef, 'artist_credit', 'HASH(0xe056cb0)') called at lib/MusicBrainz/Server/Data/Edit.pm line 323
      MusicBrainz::Server::Data::Edit::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval

      {...} called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0x1067e6f0)', 'Try::Tiny::Catch=REF(0x967a3c8)') called at lib/MusicBrainz/Server/Data/Edit.pm line 333
      MusicBrainz::Server::Data::Edit::preview('MusicBrainz::Server::Data::Edit=HASH(0xb31d2e0)', 'edit_type', 20, 'editor_id', 474599, 'name', undef, 'artist_credit', 'HASH(0xe056cb0)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 1221
      MusicBrainz::Server::Wizard::ReleaseEditor::_ANON_('edit_type', 20, 'editor_id', 474599, 'name', undef, 'artist_credit', 'HASH(0xe056cb0)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 1266
      MusicBrainz::Server::Wizard::ReleaseEditor::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval {...}

      called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xe063ad0)', 'Try::Tiny::Catch=REF(0xe055530)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 1275
      MusicBrainz::Server::Wizard::ReleaseEditor::_create_edit('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'CODE(0xe063cc8)', 20, 474599, 'name', undef, 'artist_credit', 'HASH(0xe056cb0)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 1222
      MusicBrainz::Server::Wizard::ReleaseEditor::_preview_edit('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 20, undef, 'name', undef, 'artist_credit', 'HASH(0xe056cb0)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 822
      MusicBrainz::Server::Wizard::ReleaseEditor::_ANON_(20, undef, 'name', undef, 'artist_credit', 'HASH(0xe056cb0)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor/Add.pm line 162
      MusicBrainz::Server::Wizard::ReleaseEditor::Add::_ANON_('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'data', 'HASH(0xe04f2e0)', 'create_edit', 'CODE(0xdf9b930)', 'edit_note', undef, 'previewing', 1) called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Moose.pm line 119
      Moose::inner() called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 897
      MusicBrainz::Server::Wizard::ReleaseEditor::create_edits('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'data', 'HASH(0xe04f2e0)', 'create_edit', 'CODE(0xdf9b930)', 'edit_note', undef, 'previewing', 1) called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Moose/Meta/Method/Augmented.pm line 48
      MusicBrainz::Server::Wizard::ReleaseEditor::Add::create_edits('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'data', 'HASH(0xe04f2e0)', 'create_edit', 'CODE(0xdf9b930)', 'edit_note', undef, 'previewing', 1) called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 56
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'data', 'HASH(0xe04f2e0)', 'create_edit', 'CODE(0xdf9b930)', 'edit_note', undef, 'previewing', 1) called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      MusicBrainz::Server::Wizard::ReleaseEditor::Add::create_edits('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'data', 'HASH(0xe04f2e0)', 'create_edit', 'CODE(0xdf9b930)', 'edit_note', undef, 'previewing', 1) called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 824
      MusicBrainz::Server::Wizard::ReleaseEditor::prepare_edits('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 83
      MusicBrainz::Server::Wizard::ReleaseEditor::_ANON_ called at lib/MusicBrainz/Server/Wizard.pm line 168
      MusicBrainz::Server::Wizard::navigate_to_page('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)') called at lib/MusicBrainz/Server/Wizard.pm line 401
      MusicBrainz::Server::Wizard::_route('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)', 'MusicBrainz::Server::Form::ReleaseEditor::Recordings=HASH(0xd...') called at lib/MusicBrainz/Server/Wizard.pm line 132
      MusicBrainz::Server::Wizard::process('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)') called at lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 92
      MusicBrainz::Server::Wizard::ReleaseEditor::run('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xd0d4a70)') called at lib/MusicBrainz/Server/Controller/ReleaseEditor/Add.pm line 23
      MusicBrainz::Server::Controller::ReleaseEditor::Add::add('MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xc4...', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc729350)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xc4...', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst.pm line 1667
      eval

      {...} called at local/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc729350)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc729350)') called at lib/MusicBrainz/Server.pm line 296
      MusicBrainz::Server::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc729350)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc729350)', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst/Controller.pm line 125
      Catalyst::Controller::_ACTION('MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xc4...', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc5deb08)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xc4...', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst.pm line 1667
      eval {...}

      called at local/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc5deb08)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc5deb08)') called at lib/MusicBrainz/Server.pm line 296
      MusicBrainz::Server::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc5deb08)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc5deb08)', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x46c0c38)', 'forward', 'MusicBrainz::Server=HASH(0xd0f7070)', '_ACTION') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x46c0c38)', 'MusicBrainz::Server=HASH(0xd0f7070)', '_ACTION') called at local/lib/perl5/Catalyst.pm line 342
      Catalyst::forward('MusicBrainz::Server=HASH(0xd0f7070)', '_ACTION') called at local/lib/perl5/Catalyst/Controller.pm line 99
      Catalyst::Controller::_DISPATCH('MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xc4...', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc73c500)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xc4...', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst.pm line 1667
      eval

      {...} called at local/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc73c500)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc73c500)') called at lib/MusicBrainz/Server.pm line 296
      MusicBrainz::Server::execute('MusicBrainz::Server=HASH(0xd0f7070)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xc73c500)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc73c500)', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x46c0c38)', 'forward', 'MusicBrainz::Server=HASH(0xd0f7070)', '/release_editor/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x46c0c38)', 'MusicBrainz::Server=HASH(0xd0f7070)', '/release_editor/_DISPATCH') called at local/lib/perl5/Catalyst.pm line 342
      Catalyst::forward('MusicBrainz::Server=HASH(0xd0f7070)', '/release_editor/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 105
      Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x46c0c38)', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst.pm line 1613
      Catalyst::dispatch('MusicBrainz::Server=HASH(0xd0f7070)') called at lib/MusicBrainz/Server.pm line 261
      Class::MOP::Class:::around('CODE(0x4289a98)', 'MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      MusicBrainz::Server::dispatch('MusicBrainz::Server=HASH(0xd0f7070)') called at local/lib/perl5/Catalyst.pm line 1963
      Catalyst::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval {...}

      called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xc9a1a88)', 'Try::Tiny::Catch=REF(0xd1697d8)') called at local/lib/perl5/Catalyst.pm line 1969
      Catalyst::handle_request('MusicBrainz::Server', 'env', 'HASH(0xc9ccc50)') called at lib/Catalyst/Plugin/AutoRestart.pm line 119
      Catalyst::Plugin::AutoRestart::handle_request('MusicBrainz::Server', 'env', 'HASH(0xc9ccc50)') called at local/lib/perl5/Catalyst/Engine.pm line 856
      Catalyst::Engine::_ANON_('CODE(0xc9a18f0)') called at local/lib/perl5/Plack/Handler/FCGI.pm line 134
      Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x2729a30)', 'CODE(0xc93a078)') called at local/lib/perl5/Plack/Loader.pm line 88
      Plack::Loader::run('Plack::Loader=HASH(0x26f2e00)', 'Plack::Handler::FCGI=HASH(0x2729a30)') called at local/lib/perl5/Plack/Runner.pm line 263
      Plack::Runner::run('Plack::Runner=HASH(0x24f5808)') called at local/bin/plackup line 10
      at lib/MusicBrainz/Server/Data/Edit.pm line 333"
      Stack trace:
      line 1274 MusicBrainz::Server::Wizard::ReleaseEditor
      line 1275 MusicBrainz::Server::Wizard::ReleaseEditor
      line 1222 MusicBrainz::Server::Wizard::ReleaseEditor
      line 822 MusicBrainz::Server::Wizard::ReleaseEditor
      line 162 MusicBrainz::Server::Wizard::ReleaseEditor::Add
      line 897 MusicBrainz::Server::Wizard::ReleaseEditor
      line 824 MusicBrainz::Server::Wizard::ReleaseEditor
      line 83 MusicBrainz::Server::Wizard::ReleaseEditor
      line 168 MusicBrainz::Server::Wizard
      line 401 MusicBrainz::Server::Wizard
      line 132 MusicBrainz::Server::Wizard
      line 92 MusicBrainz::Server::Wizard::ReleaseEditor
      line 23 MusicBrainz::Server::Controller::ReleaseEditor::Add
      line 296 MusicBrainz::Server
      line 296 MusicBrainz::Server
      line 296 MusicBrainz::Server
      line 261 MusicBrainz::Server
      Request data:

      $VAR1 = {
      'query_parameters' =>

      { 'artist' => '78813acc-c603-47e0-b652-08c58c5294e5' }

      ,
      'body_parameters' => {
      'next' => "Next \x

      {bb}

      ",
      'rec_mediums.0.associations.3.confirmed' => '1',
      'select-recording-0-2' => 'on',
      'select-recording-0-8' => 'on',
      'select-recording-0-1' => 'on',
      'rec_mediums.0.associations.2.gid' => 'new',
      'rec_mediums.0.associations.3.gid' => 'new',
      'rec_mediums.0.associations.1.confirmed' => '1',
      'rec_mediums.0.associations.5.gid' => 'new',
      'rec_mediums.0.tracklist_id' => '',
      'rec_mediums.0.associations.7.edit_sha1' => 'w+NDgJpnCGzDlOK98+ZbtdFIP5o',
      'rec_mediums.0.associations.6.confirmed' => '1',
      'rec_mediums.0.associations.0.edit_sha1' => '+mT6x5c0VkpUzOVP3CiAHdh7QZE',
      'rec_mediums.0.associations.1.gid' => 'new',
      'select-recording-0-5' => 'on',
      'rec_mediums.0.associations.0.confirmed' => '1',
      'rec_mediums.0.associations.9.gid' => 'new',
      'rec_mediums.0.associations.7.confirmed' => '1',
      'rec_mediums.0.associations.5.edit_sha1' => 'iTyeGJ814juFUAjT6fxGM3iHB+g',
      'select-recording-0-6' => 'on',
      'rec_mediums.0.associations.8.gid' => 'new',
      'select-recording-0-4' => 'on',
      'rec_mediums.0.associations.7.gid' => 'new',
      'rec_mediums.0.associations.6.gid' => 'new',
      'rec_mediums.0.associations.1.edit_sha1' => 'Ev7E5K5UTwAF5bF9rcr5RpDksf4',
      'select-recording-0-3' => 'on',
      'rec_mediums.0.associations.5.confirmed' => '1',
      'rec_mediums.0.associations.4.gid' => 'new',
      'select-recording-0-7' => 'on',
      'select-recording-0-0' => 'on',
      'select-recording-0-9' => 'on',
      'wizard_page_id' => '3',
      'rec_mediums.0.associations.8.confirmed' => '1',
      'rec_mediums.0.associations.2.edit_sha1' => 'fjzqSskCiiR+yoo3rvP3AvAeYQE',
      'rec_mediums.0.associations.6.edit_sha1' => '4Dr/c90bOnap8WkBXMoly51XQro',
      'rec_mediums.0.associations.4.confirmed' => '1',
      'rec_mediums.0.associations.8.edit_sha1' => 'OgY4e3Sl4f9yeLQHilcUfJpJnRM',
      'rec_mediums.0.associations.9.confirmed' => '1',
      'rec_mediums.0.associations.9.edit_sha1' => '7VoaPdus+2ugmDKCMtvtc83xTOw',
      'rec_mediums.0.associations.0.gid' => 'new',
      'wizard_session_id' => '0.620275426280813',
      'rec_mediums.0.associations.2.confirmed' => '1',
      'rec_mediums.0.associations.4.edit_sha1' => 'Tja/JuavGnlC2H701EgEx4TLgPg',
      'rec_mediums.0.associations.3.edit_sha1' => '+i/lNa4qmNJTPcyVualRbVPE5vU'
      }
      };

      URL: http://musicbrainz.org/release/add?artist=78813acc-c603-47e0-b652-08c58c5294e5

        Attachments

          Activity

            People

            • Assignee:
              bitmap Michael Wiencek
              Reporter:
              ryanthadude Patrick Ryan Shortt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2014-02-17