Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/rabbitmq] does this work on minikube? #825

Closed
sharif9876 opened this issue Mar 21, 2017 · 6 comments
Closed

[stable/rabbitmq] does this work on minikube? #825

sharif9876 opened this issue Mar 21, 2017 · 6 comments

Comments

@sharif9876
Copy link

Tried installing rabbitmq via helm using minikube & virtualbox and I keep getting 500 errors for the api, and nothing showing up in the logs. Has this been tested using minikube?

@archseer
Copy link

archseer commented Mar 23, 2017

Same here, the rabbitmq server is crashing:

=ERROR REPORT==== 23-Mar-2017::14:11:39 ===
** Generic server rabbit_mgmt_external_stats terminating
** Last message in was emit_update
** When Server state == {state,65536,
                               [{{io_file_handle_open_attempt,count},10},
                                {{io_file_handle_open_attempt,time},524},
                                {{io_read,bytes},1},
                                {{io_read,count},1},
                                {{io_read,time},24},
                                {{io_reopen,count},0},
                                {{io_seek,count},0},
                                {{io_seek,time},0},
                                {{io_sync,count},0},
                                {{io_sync,time},0},
                                {{io_write,bytes},0},
                                {{io_write,count},0},
                                {{io_write,time},0},
                                {{mnesia_disk_tx,count},12},
                                {{mnesia_ram_tx,count},2},
                                {{msg_store_read,count},0},
                                {{msg_store_write,count},0},
                                {{queue_index_journal_write,count},0},
                                {{queue_index_read,count},0},
                                {{queue_index_write,count},0}],
                               {set,0,16,16,8,80,48,
                                    {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[],[]},
                                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]}}},
                               undefined,5000}
** Reason for termination ==
** {bad_return_value,
       {error,
           {cannot_read_enabled_plugins_file,
               "/opt/bitnami/rabbitmq/etc/rabbitmq/enabled_plugins",eacces}}}

=ERROR REPORT==== 23-Mar-2017::14:11:44 ===
** Generic server rabbit_disk_monitor terminating
** Last message in was update
** When Server state == {state,"/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost",
                               50000000,16256741376,100,10000,#Ref<0.0.0.632>,
                               false,true}
** Reason for termination ==
** {{unparseable,"/bin/df: '/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost': Permission denied\n"},
    [{rabbit_disk_monitor,parse_free_unix,1,
                          [{file,"src/rabbit_disk_monitor.erl"},{line,226}]},
     {rabbit_disk_monitor,internal_update,1,
                          [{file,"src/rabbit_disk_monitor.erl"},{line,193}]},
     {rabbit_disk_monitor,handle_info,2,
                          [{file,"src/rabbit_disk_monitor.erl"},{line,165}]},
     {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,593}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,659}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}

=INFO REPORT==== 23-Mar-2017::14:11:44 ===
Disabling disk free space monitoring on unsupported platform:
{{'EXIT',{unparseable,"/bin/df: '/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost': Permission denied\n"}},
 2097872896}

=ERROR REPORT==== 23-Mar-2017::14:14:34 ===
Mnesia(rabbit@localhost): ** ERROR ** (could not write core file: eacces)
 ** FATAL ** {error,{"Cannot rename disk_log file",latest_log,
                     "/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost/PREVIOUS.LOG",
                     {log_header,trans_log,"4.3","4.12.4",rabbit@localhost,
                                 {1490,278474,432284}},
                     {file_error,"/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost/PREVIOUS.LOG",
                                 eacces}}}

=ERROR REPORT==== 23-Mar-2017::14:14:34 ===
** Generic server rabbit_node_monitor terminating
** Last message in was ping_up_nodes
** When Server state == {state,
                            {state,
                                {dict,0,16,16,8,80,48,
                                    {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[],[]},
                                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]}}},
                                erlang},
                            [],
                            {state,
                                {dict,0,16,16,8,80,48,
                                    {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[],[]},
                                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]}}},
                                erlang},
                            undefined,
                            {erlang,#Ref<0.0.0.6359>},
                            not_healing,
                            <<22,107,248,97,18,237,248,151,170,236,113,242,108,
                              51,86,172>>,
                            []}
** Reason for termination ==
** {bad_return_value,
       {error,
           {cannot_read_file,
               "/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost/cluster_nodes.config",
               eacces}}}

=ERROR REPORT==== 23-Mar-2017::14:15:34 ===
** Generic server rabbit_core_metrics_gc terminating
** Last message in was start_gc
** When Server state == {state,#Ref<0.0.0.5682>,120000}
** Reason for termination ==
** {{aborted,{no_exists,rabbit_queue}},
    [{mnesia,abort,1,[{file,"mnesia.erl"},{line,310}]},
     {rabbit_core_metrics_gc,gc_queues,0,
                             [{file,"src/rabbit_core_metrics_gc.erl"},
                              {line,73}]},
     {rabbit_core_metrics_gc,handle_info,2,
                             [{file,"src/rabbit_core_metrics_gc.erl"},
                              {line,44}]},
     {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,593}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,659}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}

@archseer
Copy link

For the record, starting it with helm install --set persistence.enabled=false stable/rabbitmq works!

It seems that the volume storage overrides the permissions set on those files.

@jbianquetti-nami
Copy link
Contributor

It seems that you have some problems with file permissions, and if you do not persist the installation by setting persistence.enabled=false, it works as expected

** Reason for termination ==
** {bad_return_value,
       {error,
           {cannot_read_file,
               "/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit@localhost/cluster_nodes.config",
               eacces}}}

@archseer
Copy link

Yeah, it seems like an issue with the VM/minikube driver possibly

@sameersbn
Copy link
Contributor

@archseer @sharif9876. This was an issue with minikube hostPath volume mount permissions which seems to have been resolved in minikube 1.18.0. Request you to retry after updating minikube.

Do let us know if this resolves the issue. Thanks for taking the time to report this issue 🍻

@sameersbn
Copy link
Contributor

closing as this issue is fixed by upgrade to minikube 1.18.0 or higher

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants