Rails app not starting - undefined method `sqlite3_production_warning='

Hi all,

I’m moving a rails app from Heroku Fly.io. It’s an older app that I’ve updated from 5.2 to 7.2. I’ve also moved the database from PG to SQLite. I have everything running and working locally (including a data migration from pg to sqlite)

I’ve been able to deploy the app after some false starts, but I’m now stuck with the app not loading. Looking at the logs, I can see there is a NoMethodError being thrown in relation to the database.

2024-09-08T09:37:00.473 app[148e2d10b17928] lax [info] bin/rails aborted!
2024-09-08T09:37:00.481 app[148e2d10b17928] lax [info] NoMethodError: undefined method `sqlite3_production_warning=' for class ActiveRecord::Base (NoMethodError)
2024-09-08T09:37:00.481 app[148e2d10b17928] lax [info] Tasks: TOP => db:prepare => db:load_config

Any help here would be greatly appreciated. Thanks :slight_smile:

Solved. It was a rails gem conflict. Have addressed and working now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.