Error map
ActiveRecord::ReadOnlyRecord Rails: ActiveRecord::ReadOnlyRecord: Order is marked as readonly
Ruby / Rails · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (7). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (7)
Rails: ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "users" does not exist
Rails queried a table that isn't in the connected PostgreSQL database.
Rails: ActiveRecord::RecordInvalid: Validation failed: Email can't be blank, Name is too short
`save!`/`create!`/`update!` raised because validations failed.
Rails: ActiveRecord::ConnectionNotEstablished: No connection pool for 'ActiveRecord::Base' found
ActiveRecord has no database connection configured or established for this process.
Rails: PG::ConnectionBad: could not connect to server: Connection refused. Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Rails can't reach PostgreSQL — the server is down, wrong host/port/socket, or credentials/pg_hba block it.
Rails: ActiveRecord::StaleObjectError: Attempted to update a stale object: Order
Two users/processes updated the same record; the second save failed the `lock_version` check.
Rails: ActiveRecord::Deadlocked: PG::TRDeadlockDetected: ERROR: deadlock detected
Two transactions locked rows in opposite orders, so PostgreSQL aborted one.
Rails: ActiveRecord::AssociationTypeMismatch: User(#1234) expected, got "42" which is an instance of String(#5678)
You assigned the wrong kind of object (or an id string) to an association.
Two steps away (20)
Rails: ActiveRecord::PendingMigrationError — Migrations are pending. To resolve this issue, run: bin/rails db:migrate
The database schema is behind the migration files in the app.
Rails: ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'users.nickname' in 'field list'
The query references a column that doesn't exist in the table (missing migration, typo or stale schema cache).
Rails: ActiveRecord::StatementInvalid: PG::DuplicateColumn: ERROR: column "status" of relation "orders" already exists
A migration tried to add a column/table/index that already exists.
Rails: ActiveRecord::RecordNotFound: Couldn't find User with 'id'=42
`find`/`find_by!` didn't find a row, so Rails raises (and renders a 404 in production).
Rails: ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_users_on_email"
A unique index rejected an insert/update because the value already exists.
Rails: ActiveModel::ForbiddenAttributesError
You passed raw `params` to `new/create/update`, but strong parameters require permitting attributes first.
Rails: ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity)
A non-GET request arrived without a valid CSRF token for the session.
Redis: Error: connect ECONNREFUSED 127.0.0.1:6379 / Could not connect to Redis at 127.0.0.1:6379: Connection refused
Nothing is listening on the Redis host/port your client uses.
Redis: Error: write EPROTO ... SSL routines:ssl3_get_record:wrong version number / Connection reset by peer (TLS vs plaintext)
The client and server disagree about TLS — plaintext client to a TLS port, or TLS client to a plaintext port.
Rails: ActiveRecord::IrreversibleMigration — This migration uses remove_column without a type; db:rollback can't reverse it
`rails db:rollback` can't undo the migration because it contains an operation Rails can't invert.
Browser: Access to fetch at 'http://localhost:3000/api/items' from origin 'http://localhost:5173' has been blocked by CORS policy — Rails
The browser blocks calls from your front end to the Rails API because CORS headers are missing.
Rails: ArgumentError: SMTP From address may not be blank: nil / Net::SMTPAuthenticationError: 535 5.7.8 Username and Password not accepted
Rails mail delivery failed — missing `from`, wrong SMTP settings, or rejected credentials.
MySQL ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction
MySQL detected a deadlock between two transactions and rolled one back.
Mongoose: VersionError: No matching document found for id "5f..." version 3 modifiedPaths "items"
Mongoose tried to save a document whose array was changed by someone else since you loaded it (optimistic concurrency).
Ruby: NameError: uninitialized constant UsersController::User (Did you mean? Users)
Ruby (or Rails autoloading) couldn't find a class or module with that name in the current scope.
Ruby: NameError: undefined local variable or method 'x' for main:Object
Ruby saw a bare identifier that is neither a local variable nor a method on the current object.
Rails: ActionController::ParameterMissing: param is missing or the value is empty: user
`params.require(:user)` found no `user` key (or it was blank), so Rails responds 400.
Rails: ActionController::UnknownFormat — UsersController#show is missing a template for this request format and variant
The controller has no template or `respond_to` handler for the requested format (HTML/JSON/etc.).
Rails: ActionController::RoutingError (No route matches [GET] "/users/new")
The request path/method doesn't match any route in `config/routes.rb` (a 404 in production).
Rails: ActionController::UrlGenerationError: No route matches {:action=>"show", :controller=>"users", :id=>nil}, missing required keys: [:id]
A URL helper (`user_path(@user)`) was called without a value Rails needs (usually `nil` object).
Map another error
Popular: 500403400ORA-009331064Critical errorFileNotFoundException assemblyTypeError