-
If you get the following error when deploying
Solid Cache.ArgumentError: You can only specify one of :database, :databases, or :connects_to (ArgumentError) -
The reason is likely you added connects_to in your configuration file. It conflicts with the database config created by default.
# config/cache.yml production: database: cache <<: *default # config/environments/production.rb config.solid_cache.connects_to = { database: { writing: :cache } } -
To fix the error, keep only one of the above.
-
It is slightly confusing at the moment. Solid Queue creates
connects_toas default, but Solid Cache creates database as default.
Advertisements
AI Summary
gpt-5.6-terra
2026-09-17 00:23:09
Solid Cache deployments can fail with an ArgumentError when both a database setting and a connection mapping are configured. The conflict typically arises because Solid Cache’s default configuration uses a dedicated database, while an added connection mapping specifies the same target differently. Resolve the issue by retaining only one configuration approach. The post notes that this differs from Solid Queue, which defaults to connection mappings, making the distinction potentially confusing.
Chrome On-device AI