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

Editing CD stubs ignores DB_READ_ONLY

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2013-07-22
    • None
    • None
    • None

      Trying to edit a CD stub:

      Fehler:

      Caught exception in MusicBrainz::Server::Controller::CDStub->edit "Failed query:
      'UPDATE release_raw SET artist = ?, comment = ?, barcode = ?, title = ? WHERE id = ?'
      ( test The Best of 1980-1990 (disc 2) 236849)
      DBD::Pg::st execute failed: ERROR: cannot execute UPDATE in a read-only transaction at lib/Sql.pm line 107, line 3.

      at lib/Sql.pm line 113, line 3.
      Sql::_ANON_('DBD::Pg::st execute failed: ERROR: cannot execute UPDATE in ...') called at admin/../local/lib/perl5/Try/Tiny.pm line 100
      Try::Tiny::try('CODE(0x11d9d7e8)', 'Try::Tiny::Catch=REF(0x11cf2bb0)') called at lib/Sql.pm line 114
      Sql::do('Sql=HASH(0x111ad880)', 'UPDATE release_raw SET artist = ?, comment = ?, barcode = ?, ...', undef, 'test', undef, 'The Best of 1980-1990 (disc 2)', 236849) called at lib/Sql.pm line 171
      Sql::update_row('Sql=HASH(0x111ad880)', 'release_raw', 'HASH(0x11d9d230)', 'HASH(0x11d9d530)') called at lib/MusicBrainz/Server/Data/CDStub.pm line 197
      MusicBrainz::Server::Data::CDStub::update('MusicBrainz::Server::Data::CDStub=HASH(0xae3ad30)', 'MusicBrainz::Server::Entity::CDStub=HASH(0x11429228)', 'HASH(0x1120e748)') called at lib/MusicBrainz/Server/Controller/CDStub.pm line 126
      MusicBrainz::Server::Controller::CDStub::edit('MusicBrainz::Server::Controller::CDStub=HASH(0xc4b7598)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc99a428)', 'MusicBrainz::Server::Controller::CDStub=HASH(0xc4b7598)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst.pm line 1672
      eval

      Unknown macro: {...}

      called at admin/../local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0x113e4a08)', 'MusicBrainz::Server::Controller::CDStub', 'Catalyst::Action=HASH(0xc99a428)') called at admin/../local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0x113e4a08)', 'MusicBrainz::Server::Controller::CDStub', 'Catalyst::Action=HASH(0xc99a428)') called at admin/../local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc99a428)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/ActionChain.pm line 38
      Catalyst::ActionChain::dispatch('Catalyst::ActionChain=HASH(0x10fc5ef8)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/Controller.pm line 158
      Catalyst::Controller::_ACTION('MusicBrainz::Server::Controller::CDStub=HASH(0xc4b7598)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc996350)', 'MusicBrainz::Server::Controller::CDStub=HASH(0xc4b7598)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst.pm line 1672
      eval

      called at admin/../local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0x113e4a08)', 'MusicBrainz::Server::Controller::CDStub', 'Catalyst::Action=HASH(0xc996350)') called at admin/../local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0x113e4a08)', 'MusicBrainz::Server::Controller::CDStub', 'Catalyst::Action=HASH(0xc996350)') called at admin/../local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc996350)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x4072bc0)', 'forward', 'MusicBrainz::Server=HASH(0x113e4a08)', '_ACTION') called at admin/../local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x4072bc0)', 'MusicBrainz::Server=HASH(0x113e4a08)', '_ACTION') called at admin/../local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0x113e4a08)', '_ACTION') called at admin/../local/lib/perl5/Catalyst/Controller.pm line 132
      Catalyst::Controller::_DISPATCH('MusicBrainz::Server::Controller::CDStub=HASH(0xc4b7598)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc994370)', 'MusicBrainz::Server::Controller::CDStub=HASH(0xc4b7598)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst.pm line 1672
      eval

      Unknown macro: {...}

      called at admin/../local/lib/perl5/Catalyst.pm line 1672
      Catalyst::execute('MusicBrainz::Server=HASH(0x113e4a08)', 'MusicBrainz::Server::Controller::CDStub', 'Catalyst::Action=HASH(0xc994370)') called at admin/../local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0x113e4a08)', 'MusicBrainz::Server::Controller::CDStub', 'Catalyst::Action=HASH(0xc994370)') called at admin/../local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc994370)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x4072bc0)', 'forward', 'MusicBrainz::Server=HASH(0x113e4a08)', '/cdstub/_DISPATCH') called at admin/../local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x4072bc0)', 'MusicBrainz::Server=HASH(0x113e4a08)', '/cdstub/_DISPATCH') called at admin/../local/lib/perl5/Catalyst.pm line 362
      Catalyst::forward('MusicBrainz::Server=HASH(0x113e4a08)', '/cdstub/_DISPATCH') called at admin/../local/lib/perl5/Catalyst/Dispatcher.pm line 105
      Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x4072bc0)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst.pm line 1618
      Catalyst::dispatch('MusicBrainz::Server=HASH(0x113e4a08)') 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(0x113e4a08)', 'CODE(0x109e9df0)') called at lib/MusicBrainz/Server.pm line 327
      Class::MOP::Class:::around('CODE(0x345c900)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0x113e4a08)') called at lib/MusicBrainz/Server.pm line 341
      Class::MOP::Class:::around('CODE(0xca516b0)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0x113e4a08)') called at lib/MusicBrainz/Server.pm line 386
      Class::MOP::Class:::around('CODE(0xca63990)', 'MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 35
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      MusicBrainz::Server::dispatch('MusicBrainz::Server=HASH(0x113e4a08)') called at admin/../local/lib/perl5/Catalyst.pm line 1968
      Catalyst::_ANON_() called at admin/../local/lib/perl5/Try/Tiny.pm line 76
      eval

      called at admin/../local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0x110015d0)', 'Try::Tiny::Catch=REF(0x111d9f20)') called at admin/../local/lib/perl5/Catalyst.pm line 1974
      Catalyst::handle_request('MusicBrainz::Server', 'env', 'HASH(0xd6834d0)', 'response_cb', 'CODE(0x111da208)') called at admin/../local/lib/perl5/Catalyst/Plugin/AutoRestart.pm line 117
      Catalyst::Plugin::AutoRestart::handle_request('MusicBrainz::Server', 'env', 'HASH(0xd6834d0)', 'response_cb', 'CODE(0x111da208)') called at admin/../local/lib/perl5/Catalyst/Engine.pm line 688
      Catalyst::Engine::_ANON_('CODE(0x111da208)') called at admin/../local/lib/perl5/Plack/Handler/FCGI.pm line 130
      Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x135b688)', 'CODE(0xca738e8)') called at admin/../local/lib/perl5/Plack/Loader.pm line 84
      Plack::Loader::run('Plack::Loader=HASH(0x1283250)', 'Plack::Handler::FCGI=HASH(0x135b688)') called at admin/../local/lib/perl5/Plack/Runner.pm line 267
      Plack::Runner::run('Plack::Runner=HASH(0x1108660)') called at ./admin/../local/bin/plackup line 10"

      Stack-Trace:
      line 197 MusicBrainz::Server::Data::CDStub
      line 126 MusicBrainz::Server::Controller::CDStub
      line 326 MusicBrainz::Server
      line 300 MusicBrainz::Server
      line 327 MusicBrainz::Server
      line 341 MusicBrainz::Server
      line 386 MusicBrainz::Server

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

      Unknown macro: { 'CDStub.title' => 'The Best of 1980-1990 (disc 2)', 'CDStub.tracks.14.artist' => 'Kim Wilde', 'CDStub.barcode' => '', 'CDStub.tracks.15.title' => 'The Final Countdown', 'CDStub.tracks.8.title' => 'Girl You Know It's True', 'CDStub.tracks.6.artist' => 'Marillion', 'CDStub.tracks.0.title' => 'Always on My Mind', 'CDStub.tracks.1.title' => 'Wake Me Up Before You Go Go', 'CDStub.tracks.13.artist' => 'Ultravox', 'CDStub.tracks.11.title' => 'Right Here Waiting', 'CDStub.tracks.8.artist' => 'Milli Vanilli', 'CDStub.tracks.15.artist' => 'Europe', 'CDStub.tracks.12.title' => 'The Tide Is High', 'CDStub.tracks.7.artist' => 'Kate Bush', 'CDStub.tracks.11.artist' => 'Richard Marx', 'CDStub.tracks.6.title' => 'Kayleigh', 'CDStub.tracks.0.artist' => 'Pet Shop Boys', 'CDStub.tracks.14.title' => 'Kids in America', 'CDStub.tracks.9.artist' => 'Roxette', 'CDStub.tracks.3.title' => 'Don't You Love Me Anymore', 'CDStub.tracks.5.title' => 'Still Loving You', 'CDStub.tracks.3.artist' => 'Joe Cocker', 'CDStub.multiple_artists' => '1', 'CDStub.tracks.5.artist' => 'Scorpions', 'CDStub.tracks.7.title' => 'Running Up That Hill', 'CDStub.tracks.10.artist' => 'Soulsister', 'CDStub.tracks.10.title' => 'The Way to Your Heart', 'CDStub.tracks.2.title' => 'We Don't Need Another Hero', 'CDStub.tracks.4.title' => 'Love Is a Battlefield', 'CDStub.tracks.9.title' => 'The Look', 'CDStub.tracks.2.artist' => 'Tina Turner', 'CDStub.comment' => 'test', 'CDStub.tracks.1.artist' => 'Wham', 'CDStub.tracks.13.title' => 'Vienna', 'CDStub.tracks.12.artist' => 'Blondie', 'CDStub.tracks.4.artist' => 'Pat Benatar' }

      };

      Host: pino

      Oberflächensprache: de

      URL: https://beta.musicbrainz.org/cdstub/LB4jSfqR.8AOo8SA.eXNx1LPIbU-/edit

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

              Created:
              Updated:
              Resolved:

                Version Package
                2013-07-22