Common Ruby on Rails Errors
Ruby on Rails errors including ActiveRecord exceptions, routing errors, migration issues, and deployment problems.
100 errors documented with step-by-step fixes
Record not found Rails
ActiveRecord::RecordNotFoundfind() couldn't locate a record with the given ID.
Record invalid Rails
ActiveRecord::RecordInvalidA validation failed when saving.
Duplicate record Rails
ActiveRecord::RecordNotUniqueA unique constraint was violated.
Statement invalid Rails SQL
ActiveRecord::StatementInvalidThe generated SQL query is invalid.
Table does not exist Rails
PG::UndefinedTableThe database table hasn't been created.
Column does not exist Rails
PG::UndefinedColumnA column referenced in the query doesn't exist.
Pending migrations Rails
ActiveRecord::PendingMigrationErrorThere are unapplied migrations.
Undefined method for nil Rails
NoMethodError: undefined method for nil:NilClassYou called a method on nil, often from a failed lookup.
Routing error Rails
ActionController::RoutingErrorNo route matches the request.
Parameter missing Rails
ActionController::ParameterMissingA required strong parameter is missing.
Missing template Rails
ActionView::MissingTemplateThe view template file doesn't exist.
Double render error Rails
DoubleRenderErrorThe action tried to render or redirect more than once.
Invalid authenticity token Rails CSRF
ActionController::InvalidAuthenticityTokenThe CSRF token is missing or invalid.
Cannot load file Rails
LoadError: cannot load fileRuby can't find the file to require.
Wrong number of arguments Ruby Rails
ArgumentError: wrong number of argumentsA method was called with the wrong number of parameters.
Uninitialized constant Rails
NameError: uninitialized constantRuby can't find the class or module.
Sidekiq job retry failed Rails
Sidekiq::JobRetry::HandledA background job exhausted all retries.
Redis connection error Rails
Redis::CannotConnectErrorCan't connect to the Redis server.
N+1 query problem Rails
N+1 query RailsEach iteration triggers a separate database query.
Connection pool timeout Rails
ActiveRecord::ConnectionTimeoutErrorAll database connections in the pool are in use.
ActionController::UnknownFormat in Ruby on Rails
ActionController::UnknownFormatThis Ruby on Rails error occurs when unknownformat. Check the stack trace for the exact location and fix the root cause.
ActionController::UnpermittedParameters in Ruby on Rails
ActionController::UnpermittedParametersThis Ruby on Rails error occurs when unpermittedparameters. Check the stack trace for the exact location and fix the root cause.
ActionController::BadRequest in Ruby on Rails
ActionController::BadRequestThis Ruby on Rails error occurs when badrequest. Check the stack trace for the exact location and fix the root cause.
ActionController::MethodNotAllowed in Ruby on Rails
ActionController::MethodNotAllowedThis Ruby on Rails error occurs when methodnotallowed. Check the stack trace for the exact location and fix the root cause.
ActionDispatch::Http::Parameters::ParseError in Ruby on Rails
ActionDispatch::Http::Parameters::ParseErrorThis Ruby on Rails error occurs when parseerror. Check the stack trace for the exact location and fix the root cause.
AbstractController::ActionNotFound in Ruby on Rails
AbstractController::ActionNotFoundThis Ruby on Rails error occurs when actionnotfound. Check the stack trace for the exact location and fix the root cause.
ActionView::Template::Error in Ruby on Rails
ActionView::Template::ErrorThis Ruby on Rails error occurs when error. Check the stack trace for the exact location and fix the root cause.
ActionView::SyntaxErrorInTemplate in Ruby on Rails
ActionView::SyntaxErrorInTemplateThis Ruby on Rails error occurs when syntaxerrorintemplate. Check the stack trace for the exact location and fix the root cause.
ActionView::MissingExactTemplate in Ruby on Rails
ActionView::MissingExactTemplateThis Ruby on Rails error occurs when missingexacttemplate. Check the stack trace for the exact location and fix the root cause.
ActiveModel::UnknownAttributeError in Ruby on Rails
ActiveModel::UnknownAttributeErrorThis Ruby on Rails error occurs when unknownattributeerror. Check the stack trace for the exact location and fix the root cause.
ActiveModel::ForbiddenAttributesError in Ruby on Rails
ActiveModel::ForbiddenAttributesErrorThis Ruby on Rails error occurs when forbiddenattributeserror. Check the stack trace for the exact location and fix the root cause.
ActiveModel::ValidationError in Ruby on Rails
ActiveModel::ValidationErrorThis Ruby on Rails error occurs when validationerror. Check the stack trace for the exact location and fix the root cause.
ActiveModel::MissingAttributeError in Ruby on Rails
ActiveModel::MissingAttributeErrorThis Ruby on Rails error occurs when missingattributeerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::AssociationTypeMismatch in Ruby on Rails
ActiveRecord::AssociationTypeMismatchThis Ruby on Rails error occurs when associationtypemismatch. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::InverseOfAssociationNotFoundError in Ruby on Rails
ActiveRecord::InverseOfAssociationNotFoundErrorThis Ruby on Rails error occurs when inverseofassociationnotfounderror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::HasManyThroughAssociationNotFoundError in Ruby on Rails
ActiveRecord::HasManyThroughAssociationNotFoundErrorThis Ruby on Rails error occurs when hasmanythroughassociationnotfounderror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::EagerLoadPolymorphicError in Ruby on Rails
ActiveRecord::EagerLoadPolymorphicErrorThis Ruby on Rails error occurs when eagerloadpolymorphicerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::ReadOnlyRecord in Ruby on Rails
ActiveRecord::ReadOnlyRecordThis Ruby on Rails error occurs when readonlyrecord. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::StaleObjectError in Ruby on Rails
ActiveRecord::StaleObjectErrorThis Ruby on Rails error occurs when staleobjecterror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::IrreversibleMigration in Ruby on Rails
ActiveRecord::IrreversibleMigrationThis Ruby on Rails error occurs when irreversiblemigration. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::DuplicateMigrationVersionError in Ruby on Rails
ActiveRecord::DuplicateMigrationVersionErrorThis Ruby on Rails error occurs when duplicatemigrationversionerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::DuplicateMigrationNameError in Ruby on Rails
ActiveRecord::DuplicateMigrationNameErrorThis Ruby on Rails error occurs when duplicatemigrationnameerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::IllegalMigrationNameError in Ruby on Rails
ActiveRecord::IllegalMigrationNameErrorThis Ruby on Rails error occurs when illegalmigrationnameerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::EnvironmentMismatchError in Ruby on Rails
ActiveRecord::EnvironmentMismatchErrorThis Ruby on Rails error occurs when environmentmismatcherror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::ProtectedEnvironmentError in Ruby on Rails
ActiveRecord::ProtectedEnvironmentErrorThis Ruby on Rails error occurs when protectedenvironmenterror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::NoDatabaseError in Ruby on Rails
ActiveRecord::NoDatabaseErrorThis Ruby on Rails error occurs when nodatabaseerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::DatabaseAlreadyExists in Ruby on Rails
ActiveRecord::DatabaseAlreadyExistsThis Ruby on Rails error occurs when databasealreadyexists. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::AdapterNotFound in Ruby on Rails
ActiveRecord::AdapterNotFoundThis Ruby on Rails error occurs when adapternotfound. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::ConnectionNotEstablished in Ruby on Rails
ActiveRecord::ConnectionNotEstablishedThis Ruby on Rails error occurs when connectionnotestablished. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::ConnectionTimeoutError (variant) in Ruby on Rails
ActiveRecord::ConnectionTimeoutError (variant)This Ruby on Rails error occurs when connectiontimeouterror (variant). Check the stack trace for the exact location and fix the root cause.
ActiveRecord::Deadlocked in Ruby on Rails
ActiveRecord::DeadlockedThis Ruby on Rails error occurs when deadlocked. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::LockWaitTimeout in Ruby on Rails
ActiveRecord::LockWaitTimeoutThis Ruby on Rails error occurs when lockwaittimeout. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::SerializationFailure in Ruby on Rails
ActiveRecord::SerializationFailureThis Ruby on Rails error occurs when serializationfailure. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::SubclassNotFound in Ruby on Rails
ActiveRecord::SubclassNotFoundThis Ruby on Rails error occurs when subclassnotfound. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::ConfigurationError in Ruby on Rails
ActiveRecord::ConfigurationErrorThis Ruby on Rails error occurs when configurationerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::ValueTooLong in Ruby on Rails
ActiveRecord::ValueTooLongThis Ruby on Rails error occurs when valuetoolong. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::RangeError in Ruby on Rails
ActiveRecord::RangeErrorThis Ruby on Rails error occurs when rangeerror. Check the stack trace for the exact location and fix the root cause.
ActiveRecord::NotNullViolation in Ruby on Rails
ActiveRecord::NotNullViolationThis Ruby on Rails error occurs when notnullviolation. Check the stack trace for the exact location and fix the root cause.
ActiveStorage::IntegrityError in Ruby on Rails
ActiveStorage::IntegrityErrorThis Ruby on Rails error occurs when integrityerror. Check the stack trace for the exact location and fix the root cause.
ActiveStorage::FileNotFoundError in Ruby on Rails
ActiveStorage::FileNotFoundErrorThis Ruby on Rails error occurs when filenotfounderror. Check the stack trace for the exact location and fix the root cause.
ActiveStorage::InvariableError in Ruby on Rails
ActiveStorage::InvariableErrorThis Ruby on Rails error occurs when invariableerror. Check the stack trace for the exact location and fix the root cause.
ActiveJob::DeserializationError in Ruby on Rails
ActiveJob::DeserializationErrorThis Ruby on Rails error occurs when deserializationerror. Check the stack trace for the exact location and fix the root cause.
ActiveJob::SerializationError in Ruby on Rails
ActiveJob::SerializationErrorThis Ruby on Rails error occurs when serializationerror. Check the stack trace for the exact location and fix the root cause.
Sidekiq::Shutdown in Ruby on Rails
Sidekiq::ShutdownThis Ruby on Rails error occurs when shutdown. Check the stack trace for the exact location and fix the root cause.
Rack::Timeout::RequestTimeoutException in Ruby on Rails
Rack::Timeout::RequestTimeoutExceptionThis Ruby on Rails error occurs when requesttimeoutexception. Check the stack trace for the exact location and fix the root cause.
Rack::Utils::InvalidParameterError in Ruby on Rails
Rack::Utils::InvalidParameterErrorThis Ruby on Rails error occurs when invalidparametererror. Check the stack trace for the exact location and fix the root cause.
Puma::HttpParserError in Ruby on Rails
Puma::HttpParserErrorThis Ruby on Rails error occurs when httpparsererror. Check the stack trace for the exact location and fix the root cause.
Puma::MiniSSL::SSLError in Ruby on Rails
Puma::MiniSSL::SSLErrorThis Ruby on Rails error occurs when sslerror. Check the stack trace for the exact location and fix the root cause.
Sprockets::FileNotFound in Ruby on Rails
Sprockets::FileNotFoundThis Ruby on Rails error occurs when filenotfound. Check the stack trace for the exact location and fix the root cause.
Sprockets::CircularDependencyError in Ruby on Rails
Sprockets::CircularDependencyErrorThis Ruby on Rails error occurs when circulardependencyerror. Check the stack trace for the exact location and fix the root cause.
Webpacker::Manifest::MissingEntryError in Ruby on Rails
Webpacker::Manifest::MissingEntryErrorThis Ruby on Rails error occurs when missingentryerror. Check the stack trace for the exact location and fix the root cause.
SassC::SyntaxError in Ruby on Rails
SassC::SyntaxErrorThis Ruby on Rails error occurs when syntaxerror. Check the stack trace for the exact location and fix the root cause.
Gem::LoadError in Ruby on Rails
Gem::LoadErrorThis Ruby on Rails error occurs when loaderror. Check the stack trace for the exact location and fix the root cause.
Bundler::GemNotFound in Ruby on Rails
Bundler::GemNotFoundThis Ruby on Rails error occurs when gemnotfound. Check the stack trace for the exact location and fix the root cause.
Bundler::VersionConflict in Ruby on Rails
Bundler::VersionConflictThis Ruby on Rails error occurs when versionconflict. Check the stack trace for the exact location and fix the root cause.
Ruby: Encoding::UndefinedConversionError in Ruby on Rails
Ruby: Encoding::UndefinedConversionErrorThis Ruby on Rails error occurs when undefinedconversionerror. Check the stack trace for the exact location and fix the root cause.
Ruby: Encoding::InvalidByteSequenceError in Ruby on Rails
Ruby: Encoding::InvalidByteSequenceErrorThis Ruby on Rails error occurs when invalidbytesequenceerror. Check the stack trace for the exact location and fix the root cause.
Ruby: IOclosed stream in Ruby on Rails
Ruby: IOError: closed streamThis Ruby on Rails error occurs when closed stream. Check the stack trace for the exact location and fix the root cause.
Ruby: Errno::ECONNRESET in Ruby on Rails
Ruby: Errno::ECONNRESETThis Ruby on Rails error occurs when econnreset. Check the stack trace for the exact location and fix the root cause.
Ruby: Errno::ETIMEDOUT in Ruby on Rails
Ruby: Errno::ETIMEDOUTThis Ruby on Rails error occurs when etimedout. Check the stack trace for the exact location and fix the root cause.
Ruby: Net::OpenTimeout in Ruby on Rails
Ruby: Net::OpenTimeoutThis Ruby on Rails error occurs when opentimeout. Check the stack trace for the exact location and fix the root cause.
Ruby: Net::ReadTimeout in Ruby on Rails
Ruby: Net::ReadTimeoutThis Ruby on Rails error occurs when readtimeout. Check the stack trace for the exact location and fix the root cause.
Ruby: OpenSSL::SSL::SSLError in Ruby on Rails
Ruby: OpenSSL::SSL::SSLErrorThis Ruby on Rails error occurs when sslerror. Check the stack trace for the exact location and fix the root cause.
Ruby: JSON::ParserError in Ruby on Rails
Ruby: JSON::ParserErrorThis Ruby on Rails error occurs when parsererror. Check the stack trace for the exact location and fix the root cause.
Ruby: URI::InvalidURIError in Ruby on Rails
Ruby: URI::InvalidURIErrorThis Ruby on Rails error occurs when invalidurierror. Check the stack trace for the exact location and fix the root cause.
Ruby: RegexpError in Ruby on Rails
Ruby: RegexpErrorThis Ruby on Rails error occurs when regexperror. Check the stack trace for the exact location and fix the root cause.
Ruby: SystemStackError in Ruby on Rails
Ruby: SystemStackErrorThis Ruby on Rails error occurs when systemstackerror. Check the stack trace for the exact location and fix the root cause.
Ruby: NoMemoryError in Ruby on Rails
Ruby: NoMemoryErrorThis Ruby on Rails error occurs when nomemoryerror. Check the stack trace for the exact location and fix the root cause.
Ruby: ThreadError in Ruby on Rails
Ruby: ThreadErrorThis Ruby on Rails error occurs when threaderror. Check the stack trace for the exact location and fix the root cause.
Ruby: Frozencan't modify frozen String in Ruby on Rails
Ruby: FrozenError: can't modify frozen StringThis Ruby on Rails error occurs when can't modify frozen string. Check the stack trace for the exact location and fix the root cause.
Devise::FailureApp redirect error in Ruby on Rails
Devise::FailureApp redirect errorThis Ruby on Rails error occurs when failureapp redirect error. Check the stack trace for the exact location and fix the root cause.
Devise: confirmation token expired in Ruby on Rails
Devise: confirmation token expiredThis Ruby on Rails error occurs when confirmation token expired. Check the stack trace for the exact location and fix the root cause.
Pundit::NotAuthorizedError in Ruby on Rails
Pundit::NotAuthorizedErrorThis Ruby on Rails error occurs when notauthorizederror. Check the stack trace for the exact location and fix the root cause.
CanCan::AccessDenied in Ruby on Rails
CanCan::AccessDeniedThis Ruby on Rails error occurs when accessdenied. Check the stack trace for the exact location and fix the root cause.
PG::ConnectionBad in Ruby on Rails
PG::ConnectionBadThis Ruby on Rails error occurs when connectionbad. Check the stack trace for the exact location and fix the root cause.
PG::InFailedSqlTransaction in Ruby on Rails
PG::InFailedSqlTransactionThis Ruby on Rails error occurs when infailedsqltransaction. Check the stack trace for the exact location and fix the root cause.
PG::QueryCanceled: canceling statement due to timeout in Ruby on Rails
PG::QueryCanceled: canceling statement due to timeoutThis Ruby on Rails error occurs when canceling statement due to timeout. Check the stack trace for the exact location and fix the root cause.
PG::TRSerializationFailure in Ruby on Rails
PG::TRSerializationFailureThis Ruby on Rails error occurs when trserializationfailure. Check the stack trace for the exact location and fix the root cause.
MySQL2::Error::ConnectionError in Ruby on Rails
MySQL2::Error::ConnectionErrorThis Ruby on Rails error occurs when connectionerror. Check the stack trace for the exact location and fix the root cause.
Redis::CommandError in Ruby on Rails
Redis::CommandErrorThis Ruby on Rails error occurs when commanderror. Check the stack trace for the exact location and fix the root cause.
Bugsly catches Ruby on Rails errors automatically
AI-powered error tracking that explains what went wrong and suggests fixes. Set up in 2 minutes.
Get Started Free