hello @matthew.groves we are also getting same problem in different situation. cbq engine is not starting automatically . trying to start cbq services using below cmd one of the node is throwing this error.
can i get any clue why it is behaving like this in your words.
[root@crdl-db-ha1-crdl-02 /]# /opt/couchbase/bin/cbq-engine --datastore=http://[::1]:8091 --http=:8093 --configstore=http://[::1]:8091 --enterprise=true --ipv6=true --https=:18093 --certfile=/opt/couchbase/var/lib/couchbase/config/memcached-cert.pem --keyfile=/opt/couchbase/var/lib/couchbase/config/memcached-key.pem
2023/02/26 02:56:29 cbauth: key: fts/remoteClients registered for tls config updates
2023/02/26 02:56:29 cfg_metakv: RunObserveChildren, err: Get /_metakv/fts/cbgt/cfg/?feed=continuous: Unable to initialize cbauth’s revrpc: cbauth environment variable CBAUTH_REVRPC_URL is not set
_time=2023-02-26T02:56:29.789+09:00 _level=ERROR _msg=Unable to initialize cbauth. Error Unable to initialize cbauth’s revrpc: cbauth environment variable CBAUTH_REVRPC_URL is not set
_time=2023-02-26T02:56:29.789+09:00 _level=WARN _msg=Unable to parse url http://[::1]:8091: Unusable url http://[::1]:8091. No user information.
_time=2023-02-26T02:56:29.789+09:00 _level=WARN _msg=Unable to initialize cbAuth, access to couchbase buckets may be restricted
_time=2023-02-26T02:56:29.797+09:00 _level=ERROR _msg=Cannot connect url http://[::1]:8091 - cause: HTTP error 401 Unauthorized getting “http://[::1]:8091/pools”:
_time=2023-02-26T02:56:29.797+09:00 _level=ERROR _msg=Shutting down.
[root@crdl-db-ha1-crdl-02 /]# ps -ef|grep cbq
root 8198 7886 0 02:56 pts/0 00:00:00 grep --color=auto cbq
[root@crdl-db-ha1-crdl-02 /]#
for that i have export the variable
[root@crdl-db-ha1-crdl-02 /]# export CBAUTH_REVRPC_URL=“http://[20b:c0e:104:5450:9727:2:7:b02]:8091 -u Administrator -p abc123xyz”
after export the variable getting below error
[root@crdl-db-ha1-crdl-02 /]# export CBAUTH_REVRPC_URL="http://[240b:c0e0:104:5450:9727:2:7:b12]:8091 -u Administrator -p mAv@cb123 "
[root@crdl-db-ha1-crdl-02 /]# /opt/couchbase/bin/cbq-engine --datastore=http://[::1]:8091 --http=:8093 --configstore=http://[::1]:8091 --enterprise=true --ipv6=true --https=:18093 --certfile=/opt/couchbase/var/lib/couchbase/config/memcached-cert.pem --keyfile=/opt/couchbase/var/lib/couchbase/config/memcached-key.pem
2023/02/26 02:58:49 cbauth: key: fts/remoteClients registered for tls config updates
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc99400]
goroutine 80 [running]:
github.com/couchbase/cbauth/metakv.doCallInner(0xc0001196d0, 0x1f7f37c, 0x3, 0x1f8c3ec, 0xe, 0xc000113bc8, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbauth/metakv/metakv.go:94 +0xa7
github.com/couchbase/cbauth/metakv.doRunObserveChildren(0xc0001196d0, 0x1f8c3ec, 0xe, 0xc0001181d0, 0xc0005f3b60, 0x0, 0x0)
/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbauth/metakv/metakv.go:273 +0x142
github.com/couchbase/cbauth/metakv.(*store).runObserveChildren(0xc0001196d0, 0x1f8c3ec, 0xe, 0xc0001181d0, 0xc0005f3b60, 0x1, 0xc000118000)
/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbauth/metakv/metakv.go:263 +0x58
github.com/couchbase/cbauth/metakv.RunObserveChildren(0x1f8c3ec, 0xe, 0xc000118000, 0xc0005f3b60, 0x0, 0x0)
/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbauth/metakv/metakv.go:392 +0x85
github.com/couchbase/cbgt.NewCfgMetaKv.func1(0x0)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbgt/cfg_metakv.go:149 +0x82
github.com/couchbase/cbgt.ExponentialBackoffLoop(0x1fa1e9d, 0x1d, 0xc000223960, 0xc8, 0x3fc00000, 0x1388)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbgt/misc.go:130 +0x31
created by github.com/couchbase/cbgt.NewCfgMetaKv
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbgt/cfg_metakv.go:147 +0x2c1
[root@crdl-db-ha1-crdl-02 /]#