Open jamieluckett opened 3 years ago
We are also getting this issue on 3.1.1, we monitor _system in various scenarios for restarts on the cluster and having issues lately on 3.1.1 that are hard to describe or pinpoint.
Is there any solution?
We seeing similar behaviour when calling the /_node/_local/_system end point, but we get a different error. Environment specs and /_node/_local/_system response below.
Operating system and version: Ubuntu 18.04.6 LTS
{
"couchdb": "Welcome",
"version": "3.2.1",
"git_sha": "244d428af",
"uuid": "2c788d3183f607ee7cb432038b940f78",
"features": [
"access-ready",
"partitioned",
"pluggable-storage-engines",
"reshard",
"scheduler"
],
"vendor": {
"name": "The Apache Software Foundation"
}
}
{
"all_nodes": [
"couchdb@db1.xxx.com",
"couchdb@db2.xxx.com",
"couchdb@db3.xxx.com",
"couchdb@db4.xxx.com"
],
"cluster_nodes": [
"couchdb@db1.xxx.com",
"couchdb@db2.xxx.com",
"couchdb@db3.xxx.com",
"couchdb@db4.xxx.com"
]
}
{
"error": "invalid_ejson",
"reason": "{badrpc,\n {'EXIT',\n {function_clause,\n [{prim_inet,getstat,\n [<0.12402.0>,\n [recv_oct,recv_cnt,recv_max,recv_avg,recv_dvi,send_oct,\n send_cnt,send_max,send_avg,send_pend]],\n []},\n {chttpd_node,'-get_distribution_stats/0-fun-0-',1,\n [{file,\"src/chttpd_node.erl\"},{line,312}]},\n {lists,map,2,[{file,\"lists.erl\"},{line,1243}]},\n {chttpd_node,get_stats,0,\n [{file,\"src/chttpd_node.erl\"},{line,264}]}]}}}",
"ref": 878456848
}
Description
etc/vm.args
_node/<nodename>/_system
endpoint.curl user:password@localhost:5984/_node/<nodename>/_system
Expected Behaviour
Endpoint shouldn't return an HTTP 500 status and should contain the expected data as documented.
Your Environment
localhost:5984/
localhost:5984/_membership
Additional Context
TLS is set up and enabled for communication between all nodes.
Spoke a fair bit with jan and rnewson on the CouchDB slack, it seems like Erlang 22.x has changed
dist_ctrl
a fair bit causing compatability issues with the current implementation ofchttpd_node
.