mysql2 LoadError on Rails 6.1.7 / Ruby 3.0.0

ronaparte
HOBBY

17 days ago

Hi,

I'm stuck with a LoadError: cannot load such file -- active_record/connection_adapters/mysql_adapter during my Rails build on Railway, specifically at the rake assets:precompile stage.

Rails 6.1.7 / Ruby 3.0.0

  • bundle installcompletes successfully (meaning mysql2 gem is installed).

  • My Gemfile uses gem 'mysql2' (no strict version constraint).

  • I've tried adding nixpacks.toml with apt_packages = ["libmysqlclient-dev"]

  • I think all ENV variables are correct

Could you please investigate? I can provide project/service IDs and full build logs.

Thanks,
Ron

$10 Bounty

1 Replies

11 days ago

Hey did you checked the permissions on your file ?