Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop working in couchbase 6.5 #1

Closed
CriztianiX opened this issue Jul 9, 2020 · 8 comments
Closed

Stop working in couchbase 6.5 #1

CriztianiX opened this issue Jul 9, 2020 · 8 comments

Comments

@CriztianiX
Copy link

Couchbase 5.x and greater no more support 11211 port.

@ZigzagAK
Copy link
Owner

@CriztianiX
Copy link
Author

Ok, using VBUCKETAWARE, still does not working
Sample code (writen in moonscript)

      couchbase = require "resty.couchbase"
      cluster = couchbase.cluster {
        host: "172.17.0.1",
        user: "Administrator",
        password: "QWE123"
      }

      bucket1 = cluster\bucket {
        name: "endpoint",
        password: "QWE123",
        VBUCKETAWARE: true
      }

      cb = bucket1\session!
      r = cb\set("my-key", "test-value")

It gives as result:

...cal/openresty/luajit/share/lua/5.1/lapis/application.lua:401: ./resty/couchbase.lua:269: nodes[1].ports.proxy is not found
stack traceback:
	[C]: in function 'assert'
	./resty/couchbase.lua:269: in function 'fetch_vbuckets'
	./resty/couchbase.lua:291: in function 'update_vbucket_map'
	./resty/couchbase.lua:299: in function 'get_vbucket_id'
	./resty/couchbase.lua:479: in function 'set'
	./applications/endpoints.lua:54: in function <./applications/endpoints.lua:19>

@ZigzagAK
Copy link
Owner

Hello.
Please comment this line link and check.

@CriztianiX
Copy link
Author

...cal/openresty/luajit/share/lua/5.1/lapis/application.lua:401: ./resty/couchbase.lua:407: timeout
stack traceback:
	[C]: in function 'assert'
	./resty/couchbase.lua:407: in function 'connect'
	./resty/couchbase.lua:556: in function 'get'
	./applications/endpoints.lua:54: in function 

@ZigzagAK
Copy link
Owner

Ok.
I will check code in a week. Currently I don't have free time for this work.

@ZigzagAK
Copy link
Owner

This modification helps me to work with couchbase 6.5.0:
fc53ae2

@CriztianiX
Copy link
Author

CriztianiX commented Jul 20, 2020

Sorry. but this isnt working for me.
My environment:

[root@b31f9e737113 opt]# openresty -v       
nginx version: openresty/1.15.8.3

root@7830603ce6f4:/# couchbase-server --version
Couchbase Server 6.5.1-6299 (EE)
root@7830603ce6f4:/#

Running on docker:

docker version
Client:
 Version:           18.09.7
 API version:       1.39
 Go version:        go1.10.1
 Git commit:        2d0083d
 Built:             Fri Aug 16 14:20:06 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.7
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.1
  Git commit:       2d0083d
  Built:            Wed Aug 14 19:41:23 2019
  OS/Arch:          linux/amd64
  Experimental:     false

@ZigzagAK
Copy link
Owner

You have a connection timeout. It is not a problem of this library.
I also checked this is in docker and all was fine. Couchbase server 6.5.0 and nginx in different docker containers. Try to increase timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants