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

Internal Server Errors when adding a release

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2014-02-17
    • None
    • Release editor
    • None

      Tried to add the same release 3 times and every time got "Internal Server Error".

      After filling fields on first page on "Add Release" got this when tried to move to track list:

      Couldn't render template "undef error - Attribute (params) does not pass the type constraint because: Validation failed for 'HashRef' with value undef at accessor HTML::FormHandler::params (defined at local/lib/perl5/HTML/FormHandler.pm line 307) line 4.
      HTML::FormHandler::params('MusicBrainz::Server::Form::ReleaseEditor::Information=HASH(0x...', undef) called at local/lib/perl5/HTML/FormHandler.pm line 565
      HTML::FormHandler::setup_form('MusicBrainz::Server::Form::ReleaseEditor::Information=HASH(0x...', 'params', undef) called at local/lib/perl5/HTML/FormHandler.pm line 410
      HTML::FormHandler::process('MusicBrainz::Server::Form::ReleaseEditor::Information=HASH(0x...', 'params', undef) called at lib/MusicBrainz/Server/Form.pm line 113
      MusicBrainz::Server::Form::unserialize('MusicBrainz::Server::Form::ReleaseEditor::Information=HASH(0x...', 'HASH(0xe1d0e70)') called at lib/MusicBrainz/Server/Wizard.pm line 524
      MusicBrainz::Server::Wizard::_load_form('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xc9d99b8)', 0, 'serialized', 'HASH(0xe1d0e70)') called at lib/MusicBrainz/Server/Wizard.pm line 238
      MusicBrainz::Server::Wizard::_load_page('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xc9d99b8)', 0, undef) called at lib/MusicBrainz/Server/Wizard.pm line 219
      MusicBrainz::Server::Wizard::load_page('MusicBrainz::Server::Wizard::ReleaseEditor::Add=HASH(0xc9d99b8)', 'information') called at lib/MusicBrainz/Server/Plugin/Wizard.pm line 25
      MusicBrainz::Server::Plugin::Wizard::page('MusicBrainz::Server::Plugin::Wizard=HASH(0xc1e1460)', 'information') called at /home/musicbrainz/musicbrainz-server/root/release/edit/tracklist.tt line 123
      eval

      {...} called at /home/musicbrainz/musicbrainz-server/root/release/edit/tracklist.tt line 123
      eval {...}

      called at /home/musicbrainz/musicbrainz-server/root/release/edit/tracklist.tt line 7
      Template::Document::_ANON_('Template::Context=HASH(0xb834408)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template/Document.pm line 163
      eval

      {...} called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template/Document.pm line 161
      Template::Document::process('Template::Document=HASH(0xe05a3b8)', 'Template::Context=HASH(0xb834408)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template/Context.pm line 347
      eval {...}

      called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template/Context.pm line 321
      Template::Context::process('Template::Context=HASH(0xb834408)', 'Template::Document=HASH(0xe05a3b8)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template/Service.pm line 94
      eval

      {...} called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template/Service.pm line 91
      Template::Service::process('Template::Service=HASH(0xb6c8ba0)', 'release/edit/tracklist.tt', 'HASH(0xe0443b0)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Template.pm line 66
      Template::process('Template=HASH(0xa177248)', 'release/edit/tracklist.tt', 'HASH(0xe0443b0)', 'SCALAR(0x4783f80)') called at local/lib/perl5/Catalyst/View/TT.pm line 263
      Catalyst::View::TT::render('MusicBrainz::Server::View::Default=HASH(0xb7a1568)', 'MusicBrainz::Server=HASH(0xc49b208)', 'release/edit/tracklist.tt') called at local/lib/perl5/Catalyst/View/TT.pm line 223
      eval {...}

      called at local/lib/perl5/Catalyst/View/TT.pm line 223
      Catalyst::View::TT::process('MusicBrainz::Server::View::Default=HASH(0xb7a1568)', 'MusicBrainz::Server=HASH(0xc49b208)') called at lib/MusicBrainz/Server/View/Default.pm line 18
      MusicBrainz::Server::View::Default::process('MusicBrainz::Server::View::Default=HASH(0xb7a1568)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xe02d708)', 'MusicBrainz::Server::View::Default=HASH(0xb7a1568)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst.pm line 1672
      eval

      {...} called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::View::Default', 'Catalyst::Action=HASH(0xe02d708)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::View::Default', 'Catalyst::Action=HASH(0xe02d708)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xe02d708)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'forward', 'MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::View::Default=HASH(0xb7a1568)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::View::Default=HASH(0xb7a1568)') called at local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::View::Default=HASH(0xb7a1568)') called at local/lib/perl5/Catalyst/Action/RenderView.pm line 57
      Catalyst::Action::RenderView::execute('Catalyst::Action::RenderView=HASH(0xbccc110)', 'MusicBrainz::Server::Controller::Root=HASH(0xb9342d0)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst.pm line 1672
      eval {...}

      called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::Controller::Root', 'Catalyst::Action::RenderView=HASH(0xbccc110)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::Controller::Root', 'Catalyst::Action::RenderView=HASH(0xbccc110)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action::RenderView=HASH(0xbccc110)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Controller.pm line 171
      Catalyst::Controller::_END('MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xb9...', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xbb764e8)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xb9...', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst.pm line 1672
      eval

      {...} called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xbb764e8)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xbb764e8)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xbb764e8)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'forward', 'MusicBrainz::Server=HASH(0xc49b208)', '_END') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'MusicBrainz::Server=HASH(0xc49b208)', '_END') called at local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0xc49b208)', '_END') called at local/lib/perl5/Catalyst/Controller.pm line 135
      Catalyst::Controller::_DISPATCH('MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xb9...', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xbccc038)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add=HASH(0xb9...', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst.pm line 1672
      eval {...}

      called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xbccc038)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xc49b208)', 'MusicBrainz::Server::Controller::ReleaseEditor::Add', 'Catalyst::Action=HASH(0xbccc038)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xbccc038)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'forward', 'MusicBrainz::Server=HASH(0xc49b208)', '/release_editor/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'MusicBrainz::Server=HASH(0xc49b208)', '/release_editor/_DISPATCH') called at local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0xc49b208)', '/release_editor/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 105
      Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x39b4ea0)', 'MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst.pm line 1618
      Catalyst::dispatch('MusicBrainz::Server=HASH(0xc49b208)') called at lib/MusicBrainz/Server.pm line 303
      MusicBrainz::Server::_ANON_() called at lib/MusicBrainz/Server.pm line 295
      MusicBrainz::Server::with_translations('MusicBrainz::Server=HASH(0xc49b208)', 'CODE(0xc7311d0)') called at lib/MusicBrainz/Server.pm line 304
      Class::MOP::Class:::around('CODE(0x2c191f8)', 'MusicBrainz::Server=HASH(0xc49b208)') 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(0xc49b208)') called at lib/MusicBrainz/Server.pm line 317
      Class::MOP::Class:::around('CODE(0x4632228)', 'MusicBrainz::Server=HASH(0xc49b208)') 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(0xc49b208)') called at lib/MusicBrainz/Server.pm line 362
      Class::MOP::Class:::around('CODE(0x9cf0d50)', 'MusicBrainz::Server=HASH(0xc49b208)') 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(0xc49b208)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 35
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      MusicBrainz::Server::dispatch('MusicBrainz::Server=HASH(0xc49b208)') called at local/lib/perl5/Catalyst.pm line 1968
      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(0xc7d9560)', 'Try::Tiny::Catch=REF(0xc6fec70)') called at local/lib/perl5/Catalyst.pm line 1974
      Catalyst::handle_request('MusicBrainz::Server', 'env', 'HASH(0xc7e3180)', 'response_cb', 'CODE(0xc735638)') called at local/lib/perl5/Catalyst/Plugin/AutoRestart.pm line 117
      Catalyst::Plugin::AutoRestart::handle_request('MusicBrainz::Server', 'env', 'HASH(0xc7e3180)', 'response_cb', 'CODE(0xc735638)') called at local/lib/perl5/Catalyst/Engine.pm line 688
      Catalyst::Engine::_ANON_('CODE(0xc735638)') called at local/lib/perl5/Plack/Handler/FCGI.pm line 130
      Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0xf549d0)', 'CODE(0x31b3680)') called at local/lib/perl5/Plack/Loader.pm line 84
      Plack::Loader::run('Plack::Loader=HASH(0xe7bc90)', 'Plack::Handler::FCGI=HASH(0xf549d0)') called at local/lib/perl5/Plack/Runner.pm line 267
      Plack::Runner::run('Plack::Runner=HASH(0xd04808)') called at local/bin/plackup line 10
      "
      Stack trace:
      line 18 MusicBrainz::Server::View::Default
      line 303 MusicBrainz::Server
      line 295 MusicBrainz::Server
      line 304 MusicBrainz::Server
      line 317 MusicBrainz::Server
      line 362 MusicBrainz::Server
      Request data:

      $VAR1 = {
      'query_parameters' => {},
      'body_parameters' => {
      'artist_credit.names.0.name' => "Atli \x

      {d6}rvarsson",
      'packaging_id' => '1',
      'date.month' => '1',
      'release_group_id' => '',
      'labels.0.catalog_number' => 'LLLCD 1241',
      'wizard_page_id' => '0',
      'release_group.name' => '',
      'artist_credit.names.0.artist.id' => '506941',
      'labels.0.deleted' => '0',
      'country_id' => '222',
      'primary_type_id' => '1',
      'labels.0.name' => "La\x{2010}La Land Records",
      'date.year' => '2013',
      'id' => '',
      'script_id' => '28',
      'status_id' => '1',
      'step_tracklist' => 'Tracklist',
      'date.day' => '29',
      'secondary_type_ids' => '2',
      'name' => 'Hansel & Gretel: Witch Hunters',
      'barcode' => '',
      'artist_credit.names.0.join_phrase' => '',
      'labels.0.label_id' => '6864',
      'wizard_session_id' => '4861',
      'language_id' => '120',
      'comment' => '',
      'gc-mode' => 'English',
      'artist_credit.names.0.artist.name' => "Atli \x{d6}

      rvarsson",
      'annotation' => ''
      }
      };

      URL: http://musicbrainz.org/release/add

      2nd try on exactly same way:

      Caught exception in MusicBrainz::Server::Controller::ReleaseEditor::Add->add "Can't use an undefined value as an ARRAY reference at lib/MusicBrainz/Server/Edit/Utils.pm line 165."
      Stack trace:
      line 165 MusicBrainz::Server::Edit::Utils
      line 53 MusicBrainz::Server::Wizard::ReleaseEditor::Add
      line 163 MusicBrainz::Server::Wizard::ReleaseEditor::Add
      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 303 MusicBrainz::Server
      line 295 MusicBrainz::Server
      line 304 MusicBrainz::Server
      line 317 MusicBrainz::Server
      line 362 MusicBrainz::Server
      Request data:

      $VAR1 = {
      'query_parameters' => {},
      'body_parameters' => {
      'artist_credit.names.0.name' => "Atli \x

      {d6}rvarsson",
      'packaging_id' => '1',
      'date.month' => '1',
      'release_group_id' => '',
      'labels.0.catalog_number' => 'LLLCD 1241',
      'wizard_page_id' => '0',
      'release_group.name' => '',
      'artist_credit.names.0.artist.id' => '506941',
      'labels.0.deleted' => '0',
      'country_id' => '222',
      'primary_type_id' => '1',
      'labels.0.name' => "La\x{2010}La Land Records",
      'date.year' => '2013',
      'id' => '',
      'script_id' => '28',
      'status_id' => '1',
      'step_tracklist' => 'Tracklist',
      'date.day' => '29',
      'secondary_type_ids' => '2',
      'name' => 'Hansel & Gretel: Witch Hunters',
      'barcode' => '',
      'artist_credit.names.0.join_phrase' => '',
      'labels.0.label_id' => '6864',
      'wizard_session_id' => '4863',
      'language_id' => '120',
      'comment' => '',
      'gc-mode' => 'English',
      'artist_credit.names.0.artist.name' => "Atli \x{d6}

      rvarsson",
      'annotation' => ''
      }
      };

      3rd try did let me edit tracks and all was fine until filling edit note and finally trying to add the release:

      Caught exception in MusicBrainz::Server::Controller::ReleaseEditor::Add->add "Can't use an undefined value as a HASH reference at lib/MusicBrainz/Server/Wizard.pm line 268."
      Stack trace:
      line 268 MusicBrainz::Server::Wizard
      line 855 MusicBrainz::Server::Wizard::ReleaseEditor
      line 94 MusicBrainz::Server::Wizard::ReleaseEditor
      line 23 MusicBrainz::Server::Controller::ReleaseEditor::Add
      line 303 MusicBrainz::Server
      line 295 MusicBrainz::Server
      line 304 MusicBrainz::Server
      line 317 MusicBrainz::Server
      line 362 MusicBrainz::Server
      Request data:

      $VAR1 = {
      'query_parameters' => {},
      'body_parameters' =>

      { 'save' => 'Enter edit', 'wizard_page_id' => '5', 'edit_note' => 'http://www.lalalandrecords.com/HandG.html http://soundtrackcollector.com/title/98979/Hansel+%26+Gretel%3A+Witch+Hunters#62960', 'id' => '', 'as_auto_editor' => '1', 'wizard_session_id' => '4868' }

      };

            bitmap Michael Wiencek
            listmycds.com Timo Martikainen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2014-02-17