Querying views with couchbase ruby client sometimes fails.

Description

Expected: Querying a view from couchbase-ruby-client makes successful request.

Actual: Querying a view from couchbase-ruby-client sometimes fails making a successful request.

Not sure if related to fixes from: (Starting appearing after https://github.com/couchbase/couchbase-ruby-client/commit/9d8b6944982038dcf5d7dcc966c4e717033f1cf0 )

https://couchbasecloud.atlassian.net/browse/CCBC-546

-----------------------------------------------------
Stack Trace:

Couchbase::Error::Network (failed to execute HTTP request, Generic network failure. Enable detailed error codes (via LCB_CNTL_DETAILED_ERRCODES, or via `detailed_errcodes` in the connection string) and/or enable logging to get more information (key="_design/category/_view/by_language?connection_timeout=75000&wrapper_class=Category&key=%22eng%22", error=0x10)):
app/services/service/category/get_all.rb:13:in `get_categories'
app/services/service/category/get_all.rb:3:in `initialize'
app/controllers/categories_controller.rb:6:in `new'
app/controllers/categories_controller.rb:6:in `block (2 levels) in index'
app/controllers/categories_controller.rb:4:in `index'

Environment

------------------------------------------- Gemfile.lock: GIT remote: https://github.com/couchbase/couchbase-ruby-client.git revision: 3075eb9861ae39d0d8e40266e662e659331a73c8 specs: couchbase (1.3.10) connection_pool (>= 1.0.0, <= 3.0.0) multi_json (~> 1.0) yaji (~> 0.3, >= 0.3.2) couchbase-model (0.5.4) activemodel couchbase (~> 1.3.3) --------------------------------- Couchbase Version: ii couchbase-server 3.0.1 amd64 Couchbase Server ii libcouchbase-dev:amd64 2.4.5 amd64 library for the Couchbase protocol, development files ii libcouchbase2-core:amd64 2.4.5 amd64 library for the Couchbase protocol, core files ii libcouchbase2-libevent:amd64 2.4.5 amd64 library for the Couchbase protocol (libevent backend)

Release Notes Description

None

Activity

Show:

Sergey Auseyau June 18, 2020 at 2:39 PM

Branch 1.3.x is not supported
All development goes on master branch (and 3.0.0 release coming soon)

Fernando January 20, 2015 at 1:31 AM

Ah sorry I forgot to add repo steps. Here is my specific case.

I was using the couchbase-ruby-model gem as well.

Repo Steps:

1.) From a rails app query a view with the couchbase ruby model gem. (Hit a rails controller action by hitting a valid url from the web browser)
2.) Wait several minutes. Ensure no additional requests to the server.
3.) Refresh the page.
4.) You should see the Couchbase::Error::Network error message in the rails log.

Todd Greenstein January 19, 2015 at 4:18 PM

Thank you for filing this issue. We are researching a repro and will update this as soon we have further information.

Fernando January 18, 2015 at 12:10 AM
Edited

Seems like the connection is closed after a while of inactivity. If you make concurrent requests issue seems to go away.

I guess technically in production the connection would be open because you would have tons of requests? I see this in my dev box where I am the only one hitting the server.

Won't Do
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Affects versions

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created January 18, 2015 at 12:08 AM
Updated June 18, 2020 at 2:39 PM
Resolved June 18, 2020 at 2:39 PM
Instabug