[Question/Help] C++ simple send example not showing in management plugin

80 views
Skip to first unread message

Jasser Kafafi

unread,
May 25, 2018, 10:05:32 PM5/25/18
to rabbitmq-users
When I make send with cmake and execute the send file in terminal it seems to execute fine but I get AMQP error invalid end of frame marker
No que is made/visible  when I log into


Here is the code for the send file.
Any help is much appreciated!

#include <iostream>

#include "SimplePocoHandler.h"

int main(void)
{
    SimplePocoHandler handler("localhost", 5672);
    AMQP::Connection connection(&handler, AMQP::Login("test", "test"), "/");
    AMQP::Channel channel(&connection);
    channel.onReady([&]()

    {
        if(handler.connected())
        for (int i=1; i<=2; i++)
        {
            channel.publish("", "hello", "Hello World!");
            std::cout << " [x] Sent 'Hello World!'" << std::endl;
            handler.quit();
        }

    });

Michael Klishin

unread,
May 25, 2018, 11:31:06 PM5/25/18
to rabbitm...@googlegroups.com
Start with inspecting server logs and going through the methodology described in [1].
It would help others a lot if the actual error/stack trace was shared instead of "an invalid end of frame marker".

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael Klishin

unread,
May 25, 2018, 11:31:31 PM5/25/18
to rabbitm...@googlegroups.com
Wireshark [1] can provide a lot of relevant information, too.

1. http://www.rabbitmq.com/amqp-wireshark.html

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

spider

unread,
May 26, 2018, 4:41:36 AM5/26/18
to rabbitmq-users
 I've followed the first 2 steps in https://www.rabbitmq.com/troubleshooting-networking.html
however it does not specify where to look in order to:
  • Check server logs (see above)
  • Verify hostname resolution
  • Verify TCP port connectivity
  • Verify IP routing
  • If needed, take and analyze a traffic dump (traffic capture)

  • "It would help others a lot if the actual error/stack trace" is that what I have below? Where would I find this stack trace? 
Sorry I am really new to this










pi@raspberrypi:~ $ sudo rabbitmqctl status
Status of node rabbit@raspberrypi ...
[{pid,384},
 {running_applications,
     [{rabbitmq_management,"RabbitMQ Management Console","3.7.5"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.5"},
      {cowboy,"Small, fast, modern HTTP server.","2.2.2"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.5"},
      {cowlib,"Support library for manipulating Web protocols.","2.1.0"},
      {amqp_client,"RabbitMQ AMQP Client","3.7.5"},
      {rabbit,"RabbitMQ","3.7.5"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.7.5"},
      {ranch_proxy_protocol,"Ranch Proxy Protocol Transport","1.5.0"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.5.0"},
      {ssl,"Erlang/OTP SSL application","8.2.2"},
      {public_key,"Public key infrastructure","1.5.1"},
      {crypto,"CRYPTO","4.1"},
      {asn1,"The Erlang ASN1 compiler version 5.0.3","5.0.3"},
      {xmerl,"XML parser","1.3.15"},
      {mnesia,"MNESIA  CXC 138 12","4.15.1"},
      {recon,"Diagnostic tools for production use","2.3.2"},
      {os_mon,"CPO  CXC 138 46","2.4.3"},
      {inets,"INETS  CXC 138 49","6.4.4"},
      {jsx,"a streaming, evented json parsing toolkit","2.8.2"},
      {lager,"Erlang logging framework","3.5.1"},
      {goldrush,"Erlang event stream processor","0.1.9"},
      {compiler,"ERTS  CXC 138 10","7.1.3"},
      {syntax_tools,"Syntax tools","2.1.3"},
      {sasl,"SASL  CXC 138 11","3.1"},
      {stdlib,"ERTS  CXC 138 10","3.4.2"},
      {kernel,"ERTS  CXC 138 10","5.4"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang/OTP 20 [erts-9.1.5] [source] [smp:4:4] [ds:4:4:10] [async-threads:64] [hipe] [kernel-poll:true]\n"},
 {memory,
     [{connection_readers,0},
      {connection_writers,0},
      {connection_channels,0},
      {connection_other,9952},
      {queue_procs,0},
      {queue_slave_procs,0},
      {plugins,732180},
      {other_proc,13294776},
      {metrics,99092},
      {mgmt_db,209172},
      {mnesia,38104},
      {other_ets,1105244},
      {binary,102768},
      {msg_index,15240},
      {code,15633313},
      {atom,873089},
      {other_system,6760358},
      {allocated_unused,20531000},
      {reserved_unallocated,0},
      {strategy,rss},
      {total,[{erlang,38873288},{rss,51253248},{allocated,59404288}]}]},
 {alarms,[]},
 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{http,15672,"::"}]},
 {vm_memory_calculation_strategy,rss},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,388895539},
 {disk_free_limit,50000000},
 {disk_free,24804560896},
 {file_descriptors,
     [{total_limit,924},{total_used,2},{sockets_limit,829},{sockets_used,0}]},
 {processes,[{limit,1048576},{used,370}]},
 {run_queue,0},
 {uptime,2057},
 {kernel,{net_ticktime,60}}]
pi@raspberrypi:~ $ sudo rabbitmqctl environment
Application environment of node rabbit@raspberrypi ...
[{amqp_client,[{prefer_ipv6,false},{ssl_options,[]}]},
 {asn1,[]},
 {compiler,[]},
 {cowboy,[]},
 {cowlib,[]},
 {crypto,[{fips_mode,false}]},
 {goldrush,[]},
 {inets,[]},
 {jsx,[]},
 {kernel,
     [{error_logger,tty},
      {inet_default_connect_options,[{nodelay,true}]},
      {inet_dist_listen_max,25672},
      {inet_dist_listen_min,25672}]},
 {lager,
     [{async_threshold,20},
      {async_threshold_window,5},
      {colored,false},
      {colors,
          [{debug,"\e[0;38m"},
           {info,"\e[1;37m"},
           {notice,"\e[1;36m"},
           {warning,"\e[1;33m"},
           {error,"\e[1;31m"},
           {critical,"\e[1;35m"},
           {alert,"\e[1;44m"},
           {emergency,"\e[1;41m"}]},
      {crash_log,"log/crash.log"},
      {crash_log_count,5},
      {crash_log_date,"$D0"},
      {crash_log_msg_size,65536},
      {crash_log_size,10485760},
      {error_logger_format_raw,true},
      {error_logger_hwm,50},
      {error_logger_hwm_original,50},
      {error_logger_redirect,true},
      {extra_sinks,
          [{error_logger_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_channel_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_connection_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_mirroring_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_queue_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_federation_lager_event,
               [{handlers,[{lager_forwarder_backend,[lager_event,inherit]}]},
                {rabbit_handlers,
                    [{lager_forwarder_backend,[lager_event,inherit]}]}]},
           {rabbit_log_upgrade_lager_event,
               [{handlers,
                    [{lager_file_backend,
                         [{date,[]},
                          {file,
                              "/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"},
                          {formatter_config,
                              [date," ",time," ",color,"[",severity,"] ",
                               {pid,[]},
                               " ",message,"\n"]},
                          {level,info},
                          {size,0}]}]},
                {rabbit_handlers,
                    [{lager_file_backend,
                         [{date,[]},
                          {file,
                              "/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"},
                          {formatter_config,
                              [date," ",time," ",color,"[",severity,"] ",
                               {pid,[]},
                               " ",message,"\n"]},
                          {level,info},
                          {size,0}]}]}]}]},
      {handlers,
          [{lager_file_backend,
               [{date,[]},
                {file,"/var/log/rabbitmq/rab...@raspberrypi.log"},
                {formatter_config,
                    [date," ",time," ",color,"[",severity,"] ",
                     {pid,[]},
                     " ",message,"\n"]},
                {level,info},
                {size,0}]}]},
      {log_root,"/var/log/rabbitmq"},
      {rabbit_handlers,
          [{lager_file_backend,
               [{date,[]},
                {file,"/var/log/rabbitmq/rab...@raspberrypi.log"},
                {formatter_config,
                    [date," ",time," ",color,"[",severity,"] ",
                     {pid,[]},
                     " ",message,"\n"]},
                {level,info},
                {size,0}]}]}]},
 {mnesia,[{dir,"/var/lib/rabbitmq/mnesia/rabbit@raspberrypi"}]},
 {os_mon,
     [{start_cpu_sup,false},
      {start_disksup,false},
      {start_memsup,false},
      {start_os_sup,false}]},
 {public_key,[]},
 {rabbit,
     [{auth_backends,[rabbit_auth_backend_internal]},
      {auth_mechanisms,['PLAIN','AMQPLAIN']},
      {autocluster,
          [{peer_discovery_backend,rabbit_peer_discovery_classic_config}]},
      {background_gc_enabled,false},
      {background_gc_target_interval,60000},
      {backing_queue_module,rabbit_priority_queue},
      {channel_max,2047},
      {channel_operation_timeout,15000},
      {cluster_keepalive_interval,10000},
      {cluster_nodes,{[],disc}},
      {cluster_partition_handling,ignore},
      {collect_statistics,fine},
      {collect_statistics_interval,5000},
      {config_entry_decoder,
          [{cipher,aes_cbc256},
           {hash,sha512},
           {iterations,1000},
           {passphrase,undefined}]},
      {connection_max,infinity},
      {credit_flow_default_credit,{400,200}},
      {default_consumer_prefetch,{false,0}},
      {default_permissions,[<<".*">>,<<".*">>,<<".*">>]},
      {default_user,<<"guest">>},
      {default_user_tags,[administrator]},
      {default_vhost,<<"/">>},
      {delegate_count,16},
      {disk_free_limit,50000000},
      {disk_monitor_failure_retries,10},
      {disk_monitor_failure_retry_interval,120000},
      {enabled_plugins_file,"/etc/rabbitmq/enabled_plugins"},
      {fhc_read_buffering,false},
      {fhc_write_buffering,true},
      {frame_max,131072},
      {halt_on_upgrade_failure,true},
      {handshake_timeout,10000},
      {heartbeat,60},
      {hipe_compile,false},
      {hipe_modules,
          [rabbit_reader,rabbit_channel,gen_server2,rabbit_exchange,
           rabbit_command_assembler,rabbit_framing_amqp_0_9_1,rabbit_basic,
           rabbit_event,lists,queue,priority_queue,rabbit_router,rabbit_trace,
           rabbit_misc,rabbit_binary_parser,rabbit_exchange_type_direct,
           rabbit_guid,rabbit_net,rabbit_amqqueue_process,
           rabbit_variable_queue,rabbit_binary_generator,rabbit_writer,
           delegate,gb_sets,lqueue,sets,orddict,rabbit_amqqueue,
           rabbit_limiter,gb_trees,rabbit_queue_index,
           rabbit_exchange_decorator,gen,dict,ordsets,file_handle_cache,
           rabbit_msg_store,array,rabbit_msg_store_ets_index,rabbit_msg_file,
           rabbit_exchange_type_fanout,rabbit_exchange_type_topic,mnesia,
           mnesia_lib,rpc,mnesia_tm,qlc,sofs,proplists,credit_flow,pmon,
           ssl_connection,tls_connection,ssl_record,tls_record,gen_fsm,ssl]},
      {lager_default_file,"/var/log/rabbitmq/rab...@raspberrypi.log"},
      {lager_extra_sinks,
          [rabbit_log_lager_event,rabbit_log_channel_lager_event,
           rabbit_log_connection_lager_event,rabbit_log_mirroring_lager_event,
           rabbit_log_queue_lager_event,rabbit_log_federation_lager_event,
           rabbit_log_upgrade_lager_event]},
      {lager_log_root,"/var/log/rabbitmq"},
      {lager_upgrade_file,"/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"},
      {lazy_queue_explicit_gc_run_operation_threshold,1000},
      {log,
          [{file,[{file,"/var/log/rabbitmq/rab...@raspberrypi.log"}]},
           {categories,
               [{upgrade,
                    [{file,
                         "/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"}]}]}]},
      {loopback_users,[<<"guest">>]},
      {memory_monitor_interval,2500},
      {mirroring_flow_control,true},
      {mirroring_sync_batch_size,4096},
      {mnesia_table_loading_retry_limit,10},
      {mnesia_table_loading_retry_timeout,30000},
      {msg_store_credit_disc_bound,{4000,800}},
      {msg_store_file_size_limit,16777216},
      {msg_store_index_module,rabbit_msg_store_ets_index},
      {msg_store_io_batch_size,4096},
      {num_ssl_acceptors,10},
      {num_tcp_acceptors,10},
      {password_hashing_module,rabbit_password_hashing_sha256},
      {plugins_dir,
          "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.5/plugins"},
      {plugins_expand_dir,
          "/var/lib/rabbitmq/mnesia/rabbit@raspberrypi-plugins-expand"},
      {proxy_protocol,false},
      {queue_explicit_gc_run_operation_threshold,1000},
      {queue_index_embed_msgs_below,4096},
      {queue_index_max_journal_entries,32768},
      {reverse_dns_lookups,false},
      {server_properties,[]},
      {ssl_allow_poodle_attack,false},
      {ssl_apps,[asn1,crypto,public_key,ssl]},
      {ssl_cert_login_from,distinguished_name},
      {ssl_handshake_timeout,5000},
      {ssl_listeners,[]},
      {ssl_options,[]},
      {tcp_listen_options,
          [{backlog,128},
           {nodelay,true},
           {linger,{true,0}},
           {exit_on_close,false}]},
      {tcp_listeners,[5672]},
      {trace_vhosts,[]},
      {vhost_restart_strategy,continue},
      {vm_memory_calculation_strategy,rss},
      {vm_memory_high_watermark,0.4},
      {vm_memory_high_watermark_paging_ratio,0.5}]},
 {rabbit_common,[]},
 {rabbitmq_management,
     [{cors_allow_origins,[]},
      {cors_max_age,1800},
      {http_log_dir,none},
      {listener,[{port,15672}]},
      {load_definitions,none},
      {management_db_cache_multiplier,5},
      {process_stats_gc_timeout,300000},
      {stats_event_max_backlog,250}]},
 {rabbitmq_management_agent,
     [{rates_mode,basic},
      {sample_retention_policies,
          [{global,[{605,5},{3660,60},{29400,600},{86400,1800}]},
           {basic,[{605,5},{3600,60}]},
           {detailed,[{605,5}]}]}]},
 {rabbitmq_web_dispatch,[]},
 {ranch,[]},
 {ranch_proxy_protocol,[{proxy_protocol_timeout,55000},{ssl_accept_opts,[]}]},
 {recon,[]},
 {sasl,[{errlog_type,error},{sasl_error_logger,false}]},
 {ssl,[]},
 {stdlib,[]},
 {syntax_tools,[]},
 {xmerl,[]}]
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael Klishin

unread,
May 26, 2018, 11:17:20 AM5/26/18
to rabbitm...@googlegroups.com
Stack traces are produced by applications, client libraries or server nodes when unhandled exceptions happen.



      {lager_default_file,"/var/log/rabbitmq/rabbit@raspberrypi.log"},
      {lager_extra_sinks,
          [rabbit_log_lager_event,rabbit_log_channel_lager_event,
           rabbit_log_connection_lager_event,rabbit_log_mirroring_lager_event,
           rabbit_log_queue_lager_event,rabbit_log_federation_lager_event,
           rabbit_log_upgrade_lager_event]},
      {lager_log_root,"/var/log/rabbitmq"},
      {lager_upgrade_file,"/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"},
      {lazy_queue_explicit_gc_run_operation_threshold,1000},
      {log,
          [{file,[{file,"/var/log/rabbitmq/rabbit@raspberrypi.log"}]},
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

spider

unread,
May 27, 2018, 2:37:50 PM5/27/18
to rabbitmq-users

I still dont know how to get stack traces, but I've attached a capture from wireshark. Does that help?
packets.pcapng

spider

unread,
May 27, 2018, 3:38:05 PM5/27/18
to rabbitmq-users
Ok so after more research I typed in wireshark -i wlan0 -k in the terminal, then when wireshark runs I filter it by typing tcp.port==5672 but nothing shows up. What am I doing wrong?

Michael Klishin

unread,
May 28, 2018, 4:30:06 AM5/28/18
to rabbitm...@googlegroups.com
The easiest option is to probably use the Wireshark UI. You can filter by "amqp".

If there is no traffic on that port, then no clients have ever connected (and likely event attempted to), or the
capture was not started at the right time. 

On 27 May 2018 at 22:38:17, spider (jasser...@gmail.com) wrote:
> Ok so after more research I typed in wireshark -i wlan0 -k in the terminal,
> then when wireshark runs I filter it by typing tcp.port==5672 but nothing
> shows up. What am I doing wrong?
>
> On Sunday, May 27, 2018 at 11:37:50 AM UTC-7, spider wrote:
> >
> >
> > I still dont know how to get stack traces, but I've attached a capture
> > from wireshark. Does that help?
> > On Saturday, May 26, 2018 at 3:17:20 PM UTC, Michael Klishin wrote:
> >>
> >> Stack traces are produced by applications, client libraries or server
> >> nodes when unhandled exceptions happen.
> >>
> >>
> >>
> >> On Sat, May 26, 2018 at 9:41 AM, spider wrote:
> >>
> >>> I've followed the first 2 steps in
> >>> https://www.rabbitmq.com/troubleshooting-networking.html
> >>>
> >>> however it does not specify where to look in order to:
> >>>
> >>> - Check server logs (see above)
> >>> - Verify hostname resolution
> >>> - Verify TCP port connectivity
> >>> - Verify IP routing
> >>> - If needed, take and analyze a traffic dump (traffic capture)
> >>> -
> >>> - "It would help others a lot if the actual error/stack trace" is
> >>> {lager_default_file,"/var/log/rabbitmq/rab...@raspberrypi.log"},
> >>> {lager_extra_sinks,
> >>> [rabbit_log_lager_event,rabbit_log_channel_lager_event,
> >>>
> >>> rabbit_log_connection_lager_event,rabbit_log_mirroring_lager_event,
> >>>
> >>> rabbit_log_queue_lager_event,rabbit_log_federation_lager_event,
> >>> rabbit_log_upgrade_lager_event]},
> >>> {lager_log_root,"/var/log/rabbitmq"},
> >>>
> >>> {lager_upgrade_file,"/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"},
> >>> {lazy_queue_explicit_gc_run_operation_threshold,1000},
> >>> {log,
> >>> [{file,[{file,"/var/log/rabbitmq/rab...@raspberrypi.log"}]},
> >>>> wrote:
> >>>>
> >>>>> Start with inspecting server logs and going through the methodology
> >>>>> described in [1].
> >>>>> It would help others a lot if the actual error/stack trace was shared
> >>>>> instead of "an invalid end of frame marker".
> >>>>>
> >>>>> 1. https://www.rabbitmq.com/troubleshooting-networking.html
> >>>>>
> >>>>> On Sat, May 26, 2018 at 5:05 AM, Jasser Kafafi
> >>>>> wrote:
> >>>>>
> >>>>>> When I make send with cmake and execute the send file in terminal it
> >>>>>> seems to execute fine but I get AMQP error invalid end of frame marker
> >>>>>> No que is made/visible when I log into
> >>>>>> http://localhost:15672/#/queues
> >>>>>>
> >>>>>>
> >>>>>> Here is the code for the send file.
> >>>>>> Any help is much appreciated!
> >>>>>>
> >>>>>> #include
> >>>>>>
> To post to this group, send an email to rabbitm...@googlegroups.com.

Jasser Kafafi

unread,
May 28, 2018, 4:52:15 AM5/28/18
to rabbitm...@googlegroups.com
That's exactly what I've done but nothing shows up. I wonder why the clients have never connected

Michael Klishin

unread,
May 28, 2018, 5:52:43 AM5/28/18
to rabbitm...@googlegroups.com
[1] was written exactly with such scenarios in mind.

[2][3] document default log file location on various OS'es. It can also be found in `rabbitmqctl environment`:

rabbitmqctl environment | grep "lager_file_backend" -A 4 -B 2

spider

unread,
May 28, 2018, 8:50:33 PM5/28/18
to rabbitmq-users
Ok my code is a little different now (see below), but I am sending to an IP address instead of a local host. 
Nothing is showing up in my rmq management plugin interface (I know this works corretly because I've tested it with my Java code).

After filtering wire shark with tcp.port == 5672, I get some packets like this....

641 343.669719383 10.110.25.150 10.110.147.224 TCP 74 37146 → 5672 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=175097203 TSecr=0 WS=128

I've attached the packet readings as well as a pcapng file (that can be opened with wireshark)
Any idea where I can go from here?

Many thanks!


#include <iostream>
#include <Poco/Net/IPAddress.h>

#include "SimplePocoHandler.h"

int main(void)
{
    const Poco::Net::IPAddress ip("10.110.147.224");
    SimplePocoHandler handler(ip, 5672);

    AMQP::Connection connection(&handler, AMQP::Login("test", "test"), "/");
    AMQP::Channel channel(&connection);

    channel.onReady([&]()
    {
        if (handler.connected())
        {
            channel.publish("", "hello", "Cowabunga!");
            std::cout << " [x] Sent " << std::endl;
            handler.quit();
        }
    });
    
    handler.loop();
    return 0;
> {lager_default_file,"/var/log/rabbitmq/rabbit@raspberrypi.log"},

> {lager_extra_sinks,
> [rabbit_log_lager_event,rabbit_log_channel_lager_event,
>
> rabbit_log_connection_lager_event,rabbit_log_mirroring_lager_event,
> rabbit_log_queue_lager_event,rabbit_log_federation_lager_event,
> rabbit_log_upgrade_lager_event]},
> {lager_log_root,"/var/log/rabbitmq"},
>
> {lager_upgrade_file,"/var/log/rabbitmq/rabbit@raspberrypi_upgrade.log"},
> {lazy_queue_explicit_gc_run_operation_threshold,1000},
> {log,
> [{file,[{file,"/var/log/rabbitmq/rabbit@raspberrypi.log"}]},
packets.pcapng

spider

unread,
May 28, 2018, 10:36:19 PM5/28/18
to rabbitmq-users
It says TCP Retranmission whcih means the sent message is not being acknowledged correct?
How would I fix this?

spider

unread,
May 29, 2018, 1:13:21 AM5/29/18
to rabbitmq-users
After doing more research it seems that this has to do with my firewall.
When I telenet the Ip address I want to connect to from the Pi, it times out.

Now I am trying to see how to open up the ports on my PC.
and made 2 inbound rules to accept connections for Ports 5672 and 15672 but to no avail so far.

spider

unread,
May 29, 2018, 1:43:40 AM5/29/18
to rabbitmq-users
Ok it was the firewall. After restarting I no longer have that issue.

However I am getting 
AMQP error invalid end of frame marker when I run the Send executable.

I've attached my wireshark file. Can you tell me what is going wrong?

Wireshark Packet Summaries:

10 0.137072440 192.168.137.72 192.168.137.127 TCP 74 51138 → 5672 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=680864689 TSecr=0 WS=128

20 0.150815883 192.168.137.127 192.168.137.72 TCP 66 5672 → 51138 [SYN, ACK] Seq=0 Ack=1 Win=17520 Len=0 MSS=1460 WS=256 SACK_PERM=1

21 0.151000159 192.168.137.72 192.168.137.127 TCP 54 51138 → 5672 [ACK] Seq=1 Ack=1 Win=29312 Len=0

22 0.151602105 192.168.137.72 192.168.137.127 AMQP 62 Protocol-Header 0-9-1

23 0.168308764 192.168.137.127 192.168.137.72 AMQP 546 Connection.Start 

24 0.168486582 192.168.137.72 192.168.137.127 TCP 54 51138 → 5672 [ACK] Seq=9 Ack=493 Win=30336 Len=0

55 10.179104049 192.168.137.127 192.168.137.72 TCP 54 5672 → 51138 [RST, ACK] Seq=493 Ack=9 Win=0 Len=0
packets.pcapng

Luke Bakken

unread,
May 29, 2018, 9:01:00 AM5/29/18
to rabbitmq-users
Hello,

This discussion is only slightly on-topic for this group. I followed up here:


At this point there is most likely a bug in the code you're using as your event loop.

Thanks,
Luke
Reply all
Reply to author
Forward
0 new messages