Error using web-stomp-examples plugin (3.6.x RC3)

701 views
Skip to first unread message

Santiago Fernández

unread,
Dec 17, 2015, 12:36:18 PM12/17/15
to rabbitm...@googlegroups.com
Hi,

I am trying to use web-stomp-examples plugin from 3.6.0.61216 generic server (Ubuntu 15.10, Erlang 18.1 - rabbitmq-server-generic-unix-3.6.0.61216.tar.gz)

This is my "enabled_plugins" file:
[rabbitmq_management,rabbitmq_tracing,rabbitmq_web_stomp,rabbitmq_web_stomp_examples].

sbin$ ./rabbitmq-server start

              RabbitMQ 3.6.0.61216. Copyright (C) 2007-2015 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /home/sfernandez/Downloads/rabbitmq_server-3.6.0.61216/var/log/rabbitmq/rab...@m4400.log
  ######  ##        /home/sfernandez/Downloads/rabbitmq_server-3.6.0.61216/var/log/rabbitmq/rab...@m4400-sasl.log
  ##########
              Starting broker... completed with 13 plugins.

When I access to this url: http://127.0.0.1:15670/web-stomp-examples/echo.html?ws , I get the following error in the "Logs" textarea

Opening Web Socket...
Whoops! Lost connection to ws://127.0.0.1:15674/ws

(same error in FF and Chrome)

The server log file is attached. I am doing something wrong?

Any help will be appreciated, thanks!


--
Santiago
rabbit@m4400.log

Loïc Hoguin

unread,
Dec 17, 2015, 1:18:41 PM12/17/15
to rabbitm...@googlegroups.com
Hello,

At least one of the errors you get in the logs should not happen with
this version of RabbitMQ. The last one. The error was fixed about one
week ago.

It is possible that you have leftovers that Erlang picks up. Maybe you
were running an older RabbitMQ before and it picks up the older plugins
directory from configuration or environment? I'm not sure what's
happening exactly to be honest. But if you try on a clean environment it
will probably work as intended.

Just to be sure I inspected the beam files from the archive you mention
and the offending code is indeed gone.

Cheers,

On 12/17/2015 06:36 PM, Santiago Fernández wrote:
> Hi,
>
> I am trying to use web-stomp-examples plugin from 3.6.0.61216 generic
> server (Ubuntu 15.10, Erlang 18.1 -
> rabbitmq-server-generic-unix-3.6.0.61216.tar.gz)
>
> This is my "enabled_plugins" file:
> [rabbitmq_management,rabbitmq_tracing,rabbitmq_web_stomp,rabbitmq_web_stomp_examples].
>
> sbin$ ./rabbitmq-server start
>
> RabbitMQ 3.6.0.61216. Copyright (C) 2007-2015 Pivotal
> Software, Inc.
> ## ## Licensed under the MPL. See http://www.rabbitmq.com/
> ## ##
> ########## Logs:
> /home/sfernandez/Downloads/rabbitmq_server-3.6.0.61216/var/log/rabbitmq/rab...@m4400.log
> ###### ##
> /home/sfernandez/Downloads/rabbitmq_server-3.6.0.61216/var/log/rabbitmq/rab...@m4400-sasl.log
> ##########
> Starting broker... completed with 13 plugins.
>
> When I access to this url:
> http://127.0.0.1:15670/web-stomp-examples/echo.html?ws , I get the
> following error in the "Logs" textarea
>
> *Opening Web Socket...
> Whoops! Lost connection to ws://127.0.0.1:15674/ws
> <http://127.0.0.1:15674/ws>
> *
> (same error in FF and Chrome)
>
> The server log file is attached. I am doing something wrong?
>
> Any help will be appreciated, thanks!
>
>
> --
> Santiago
>
> --
> 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-user...@googlegroups.com
> <mailto:rabbitmq-user...@googlegroups.com>.
> To post to this group, send email to rabbitm...@googlegroups.com
> <mailto:rabbitm...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

--
Loïc Hoguin
http://ninenines.eu
Author of The Erlanger Playbook,
A book about software development using Erlang

Santiago Fernández

unread,
Dec 17, 2015, 4:22:14 PM12/17/15
to rabbitm...@googlegroups.com
Thanks, Loïc
I ran my test on a clean environment, with RabbitMQ 3.6.0.61217 on Erlang 18.2 (Ubuntu 14.04.3 LTS) and I got the same error "Whoops! Lost connection to ...", see attach file for more details pls

I'm interested in generic unix .tar.gz archive because I want to integrate an embedded rabbitmq in another project to use locally and testing, without having to install RabbitMQ service in each developer machine.

I will try to reproduce this error using .deb version
Regards




--
Santiago

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 an email to rabbitm...@googlegroups.com.
rabbit@matriz4.log

Michael Klishin

unread,
Dec 17, 2015, 4:27:52 PM12/17/15
to rabbitm...@googlegroups.com, Santiago Fernández
On 18 December 2015 at 00:22:13, Santiago Fernández (san...@gmail.com) wrote:
> I ran my test on a clean environment, with RabbitMQ 3.6.0.61217
> on Erlang 18.2 (Ubuntu 14.04.3 LTS) and I got the same error "Whoops!
> Lost connection to ...", see attach file for more details pls
>
> I'm interested in generic unix .tar.gz archive because I want
> to integrate an embedded rabbitmq in another project to use locally
> and testing, without having to install RabbitMQ service in each
> developer machine.
>
> I will try to reproduce this error using .deb version

We haven't tested Erlang 18.2 yet, please stick to 18.1. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Michael Klishin

unread,
Dec 17, 2015, 4:31:32 PM12/17/15
to rabbitm...@googlegroups.com, Santiago Fernández
On 18 December 2015 at 00:22:13, Santiago Fernández (san...@gmail.com) wrote:
> I ran my test on a clean environment, with RabbitMQ 3.6.0.61217
> on Erlang 18.2 (Ubuntu 14.04.3 LTS) and I got the same error "Whoops!
> Lost connection to ..."

What *exactly* did you do?

We inspected compiled module files and not sure how you can end up having
this (fixed some time ago) issue.

Can you try packages from http://www.rabbitmq.com/nightlies/rabbitmq-server/v3.6.0.61217/
and provide a log of actions (from the moment you download the file) we can use? 

Santiago Fernández

unread,
Dec 17, 2015, 4:51:26 PM12/17/15
to Michael Klishin, rabbitm...@googlegroups.com
Ok here are the steps using Erlang 18.1:

1. on a new ubuntu 14 VM (Digital Ocean), run apt-get update and install http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.1-1~ubuntu~trusty_amd64.deb
2. set up firewall and open ports 15670 and 15674
3. create new user, change to the new user and execute:

$ wget https://www.rabbitmq.com/nightlies/rabbitmq-server/current/rabbitmq-server-generic-unix-3.6.0.61217.tar.gz
$ tar xzvf rabbitmq-server-generic-unix-3.6.0.61217.tar.gz
$ cd rabbitmq_server-3.6.0.61217/sbin
$ ./rabbitmq-server start
$ ./rabbitmq-plugins enable rabbitmq_management rabbitmq_tracing rabbitmq_web_stomp rabbitmq_web_stomp_examples
$ ./rabbitmqctl stop
$ cd ..
$ rm -rf var/
$ cd sbin
$ ./rabbitmq-server start

Go to my browser, open http://server:15670/web-stomp-examples/echo.html?ws and got the error

Let me know if you need more information or I'm making a mistake
Sorry for my english pls

Thanks,



--
Santiago
rabbit@matriz4.log

Michael Klishin

unread,
Dec 17, 2015, 6:36:15 PM12/17/15
to Santiago Fernández, rabbitm...@googlegroups.com
 On 18 December 2015 at 00:51:23, Santiago Fernández (san...@gmail.com) wrote:
> 1. on a new ubuntu 14 VM (Digital Ocean), run apt-get update and
> install http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.1-1~ubuntu~trusty_amd64.deb
> 2. set up firewall and open ports 15670 and 15674
> 3. create new user, change to the new user and execute:
>
> $ wget https://www.rabbitmq.com/nightlies/rabbitmq-server/current/rabbitmq-server-generic-unix-3.6.0.61217.tar.gz
> $ tar xzvf rabbitmq-server-generic-unix-3.6.0.61217.tar.gz
> $ cd rabbitmq_server-3.6.0.61217/sbin
> $ ./rabbitmq-server start
> $ ./rabbitmq-plugins enable rabbitmq_management rabbitmq_tracing
> rabbitmq_web_stomp rabbitmq_web_stomp_examples
> $ ./rabbitmqctl stop
> $ cd ..
> $ rm -rf var/
> $ cd sbin
> $ ./rabbitmq-server start
>
> Go to my browser, open http://server:15670/web-stomp-examples/echo.html?ws
> and got the error
>
> Let me know if you need more information or I'm making a mistake

I can reproduce this with a nightly but not RC3. So this is an issue with the nightlies
build environment, thanks for bringing this up.

Please try RC3.

Santiago Fernández

unread,
Dec 17, 2015, 8:22:37 PM12/17/15
to Michael Klishin, rabbitm...@googlegroups.com

Great! RC3 works fine
I misunderstood nightly build vs last release candidate version.

Thanks for your help

Peter Hanna

unread,
Sep 21, 2017, 1:28:09 AM9/21/17
to rabbitmq-users
I'm facing this same problem on the new RabbitMQ 3.6.12 using the webstomp plugin running Erlang otp_win64_20.0

Opening Web Socket...Web Socket Opened...>>> CONNECT login:guest passcode:guest host:/ accept-version:1.1,1.0 heart-beat:10000,10000 <<< CONNECTED server:RabbitMQ/3.6.12 session:session-p_K_qO3Q81x5YI1VK8YLPQ heart-beat:10000,10000 version:1.1 connected to server RabbitMQ/3.6.12send PING every 10000mscheck PONG every 10000ms>>> SUBSCRIBE id:sub-0 destination:/topic/test >>> PING>>> PINGdid not receive server activity for the last 20004msWhoops! Lost connection to http://10.88.99.125:15674/stomp

Has this bug been re-introduced??
Pete

Michael Klishin

unread,
Sep 21, 2017, 1:49:22 AM9/21/17
to rabbitm...@googlegroups.com
There is not enough evidence that this is the same issue. See what’s being sent over the socket as well as server logs.
--
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-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

Peter Hanna

unread,
Sep 21, 2017, 2:36:28 AM9/21/17
to rabbitmq-users
I just discovered that the connectivity issue only occurs over when running the Web Stomp example over socketJS, running over plain Websocket is fine.

This occurs both when running the webstomp example from the local machine browser and from a remote machine (Both Internet Explorer 11.1593 And Google Chrome Version 61.0.3163.79 tested).
I.E 

Websocket URL OK
Opening Web Socket...Web Socket Opened...>>> CONNECT login:guest passcode:guest host:/ accept-version:1.1,1.0 heart-beat:10000,10000 <<< CONNECTED server:RabbitMQ/3.6.12 session:session-nY9YmXpZ5ltie71_kQinXg heart-beat:10000,10000 version:1.1 connected to server RabbitMQ/3.6.12send PING every 10000mscheck PONG every 10000ms>>> SUBSCRIBE id:sub-0 destination:/topic/test >>> PING<<< PONG>>> PING<<< PONG



The only issue I see in the log (attached is)
Could not find handle.exe, please install from sysinternals

If there's something else I can run/provide let me know and how to obtain it and I'll attach.

Cheers,
Pete
rabbit@AUHBSMGTWP0053.log

Michael Klishin

unread,
Sep 21, 2017, 3:01:16 AM9/21/17
to rabbitm...@googlegroups.com

What we need is a traffic capture around the time of the experiment. I would say if direct WebSockets connection works, we can move on.

SockJS (emulation) was relevant 6 years ago but not so much today.
--
Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages