Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.5.4, 6.0.2, 6.5.0
Description
When debugging MB-35537, all we find is the following logging in cbcollect_info.log:
[2019-08-10T11:15:54.182643+06:00] Found dump-guts: /opt/couchbase/bin/dump-guts
|
[2019-08-10T11:24:52.741795+06:00] Couldn't read server guts. Using some default values.
|
[2019-08-10T11:24:52.805199+06:00] I/O error(2): No such file or directory
|
Running the dump-guts script directly using escript or cbcollect_info produces the real error:
Got exception: {error,{badmatch,false}}
|
[{'dump-guts__escript__1565__356580__171450',main_with_everything,4,
|
[{file,"/opt/couchbase/bin/dump-guts"},{line,610}]},
|
{'dump-guts__escript__1565__356580__171450',main,1,
|
[{file,"/opt/couchbase/bin/dump-guts"},{line,142}]},
|
{escript,run,2,[{file,"escript.erl"},{line,747}]},
|
{escript,start,1,[{file,"escript.erl"},{line,277}]},
|
{init,start_it,1,[]},
|
{init,start_em,1,[]}]
|
|
escript: exception error: no match of right hand side value false
|
in function 'dump-guts__escript__1565__356580__171450':main_with_everything/4 (/opt/cou chbase/bin/dump-guts, line 610)
|
in call from 'dump-guts__escript__1565__356580__171450':main/1 (/opt/couchbase/bin/dump- guts, line 142)
|
in call from escript:run/2 (escript.erl, line 747)
|
in call from escript:start/1 (escript.erl, line 277)
|
in call from init:start_it/1
|
in call from init:start_em/1
|
From this, we could determine what the actual error is.
It would be good if cbcollect_info printed the output of this escript to cbcollect_info.log if dump-guts fails, so that we can diagnose the failures directly from the logs, rather than needing to have the user run another command manually.
Attachments
For Gerrit Dashboard: MB-35538 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
136116,3 | MB-35538 Print dump-guts failure in cbcollect_info.log | master | ns_server | Status: MERGED | +2 | +1 |