Advertisement
Guest User

Changing hosts directive broke my ejabberd

a guest
Aug 20th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. I changed my hosts directive and now ejabberd fails to start.
  2.  
  3.  
  4. /etc/hosts
  5. ----------------------------------------
  6. 127.0.0.1 localhost
  7. 127.0.1.1 egdev.vhost.oplib EgDev #### THIS LINE USED TO BE ~= /^127.0.1.1 EgDev$/
  8. 127.0.1.2 public.localhost public
  9. 127.0.1.3 private.localhost private
  10.  
  11. # The following lines are desirable for IPv6 capable hosts
  12. ::1 ip6-localhost ip6-loopback
  13. fe00::0 ip6-localnet
  14. ff00::0 ip6-mcastprefix
  15. ff02::1 ip6-allnodes
  16. ff02::2 ip6-allrouters
  17.  
  18.  
  19. /etc/hostname
  20. -------------------------------------------
  21. EgDev
  22.  
  23.  
  24. running
  25. grep -Pnir 'egdev' /openils/*
  26. grep -Pnir 'egdev' /etc/ejabberd/*
  27. finds no results
  28.  
  29.  
  30.  
  31.  
  32.  
  33. running
  34. ejabberd
  35. throws:
  36. ---------------------------------------------
  37. {error_logger,{{2013,8,20},{18,18,44}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
  38. {error_logger,{{2013,8,20},{18,18,44}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.104>,<0.17.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,377},{stack_size,24},{reductions,457}],[]]}
  39. {error_logger,{{2013,8,20},{18,18,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[['ejabberd@egdev.vhost.oplib',longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
  40. {error_logger,{{2013,8,20},{18,18,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
  41. {error_logger,{{2013,8,20},{18,18,44}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
  42. {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
  43.  
  44. Crash dump was written to: /var/log/ejabberd/erl_crash.dump
  45. Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
  46.  
  47.  
  48.  
  49.  
  50.  
  51. running
  52. ejabberdctl
  53. throws:
  54. ----------------------------
  55. Failed RPC connection to the node ejabberd@egdev: nodedown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement