Closed noctivityinc closed 3 weeks ago
Looks like you've upgraded the google-protobuf
gem; v4 is currently not supported; adding gem "google-protobuf", "~> 3.25"
should fix the issue.
Or upgrade anycable-core
(and anycable
) to 1.4.4 (the protobuf version requirement has been fixed there).
Can I use any cable-core with rails? The docs say to use anycable-rails or something like that, though I cant even find that repo anymore. Where can I find the latest docs for this for Rails 7?
On Aug 19, 2024 at 10:11:19 AM, Vladimir Dementyev @.***> wrote:
Looks like you've upgraded the google-protobuf gem; v4 is currently not supported; adding gem "google-protobuf", "~> 3.25" should fix the issue.
Or upgrade anycable-core (and anycable) to 1.4.4 (the protobuf version requirement has been fixed there).
— Reply to this email directly, view it on GitHub https://github.com/anycable/anycable-rails/issues/202#issuecomment-2296678310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAATIAUQBVY4PQGHDR45WRTZSH4IPAVCNFSM6AAAAABMVQLXHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGY3TQMZRGA . You are receiving this because you authored the thread.Message ID: @.***>
anycable-rails depends on anycable-core
In your case, running bundle update anycable
(or bundle update anycable-core
) should do the trick; no need to add it explicitly to the Gemfile
@palkan Ok that worked with 1.5.1 but now I get this:
anycable | ⛔️ WARNING: AnyCable RPC pool size (30) is greater than DB pool size (5)
Without any information about which database or HOW to adjust the pool sizes for either AC or the DB. Any docs here?
Without any information about which database or HOW to adjust the pool sizes for either AC or the DB.
This message says that your Active Record pool size is 5 (the default), which is less than the AnyCable gRPC worker pool size (also the default, 30). To avoid competition for DB connections, it's better to keep the in sync.
Any docs here?
https://docs.anycable.io/edge/ruby/configuration?id=concurrency-settings
Tell us about your environment
ruby "3.3.4" gem "rails", "~> 7.1.3", ">= 7.1.3.4" gem "anycable-rails", "~> 1.4"
What did you do?
All I did was install anycable-rails and then tried to run setup.
What did you expect to happen?
It would work and not crash my app
What actually happened?