summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2015-03-05 10:42:44 +0000
committerSimon MacMullen <simon@rabbitmq.com>2015-03-05 10:42:44 +0000
commit3625fbeb85b7903c30ca5790e7cc10de2310a9d3 (patch)
tree5790a1dd875209c0c2acb3aca4101585d089c27f /src
parentb89e64bab82f461e7f60d5a0fd7bda2f659c8750 (diff)
downloadrabbitmq-server-git-3625fbeb85b7903c30ca5790e7cc10de2310a9d3.tar.gz
Add more explanatory text for timeout_waiting_for_tables
Diffstat (limited to 'src')
-rw-r--r--src/rabbit.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 083ff333c3..b55c129a91 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -607,13 +607,19 @@ sort_boot_steps(UnsortedSteps) ->
boot_error({could_not_start, rabbit, {{timeout_waiting_for_tables, _}, _}},
_Stacktrace) ->
AllNodes = rabbit_mnesia:cluster_nodes(all),
+ Suffix = "~nBACKGROUND~n==========~n~n"
+ "This cluster node was shut down while other nodes were still running.~n"
+ "To avoid losing data, you should start the other nodes first, then~n"
+ "start this one. To force this node to start, first invoke~n"
+ "\"rabbitmqctl force_boot\". If you do so, any changes made on other~n"
+ "cluster nodes after this one was shut down may be lost.~n",
{Err, Nodes} =
case AllNodes -- [node()] of
[] -> {"Timeout contacting cluster nodes. Since RabbitMQ was"
" shut down forcefully~nit cannot determine which nodes"
- " are timing out.~n", []};
+ " are timing out.~n" ++ Suffix, []};
Ns -> {rabbit_misc:format(
- "Timeout contacting cluster nodes: ~p.~n", [Ns]),
+ "Timeout contacting cluster nodes: ~p.~n" ++ Suffix, [Ns]),
Ns}
end,
log_boot_error_and_exit(