Comments (8)
Hello.
https://forums.couchbase.com/t/no-service-on-port-11211-with-couchbase-server-5-x/15700/3
You must use vbucketaware mode.
from lua-resty-couchbase.
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>
from lua-resty-couchbase.
Hello.
Please comment this line link and check.
from lua-resty-couchbase.
...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
from lua-resty-couchbase.
Ok.
I will check code in a week. Currently I don't have free time for this work.
from lua-resty-couchbase.
This modification helps me to work with couchbase 6.5.0:
fc53ae2
from lua-resty-couchbase.
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
from lua-resty-couchbase.
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.
from lua-resty-couchbase.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-resty-couchbase.