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

Registering an account ignores DB_READ_ONLY

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2013-07-22
    • Component/s: Accounts
    • Labels:
      None

      Description

      Trying to create an account while DB_READ_ONLY is set gives:

      Error:

      Caught exception in MusicBrainz::Server::Controller::Account->register "DBD::Pg::st execute failed: ERROR: cannot execute INSERT in a read-only transaction at lib/Sql.pm line 414, line 3.
      at lib/Sql.pm line 429, line 3.
      Sql::_ANON_('DBD::Pg::st execute failed: ERROR: cannot execute INSERT in ...') called at local/lib/perl5/Try/Tiny.pm line 100
      Try::Tiny::try('CODE(0xef6ee00)', 'Try::Tiny::Catch=REF(0xef6eed8)') called at lib/Sql.pm line 430
      Sql::_select_list('Sql=HASH(0xef91110)', 'INSERT INTO editor (password,name) VALUES (?,?) RETURNING id', 'ARRAY(0x6349430)', 'arrayref', 'CODE(0x63494a8)') called at lib/Sql.pm line 449
      Sql::select_list_of_lists('Sql=HASH(0xef91110)', 'INSERT INTO editor (password,name) VALUES (?,?) RETURNING id', 'test', 'nikki test') called at lib/Sql.pm line 382
      Sql::select_single_column_array('Sql=HASH(0xef91110)', 'INSERT INTO editor (password,name) VALUES (?,?) RETURNING id', 'test', 'nikki test') called at lib/Sql.pm line 397
      Sql::select_single_value('Sql=HASH(0xef91110)', 'INSERT INTO editor (password,name) VALUES (?,?) RETURNING id', 'test', 'nikki test') called at lib/Sql.pm line 150
      Sql::insert_row('Sql=HASH(0xef91110)', 'editor', 'HASH(0xef65cb0)', 'id') called at lib/MusicBrainz/Server/Data/Editor.pm line 223
      MusicBrainz::Server::Data::Editor::_ANON_() called at lib/Sql.pm line 280
      Sql::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 71
      eval

      Unknown macro: {...}

      called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xe736bf8)', 'Try::Tiny::Catch=REF(0x6050188)') called at lib/Sql.pm line 294
      Sql::_auto_transaction('CODE(0xef65d58)', 'Sql=HASH(0xef91110)') called at lib/Sql.pm line 299
      Sql::_run_in_transaction_one('CODE(0xef65d58)', 'Sql=HASH(0xef91110)') called at lib/Sql.pm line 313
      Sql::run_in_transaction('CODE(0xef65d58)', 'Sql=HASH(0xef91110)') called at lib/MusicBrainz/Server/Data/Editor.pm line 233
      MusicBrainz::Server::Data::Editor::insert('MusicBrainz::Server::Data::Editor=HASH(0xc50d8a8)', 'HASH(0xef65cb0)') called at lib/MusicBrainz/Server/Controller/Account.pm line 440
      MusicBrainz::Server::Controller::Account::register('MusicBrainz::Server::Controller::Account=HASH(0xd6ca428)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xdc16150)', 'MusicBrainz::Server::Controller::Account=HASH(0xd6ca428)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst.pm line 1672
      eval

      called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xdec8428)', 'MusicBrainz::Server::Controller::Account', 'Catalyst::Action=HASH(0xdc16150)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xdec8428)', 'MusicBrainz::Server::Controller::Account', 'Catalyst::Action=HASH(0xdc16150)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xdc16150)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst/Controller.pm line 158
      Catalyst::Controller::_ACTION('MusicBrainz::Server::Controller::Account=HASH(0xd6ca428)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xdc14218)', 'MusicBrainz::Server::Controller::Account=HASH(0xd6ca428)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst.pm line 1672
      eval

      Unknown macro: {...}

      called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xdec8428)', 'MusicBrainz::Server::Controller::Account', 'Catalyst::Action=HASH(0xdc14218)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xdec8428)', 'MusicBrainz::Server::Controller::Account', 'Catalyst::Action=HASH(0xdc14218)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xdc14218)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x52ea018)', 'forward', 'MusicBrainz::Server=HASH(0xdec8428)', '_ACTION') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x52ea018)', 'MusicBrainz::Server=HASH(0xdec8428)', '_ACTION') called at local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0xdec8428)', '_ACTION') called at local/lib/perl5/Catalyst/Controller.pm line 132
      Catalyst::Controller::_DISPATCH('MusicBrainz::Server::Controller::Account=HASH(0xd6ca428)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xdc13ed0)', 'MusicBrainz::Server::Controller::Account=HASH(0xd6ca428)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst.pm line 1672
      eval

      called at local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0xdec8428)', 'MusicBrainz::Server::Controller::Account', 'Catalyst::Action=HASH(0xdc13ed0)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xdec8428)', 'MusicBrainz::Server::Controller::Account', 'Catalyst::Action=HASH(0xdc13ed0)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xdc13ed0)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x52ea018)', 'forward', 'MusicBrainz::Server=HASH(0xdec8428)', '/account/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x52ea018)', 'MusicBrainz::Server=HASH(0xdec8428)', '/account/_DISPATCH') called at local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0xdec8428)', '/account/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 105
      Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x52ea018)', 'MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst.pm line 1618
      Catalyst::dispatch('MusicBrainz::Server=HASH(0xdec8428)') called at lib/MusicBrainz/Server.pm line 326
      MusicBrainz::Server::_ANON_() called at lib/MusicBrainz/Server.pm line 300
      MusicBrainz::Server::with_translations('MusicBrainz::Server=HASH(0xdec8428)', 'CODE(0xe3a5908)') called at lib/MusicBrainz/Server.pm line 327
      Class::MOP::Class:::around('CODE(0x46e2bc0)', 'MusicBrainz::Server=HASH(0xdec8428)') 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(0xdec8428)') called at lib/MusicBrainz/Server.pm line 341
      Class::MOP::Class:::around('CODE(0xdc4e838)', 'MusicBrainz::Server=HASH(0xdec8428)') 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(0xdec8428)') called at lib/MusicBrainz/Server.pm line 386
      Class::MOP::Class:::around('CODE(0xdc62068)', 'MusicBrainz::Server=HASH(0xdec8428)') 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(0xdec8428)') 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(0xdec8428)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      MusicBrainz::Server::dispatch('MusicBrainz::Server=HASH(0xdec8428)') called at local/lib/perl5/Catalyst.pm line 1968
      Catalyst::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval

      Unknown macro: {...}

      called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xe3bed48)', 'Try::Tiny::Catch=REF(0xe0c9648)') called at local/lib/perl5/Catalyst.pm line 1974
      Catalyst::handle_request('MusicBrainz::Server', 'env', 'HASH(0xe3a8ec8)', 'response_cb', 'CODE(0xe36dce8)') called at local/lib/perl5/Catalyst/Plugin/AutoRestart.pm line 117
      Catalyst::Plugin::AutoRestart::handle_request('MusicBrainz::Server', 'env', 'HASH(0xe3a8ec8)', 'response_cb', 'CODE(0xe36dce8)') called at local/lib/perl5/Catalyst/Engine.pm line 688
      Catalyst::Engine::_ANON_('CODE(0xe36dce8)') called at local/lib/perl5/Plack/Handler/FCGI.pm line 130
      Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x261d9d0)', 'CODE(0x4896a78)') called at local/lib/perl5/Plack/Loader.pm line 84
      Plack::Loader::run('Plack::Loader=HASH(0x2544c90)', 'Plack::Handler::FCGI=HASH(0x261d9d0)') called at local/lib/perl5/Plack/Runner.pm line 267
      Plack::Runner::run('Plack::Runner=HASH(0x23cd808)') called at local/bin/plackup line 10
      at lib/Sql.pm line 294."
      Stack trace:
      line 233 MusicBrainz::Server::Data::Editor
      line 440 MusicBrainz::Server::Controller::Account
      line 326 MusicBrainz::Server
      line 300 MusicBrainz::Server
      line 327 MusicBrainz::Server
      line 341 MusicBrainz::Server
      line 386 MusicBrainz::Server
      Request data:

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

      Unknown macro: { 'register.email' => '', 'register.confirm_password' => 'test', 'register.password' => 'test', 'recaptcha_response_field' => 'from hyseay', 'recaptcha_challenge_field' => '03AHJ_Vuts0sm9mAvGSo8L2EeWJbm4W4_wMY-8j2taAxCS7RmzEvvPQqVHHlo_nqMqoVzLL-_mx1bP7O6NwNJWAbqqBW-5IWs3bkWd1zq2R3cC9DKHyHxuXl0Hzj6JM-2jnMr_CRLBUDTqpbmH2xu6oYDSInpvQAlAOBHNyDUXjPQxNcYV8WGUkwY', 'register.username' => 'nikki test' }

      };

      Host: pingu

      URL: http://musicbrainz.org/register

        Attachments

          Activity

            People

            • Assignee:
              ianmcorvidae Ian McEwen
              Reporter:
              nikki nikki
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2013-07-22