By: kirk sullivan user 10 Apr 2020 at 8:21 p.m. CDT

5 Responses
kirk sullivan gravatar
Installing for docker, using couchbase persistence, I specified the hostname as the docs indicate. However, my couchbase runs on a different port than the default, which causes the install to fail Is there a way to specify the port as well as the couchbase host? Perhaps as part of the COUCHBASE_URL parameter settings.py? WARNING - pygluu.containerlib.persistence.couchbase - 2020-04-11 00:43:36,121 - Unable to connect to zurgm:18091; reason=HTTPSConnectionPool(host='zurgm', port=18091): Max retries exceeded with url: /pools/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f389edb4250>: Failed to establish a new connection: [Errno 111] Connection refused',)) WARNING - pygluu.containerlib.wait - 2020-04-11 00:43:36,121 - Couchbase is not ready; reason=Unable to resolve host for data service from zurgm list; retrying in 10.0 seconds WARNING - pygluu.containerlib.persistence.couchbase - 2020-04-11 00:43:46,136 - Unable to connect to zurgm:18091; reason=HTTPSConnectionPool(host='zurgm', port=18091): Max retries exceeded with url: /pools/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f389edb4050>: Failed to establish a new connection: [Errno 111] Connection refused',)) WARNING - pygluu.containerlib.wait - 2020-04-11 00:43:46,136 - Couchbase is not ready; reason=Unable to resolve host for data service from zurgm list; retrying in 9.6 seconds WARNING - pygluu.containerlib.persistence.couchbase - 2020-04-11 00:43:55,743 - Unable to connect to zurgm:18091; reason=HTTPSConnectionPool(host='zurgm', port=18091): Max retries exceeded with url: /pools/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f389edb44d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) ERROR - pygluu.containerlib.wait - 2020-04-11 00:43:55,743 - Couchbase is not ready after 300.0 seconds Traceback (most recent call last): File "/app/scripts/wait.py", line 47, in <module> main() File "/app/scripts/wait.py", line 43, in main wait_for(manager, deps) File "/src/pygluu-containerlib/pygluu/containerlib/wait.py", line 273, in wait_for callback["func"](manager, **callback["kwargs"]) File "/usr/lib/python2.7/site-packages/backoff/_sync.py", line 94, in retry ret = target(*args, **kwargs) File "/src/pygluu-containerlib/pygluu/containerlib/wait.py", line 196, in wait_for_couchbase_conn cb_client = CouchbaseClient(host, user, password) File "/src/pygluu-containerlib/pygluu/containerlib/persistence/couchbase.py", line 227, in __init__ assert self.rest_client.host, "Unable to resolve host for data service from {} list".format(hosts) AssertionError: Unable to resolve host for data service from zurgm list [I] Launching Gluu Server ..............................

By Isman Firmansyah staff 13 Apr 2020 at 11:06 a.m. CDT

Isman Firmansyah gravatar
Hi Kirk, > Is there a way to specify the port as well as the couchbase host? Perhaps as part of the COUCHBASE_URL parameter settings.py? Unfortunately there's no way to specify custom ports in current version. The Couchbase client used by our scripts in containers will look for port 18091 (REST) and 18093 (N1QL).

By kirk sullivan user 13 Apr 2020 at 11:37 a.m. CDT

kirk sullivan gravatar
Then sounds like this need to be an enhancement request.  You should note that a docker deployment of couchbase doesn’t use those ports by default

By Isman Firmansyah staff 13 Apr 2020 at 12:37 p.m. CDT

Isman Firmansyah gravatar
> You should note that a docker deployment of couchbase doesn’t use those ports by default Noted, we will update the docs. Regarding the `COUCHBASE_URL` (which is set to hostname) in your deployment, make sure it's reachable using DNS. If it's not, you can use the IP address instead.

By kirk sullivan user 13 Apr 2020 at 12:38 p.m. CDT

kirk sullivan gravatar
thanks, we can close the case

By Isman Firmansyah staff 13 Apr 2020 at 4:36 p.m. CDT

Isman Firmansyah gravatar
Thanks, closing this ticket.