**RIAK NOVICE** (One could say "accidental" RIAK administrator.)
I'm unable to restart RIAK on a server after recent Ubuntu 16 patching. This is 1/10 nodes (2 "clusters"), so I'm not concerned it's a patching issue.
I have AAE enabled. I tried to clear /etc/riak/data/anti_entropy twice, but no luck restarting the process.
Googling around, I came across:
Just for fun, I tried "riak attach", but it seems
root@[REMOVED]:/var/log/riak# riak attach
Node is not running!
root@[REMOVED]:/var/log/riak#
Is that a "supervisor" function and I can't even see if I can try this on the index number found below (yes, I see the above link "warns" that AAE should be able to recover automagically)?
riak_kv_vnode:repair(»Partition ID«)
What appears relevant to me:
console.log:
2019-09-24 04:59:07.635 [error] <0.880.0>@riak_kv_vnode:init:442 Failed to start riak_kv_eleveldb_backend backend for index 296867520082839655260123481645494988367611297792 error: {db_open,"Corruption: truncated record at end of file"}
2019-09-24 04:59:07.635 [notice] <0.880.0>@riak:stop:43 "backend module failed to start."
2019-09-24 04:59:07.635 [error] <0.880.0> gen_fsm <0.880.0> in state started terminated with reason: no function clause matching riak_kv_vnode:terminate({bad_return_value,{stop,{db_open,"Corruption: truncated record at end of file"}}}, undefined) line 1071
2019-09-24 04:59:07.635 [error] <0.880.0> CRASH REPORT Process <0.880.0> with 0 neighbours exited with reason: no function clause matching riak_kv_vnode:terminate({bad_return_value,{stop,{db_open,"Corruption: truncated record at end of file"}}}, undefined) line 1071 in gen_fsm:terminate/7 line 600
2019-09-24 04:59:07.637 [error] <0.241.0> Supervisor riak_core_vnode_sup had child undefined started with {riak_core_vnode,start_link,undefined} at <0.880.0> exit with reason no function clause matching riak_kv_vnode:terminate({bad_return_value,{stop,{db_open,"Corruption: truncated record at end of file"}}}, undefined) line 1071 in context child_terminated
2019-09-24 04:59:07.640 [error] <0.238.0> Supervisor riak_core_sup had child riak_core_vnode_manager started with riak_core_vnode_manager:start_link() at <0.265.0> exit with reason {{function_clause,[{riak_kv_vnode,terminate,[{bad_return_value,{stop,{db_open,"Corruption: truncated record at end of file"}}},undefined],[{file,"src/riak_kv_vnode.erl"},{line,1071}]},{riak_core_vnode,terminate,3,[{file,"src/riak_core_vnode.erl"},{line,907}]},{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,597}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},{gen_fsm,sync_send_event,[<0.880.0>,wait_for_init,infinity]}} in context child_terminated
crash.log:
2019-09-24 04:55:37 =ERROR REPORT====
** State machine <0.843.0> terminating
** Last event in was timeout
** When State == started
** Data == {state,296867520082839655260123481645494988367611297792,riak_kv_vnode,undefined,undefined,none,undefined,undefined,undefined,undefined,undefined,0}
** Reason for termination =
** {function_clause,[{riak_kv_vnode,terminate,[{bad_return_value,{stop,{db_open,"Corruption: truncated record at end of file"}}},undefined],[{file,"src/riak_kv_vnode.erl"},{line,1071}]},{riak_core_
vnode,terminate,3,[{file,"src/riak_core_vnode.erl"},{line,907}]},{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,597}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
2019-09-24 04:55:37 =CRASH REPORT====
crasher:
initial call: riak_core_vnode:init/1
pid: <0.843.0>
registered_name: []
exception exit: {{function_clause,[{riak_kv_vnode,terminate,[{bad_return_value,{stop,{db_open,"Corruption: truncated record at end of file"}}},undefined],[{file,"src/riak_kv_vnode.erl"},{line,1
071}]},{riak_core_vnode,terminate,3,[{file,"src/riak_core_vnode.erl"},{line,907}]},{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,597}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,2
39}]}]},[{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,600}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
ancestors: [riak_core_vnode_sup,riak_core_sup,<0.228.0>]
messages: [{'$gen_sync_event',{<0.841.0>,#Ref<0.0.0.2863>},wait_for_init}]
links: [<0.232.0>]
dictionary: [{random_seed,{26318,29506,29332}}]
trap_exit: true
status: running
heap_size: 987
stack_size: 27
reductions: 8091
neighbours: