Error map

LoadError: cannot load such file Ruby: LoadError: cannot load such file -- nokogiri (or: cannot load such file -- bundler/setup)

Ruby / Rails · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (11). 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.

LoadError: cannot load such file — Ruby: LoadError: cannot load such file -- nokogiri (or: cannot load such file -- bundler/setup) (Ruby / Rails)LoadError: …Bundler could not find compatible versions for gem — Bundler: Bundler could not find compatible versions for gem "activesupport": In Gemfile: rails (= 7.1.0) depends on activesupport (= 7.1.0) (Ruby / Rails)Bundler could not f…rake aborted! Don't know how to build task — Rake: rake aborted! Don't know how to build task 'db:migrat' (See the list of available tasks with `rake --tasks`) (Ruby / Rails)rake aborted! Don't…NameError: uninitialized constant — Ruby: NameError: uninitialized constant UsersController::User (Did you mean? Users) (Ruby / Rails)NameError: uninitia…ArgumentError: wrong number of arguments (given 1, expected 2) — Ruby: ArgumentError: wrong number of arguments (given 1, expected 2..3) (Ruby / Rails)ArgumentError: wron…ArgumentError: missing keyword / unknown keyword — Ruby: ArgumentError: missing keyword: :name / unknown keyword: :nmae (Ruby / Rails)ArgumentError: miss…Bundler: Could not find gem in locally installed gems — Bundler: Could not find gem 'rails (~> 7.1)' in locally installed gems / Could not find rails-7.1.0 in any of the gem sources listed in your Gemfile (Ruby / Rails)Bundler: Could not …Failed to build gem native extension — Ruby: ERROR: Failed to build gem native extension. current directory: /gems/pg-1.5.4/ext/pg — An error occurred while installing pg (Ruby / Rails)Failed to build gem…Nokogiri: could not find a platform gem / libxml2 build error — Bundler: Your bundle only supports platforms ["x86_64-linux"] but your local platform is arm64-darwin / Could not find gem 'nokogiri (1.16.0-arm64-darwin)' (Ruby / Rails)Nokogiri: could not…Your Ruby version is X, but your Gemfile specified Y — Bundler: Your Ruby version is 3.1.2, but your Gemfile specified 3.3.0 (Ruby / Rails)Your Ruby version i…ActiveRecord::ConnectionNotEstablished — Rails: ActiveRecord::ConnectionNotEstablished: No connection pool for 'ActiveRecord::Base' found (Ruby / Rails)ActiveRecord::Conne…Zeitwerk::NameError: expected file to define constant — Rails: Zeitwerk::NameError: expected file app/models/user_profile.rb to define constant UserProfile, but didn't (Ruby / Rails)Zeitwerk::NameError…held broken packages — Unmet dependencies / E: Unable to correct problems, you have held broken packages (Linux)held broken packagesTypeError: no implicit conversion of nil into String — Ruby: TypeError: no implicit conversion of nil into String (Ruby / Rails)TypeError: no impli…TypeError: nil can't be coerced into Integer — Ruby: TypeError: nil can't be coerced into Integer / String can't be coerced into Integer (Ruby / Rails)TypeError: nil can'…RSpec::Expectations::ExpectationNotMetError: expected X got Y — RSpec: expected: 200 got: 404 (compared using ==) — RSpec::Expectations::ExpectationNotMetError (Ruby / Rails)RSpec::Expectations…FactoryBot::DuplicateDefinitionError: Factory already registered — FactoryBot: FactoryBot::DuplicateDefinitionError: Factory already registered: user (Ruby / Rails)FactoryBot::Duplica…undefined method for nil — Ruby: NoMethodError: undefined method `x' for nil (nil:NilClass) (Ruby / Rails)undefined method fo…NameError: undefined local variable or method — Ruby: NameError: undefined local variable or method 'x' for main:Object (Ruby / Rails)NameError: undefine…ActiveRecord::Deadlocked: PG::TRDeadlockDetected — Rails: ActiveRecord::Deadlocked: PG::TRDeadlockDetected: ERROR: deadlock detected (Ruby / Rails)ActiveRecord::Deadl…You don't have write permissions for the /Library/Ruby/Gems directory — macOS: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory (macOS)You don't have writ…FrozenError: can't modify frozen String — Ruby: FrozenError: can't modify frozen String: "abc" (Ruby / Rails)FrozenError: can't …OpenSSL::SSL::SSLError: certificate verify failed (Ruby) — Ruby: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (Ruby / Rails)OpenSSL::SSL::SSLEr…ActionController::ParameterMissing: param is missing or the value is empty — Rails: ActionController::ParameterMissing: param is missing or the value is empty: user (Ruby / Rails)ActionController::P…ld: library not found for -lssl — macOS: ld: library 'ssl' not found / ld: library not found for -lssl (clang: error: linker command failed) (macOS)ld: library not fou…mach-o file, but is an incompatible architecture — macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64') (macOS)mach-o file, but is…client version is too new — Error response from daemon: client version 1.45 is too new. Maximum supported API version is 1.41 (Docker)client version is t…ActionController::InvalidAuthenticityToken — Rails: ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity) (Ruby / Rails)ActionController::I…Error: connect ECONNREFUSED 127.0.0.1:6379 — Redis: Error: connect ECONNREFUSED 127.0.0.1:6379 / Could not connect to Redis at 127.0.0.1:6379: Connection refused (Redis)Error: connect ECON…Redis TLS: SSL handshake error / protocol mismatch — Redis: Error: write EPROTO ... SSL routines:ssl3_get_record:wrong version number / Connection reset by peer (TLS vs plaintext) (Redis)Redis TLS: SSL hand…ActiveRecord::IrreversibleMigration — Rails: ActiveRecord::IrreversibleMigration — This migration uses remove_column without a type; db:rollback can't reverse it (Ruby / Rails)ActiveRecord::Irrev…Sprockets::Rails::Helper::AssetNotPrecompiled — Rails: Asset `application.js` was not declared to be precompiled in production / The asset "application.css" is not present in the asset pipeline (Ruby / Rails)Sprockets::Rails::H…ActiveRecord::AssociationTypeMismatch — Rails: ActiveRecord::AssociationTypeMismatch: User(#1234) expected, got "42" which is an instance of String(#5678) (Ruby / Rails)ActiveRecord::Assoc…

Directly related (11)

Bundler could not find compatible versions for gemRuby / Rails

Bundler: Bundler could not find compatible versions for gem "activesupport": In Gemfile: rails (= 7.1.0) depends on activesupport (= 7.1.0)

Two gems in your Gemfile require incompatible versions of a shared dependency.

rake aborted! Don't know how to build taskRuby / Rails

Rake: rake aborted! Don't know how to build task 'db:migrat' (See the list of available tasks with `rake --tasks`)

Rake doesn't know the task name — a typo, a missing Rakefile, or a gem/engine not loaded.

NameError: uninitialized constantRuby / Rails

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.

ArgumentError: wrong number of arguments (given 1, expected 2)Ruby / Rails

Ruby: ArgumentError: wrong number of arguments (given 1, expected 2..3)

A method was called with more or fewer arguments than it accepts.

ArgumentError: missing keyword / unknown keywordRuby / Rails

Ruby: ArgumentError: missing keyword: :name / unknown keyword: :nmae

A method requiring keyword arguments was called without them, or with a misspelt keyword.

Bundler: Could not find gem in locally installed gemsRuby / Rails

Bundler: Could not find gem 'rails (~> 7.1)' in locally installed gems / Could not find rails-7.1.0 in any of the gem sources listed in your Gemfile

A gem from the Gemfile/Gemfile.lock isn't installed (or isn't available at that version).

Failed to build gem native extensionRuby / Rails

Ruby: ERROR: Failed to build gem native extension. current directory: /gems/pg-1.5.4/ext/pg — An error occurred while installing pg

A gem with C code couldn't compile, usually because a system library or header is missing.

Nokogiri: could not find a platform gem / libxml2 build errorRuby / Rails

Bundler: Your bundle only supports platforms ["x86_64-linux"] but your local platform is arm64-darwin / Could not find gem 'nokogiri (1.16.0-arm64-darwin)'

The lockfile has no Nokogiri build for the current platform (precompiled "native" gems are per platform).

Your Ruby version is X, but your Gemfile specified YRuby / Rails

Bundler: Your Ruby version is 3.1.2, but your Gemfile specified 3.3.0

`.ruby-version`/the Gemfile `ruby` line requires a different Ruby than the one running.

ActiveRecord::ConnectionNotEstablishedRuby / Rails

Rails: ActiveRecord::ConnectionNotEstablished: No connection pool for 'ActiveRecord::Base' found

ActiveRecord has no database connection configured or established for this process.

Zeitwerk::NameError: expected file to define constantRuby / Rails

Rails: Zeitwerk::NameError: expected file app/models/user_profile.rb to define constant UserProfile, but didn't

Rails autoloading found a file whose name implies a constant the file doesn't define.

Two steps away (21)

held broken packagesLinux

Unmet dependencies / E: Unable to correct problems, you have held broken packages

apt can’t find a set of package versions that satisfies all dependencies — usually mixed repositories or a package from another r…

TypeError: no implicit conversion of nil into StringRuby / Rails

Ruby: TypeError: no implicit conversion of nil into String

A String method (`+`, `File.join`, `Array#join` usage) received `nil` instead of a string.

TypeError: nil can't be coerced into IntegerRuby / Rails

Ruby: TypeError: nil can't be coerced into Integer / String can't be coerced into Integer

Arithmetic combined a number with `nil` (or a String) which Ruby can't convert automatically.

RSpec::Expectations::ExpectationNotMetError: expected X got YRuby / Rails

RSpec: expected: 200 got: 404 (compared using ==) — RSpec::Expectations::ExpectationNotMetError

An RSpec `expect` assertion didn't hold: the actual value differs from what the test expected.

FactoryBot::DuplicateDefinitionError: Factory already registeredRuby / Rails

FactoryBot: FactoryBot::DuplicateDefinitionError: Factory already registered: user

Two factory definitions use the same name (or files are loaded twice).

undefined method for nilRuby / Rails

Ruby: NoMethodError: undefined method `x' for nil (nil:NilClass)

You called a method on nil — the object you expected (a record, hash value, param) wasn’t there.

NameError: undefined local variable or methodRuby / Rails

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.

ActiveRecord::Deadlocked: PG::TRDeadlockDetectedRuby / Rails

Rails: ActiveRecord::Deadlocked: PG::TRDeadlockDetected: ERROR: deadlock detected

Two transactions locked rows in opposite orders, so PostgreSQL aborted one.

You don't have write permissions for the /Library/Ruby/Gems directorymacOS

macOS: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory

`gem install` tries to write into Apple's system Ruby, which is protected and shouldn't be modified.

FrozenError: can't modify frozen StringRuby / Rails

Ruby: FrozenError: can't modify frozen String: "abc"

You tried to change an object that's frozen — string literals under `# frozen_string_literal: true`, constants, symbols or frozen…

OpenSSL::SSL::SSLError: certificate verify failed (Ruby)Ruby / Rails

Ruby: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)

Ruby's HTTP client (Net::HTTP, Faraday, gem install) couldn't verify the server's certificate.

ActionController::ParameterMissing: param is missing or the value is emptyRuby / Rails

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.

ld: library not found for -lsslmacOS

macOS: ld: library 'ssl' not found / ld: library not found for -lssl (clang: error: linker command failed)

The linker can't find OpenSSL (or another library) because Homebrew libraries aren't on its search path.

mach-o file, but is an incompatible architecturemacOS

macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')

A library or binary was built for a different CPU architecture than the process loading it.

client version is too newDocker

Error response from daemon: client version 1.45 is too new. Maximum supported API version is 1.41

Your Docker CLI (or SDK) speaks a newer API version than the Docker daemon it’s talking to.

ActionController::InvalidAuthenticityTokenRuby / Rails

Rails: ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity)

A non-GET request arrived without a valid CSRF token for the session.

Error: connect ECONNREFUSED 127.0.0.1:6379Redis

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 TLS: SSL handshake error / protocol mismatchRedis

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.

ActiveRecord::IrreversibleMigrationRuby / Rails

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.

Sprockets::Rails::Helper::AssetNotPrecompiledRuby / Rails

Rails: Asset `application.js` was not declared to be precompiled in production / The asset "application.css" is not present in the asset pipeline

A layout references an asset that Sprockets doesn't know to compile or can't find.

ActiveRecord::AssociationTypeMismatchRuby / Rails

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.