You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting a really strange error in development in my docker Debian container, on Mac OS X (M3: arm), but not in production on my Linux VM in cloud-land (also running in Docker via Kamal)
Error:
# Running straight in Mac welcome_message=Rails.cache.fetch("welcome_message1",expires_in: 1.minute){"Welcome to Rails !"}Cacheread: development:welcome_message1({max_age: 2592000,namespace: "development",max_size: 25769803776,compress: true,compress_threshold: 1024,expires_in: 1minute})Arel::BindError: wrongnumberofbindvariables(1for0)in: "SELECT\n\"solid_cache_entries\".\"key\"\n ,\"solid_cache_entries\".\"value\"\n FROM\n\"solid_cache_entries\"\n WHERE\n\"solid_cache_entries\".\"key_hash\" IN (\n 1111\n ,2222\n )"from/Users/konung/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/activerecord-8.0.1/lib/arel/nodes/bound_sql_literal.rb:17:in'Arel::Nodes::BoundSqlLiteral#initialize'# Running in container - same thingwelcome_message=Rails.cache.fetch("welcome_message1",expires_in: 1.minute){"Welcome to Rails !"}Cacheread: development:welcome_message1({max_age: 2592000,namespace: "development",max_size: 25769803776,compress: true,compress_threshold: 1024,expires_in: 1minute})Arel::BindError: wrongnumberofbindvariables(1for0)in: "SELECT\n\"solid_cache_entries\".\"key\"\n ,\"solid_cache_entries\".\"value\"\n FROM\n\"solid_cache_entries\"\n WHERE\n\"solid_cache_entries\".\"key_hash\" IN (\n 1111\n ,2222\n )"from/usr/local/lib/ruby/gems/3.4.0/gems/activerecord-8.0.1/lib/arel/nodes/bound_sql_literal.rb:17:in'Arel::Nodes::BoundSqlLiteral#initialize'
Rails.cache.write works fine. Rails.cache.read is what breaking.
Works in production , but not dev ( as you can see from example, tried both in docker container, and natively on macosx)
Rails.cache in DEV - works with memory_store, but not sqlite3
I'm using PostgreSQL as app DB, but using sqlite for caching, both in Prod and Dev.
Tried already, deleting my storage/development_cache.sqlite3, resetting db, and retuning migrations. Tables are created but cache breaks on reading. (see below)
Here is my config for both prod and dev straight from console.
Using Rails 8.0.1 and SolidCache 1.0.6 both in prod and dev.
Already rebuilt my docker images on my laptop, and restarted docker and laptop.
Hi.
Getting a really strange error in development in my docker Debian container, on Mac OS X (M3: arm), but not in production on my Linux VM in cloud-land (also running in Docker via Kamal)
Error:
The text was updated successfully, but these errors were encountered: