How to change erlang version for rabbitmq (windows)

1,090 views
Skip to first unread message

Justin Teaw

unread,
Sep 15, 2017, 11:13:45 AM9/15/17
to rabbitmq-users
I'm using 3.6.12.  I installed a plugin and found an error: error,undef,'connection.start_ok', 
Searched and found that it could be due to the erlang version.  So I'm installed an older version of erlang but in the logs, rabbit seems to be still using the latest version.


Thanks!

Michael Klishin

unread,
Sep 15, 2017, 11:24:14 AM9/15/17
to rabbitm...@googlegroups.com
Can you please post the entire error? It doesn't say what function was "undefined" (does not exist).

To upgrade Erlang you need to download an installer for the new version, stop RabbitMQ, install Erlang/OTP,
then start RabbitMQ again.

--
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

Justin Teaw

unread,
Sep 15, 2017, 11:26:51 AM9/15/17
to rabbitmq-users
=ERROR REPORT==== 15-Sep-2017::11:08:50 ===
closing AMQP connection <0.590.0> ([::1]:24654 -> [::1]:5672 - RabbitMqClient-EasyNetQ.dll):
{handshake_error,starting,0,
    {error,undef,'connection.start_ok',
        [{rabbitmq_auth_backend_uaa,user_login_authentication,
             [<<"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJRUlU3b2MwWk5mX1RDUkJKTEMzalcwU0xIdDJ5RWlhN3VJempNd3k3NU00In0.eyJqdGkiOiI2MWQ5Y2Y0My0yZGU0LTQwNDItODIzOS1hMGIzYWE3YjAzYmIiLCJleHAiOjE1MzY4Njc1NDAsIm5iZiI6MCwiaWF0IjoxNTA1MzMxNTQwLCJpc3MiOiJodHRwOi8vZGV2LnBhcGkuY29ycC5zc3YuY29tOjgwODAvYXV0aC9yZWFsbXMvUGxhdGZvcm1BUEkiLCJhdWQiOiJyYWJiaXRtcS1hZG1pbiIsInN1YiI6ImU1MmN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NGVH5BvnGNs8_s875SjQNz_tvHdRw3I_xkpx5M7vqA8hjoHumHkR5HMSBzA0TxUhKSzG0Uo1PqxG4NJQTEVhSrfWJmyOSt0_OmUKpIg">>,
              [{password,<<"guest">>}]],
             []},
         {rabbit_access_control,try_authenticate,3,
             [{file,"src/rabbit_access_control.erl"},{line,88}]},
         {rabbit_access_control,'-check_user_login/2-fun-0-',4,
             [{file,"src/rabbit_access_control.erl"},{line,74}]},
         {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
         {rabbit_reader,auth_phase,2,
             [{file,"src/rabbit_reader.erl"},{line,1339}]},
         {rabbit_reader,handle_method0,3,
             [{file,"src/rabbit_reader.erl"},{line,1149}]},
         {rabbit_reader,handle_input,3,
             [{file,"src/rabbit_reader.erl"},{line,1064}]},
         {rabbit_reader,recvloop,4,
             [{file,"src/rabbit_reader.erl"},{line,472}]}]}}


On Friday, 15 September 2017 11:24:14 UTC-4, Michael Klishin wrote:
Can you please post the entire error? It doesn't say what function was "undefined" (does not exist).

To upgrade Erlang you need to download an installer for the new version, stop RabbitMQ, install Erlang/OTP,
then start RabbitMQ again.
On Fri, Sep 15, 2017 at 9:13 AM, Justin Teaw <justi...@gmail.com> wrote:
I'm using 3.6.12.  I installed a plugin and found an error: error,undef,'connection.start_ok', 
Searched and found that it could be due to the erlang version.  So I'm installed an older version of erlang but in the logs, rabbit seems to be still using the latest version.


Thanks!

--
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.

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

Justin Teaw

unread,
Sep 15, 2017, 11:32:40 AM9/15/17
to rabbitmq-users
Regarding erlang downgrade, I already tried what you said with no luck, log still mentions it is using erlang 20.  I've also set the environment variable erlang_home to point to the downgraded version, with no luck.

Michael Klishin

unread,
Sep 15, 2017, 11:35:28 AM9/15/17
to rabbitm...@googlegroups.com
I highly doubt upgrading Erlang will change anything.

The plugin you are trying to use likely wasn't tested against a 3.6.12 release, at
least in the last 6 months.

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.

Justin Teaw

unread,
Sep 15, 2017, 11:37:28 AM9/15/17
to rabbitm...@googlegroups.com
I'm trying to downgrade erlang to see if the plugin will work.  Do you know which erlang version the plugin was tested against?

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/XKg2uB6grkg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.

Michael Klishin

unread,
Sep 15, 2017, 12:29:35 PM9/15/17
to rabbitm...@googlegroups.com
As I mentioned before, the plugin was not tested AT ALL in the last ~ 6 months (it's not under development until
multiple teams can agree on how exactly it should work)
and was likely NOT tested against RabbitMQ 3.6.x. I warned about that
in the very first thread about auth-backend-uaa:

It was compiled on Erlang 19.3. I'd expect it to run just fine on OTP 20.

Justin Teaw

unread,
Sep 15, 2017, 12:36:14 PM9/15/17
to rabbitm...@googlegroups.com
That's fine, I just want to try and make it work.

Justin Teaw

unread,
Sep 15, 2017, 12:41:51 PM9/15/17
to rabbitm...@googlegroups.com
Do you know which version of rabbit it was tested against?

dfed...@pivotal.io

unread,
Sep 15, 2017, 12:46:36 PM9/15/17
to rabbitmq-users
The plugin was developed and tested against RabbitMQ 3.7 (currently the master branch) and should be built manually. 

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/XKg2uB6grkg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.

Justin Teaw

unread,
Sep 15, 2017, 12:53:53 PM9/15/17
to rabbitm...@googlegroups.com
thanks.  ok so I'll likely have to wait till 3.7 is released to try it again.  Unless someone from the team wants to look at it with version 3.6.x.



To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

dfed...@pivotal.io

unread,
Sep 15, 2017, 12:58:34 PM9/15/17
to rabbitmq-users
We have no plans for implementing support for 3.6. As Michael mentioned, the plugin is experimental, not officially supported and it's not clear yet how it should work.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.

Michael Klishin

unread,
Sep 15, 2017, 1:04:05 PM9/15/17
to rabbitm...@googlegroups.com
To clarify: I don't think the plugin really relies on anything that's 3.6.x-specific but we are very certain 3.7.0
will ship before the plugin.

We will get it to the point where it can at least be experimented with against a 3.7.0 milestone. We are interested
in collecting feedback from outside of Pivotal and OAuth 2.0 support is in the roadmap for post-3.7.0.

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.

Justin Teaw

unread,
Sep 15, 2017, 1:13:54 PM9/15/17
to rabbitm...@googlegroups.com
I'll try to test it out with the latest release 20.  https://github.com/rabbitmq/rabbitmq-server/tree/v3.7.0-beta.20
As I mentioned, erlang and rabbit is new to me so it might take a while for me to build it.



To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.

Justin Teaw

unread,
Sep 15, 2017, 3:11:52 PM9/15/17
to rabbitmq-users
I'd be happy to help test and give feedback.  I just tried with milestone 20 and problem is still there.  No logs generated. Nothing in crash.log.
I noticed that the config file is now advanced.config.

Justin Teaw

unread,
Sep 15, 2017, 3:39:01 PM9/15/17
to rabbitm...@googlegroups.com
Learned that I have to enable lager.  Looks like the same undefined error.  Here's the error:

{handshake_error,starting,0,{error,undef,'connection.start_ok',[{rabbitmq_auth_backend_uaa,user_login_authentication,[<<"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJRUlU3b2MwW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OiJzZXJ2aWNlLWFjY291bnQtcmFiYml0bXEtYWRtaW5AcGxhY2Vob2xkZXIub3JnIn0.PsJzvVCb32skUo9Hvv5aSP5OoeiWspIGYsWUbfUp_wQxTeHExRbc3hcEKAJKBanOIS3HslJRRAUVAi9hRaXOYiiw4Ty2z9pZhi1HZUpwoEZghXG_Ai83XuErIUV8oDwLH9IbFD35kIdFTO9gbiuF1Jfs8WrS7fZblLnaIol1ySK3IKmTQdsOWc-zlngU1DRe_qnQNlaeHHaxevyDv94-SQTnuDHNaYjiuIsNPARx9LBF4sBNGVH5BvnGNs8_s875SjQNz_tvHdRw3I_xkpx5M7vqA8hjoHumHkR5HMSBzA0TxUhKSzG0Uo1PqxG4NJQTEVhSrfWJmyOSt0_OmUKpIg">>,[{password,<<"guest">>}]],[]},{rabbit_access_control,try_authenticate,3,[{file,"src/rabbit_access_control.erl"},{line,88}]},{rabbit_access_control,'-check_user_login/2-fun-0-',4,[{file,"src/rabbit_access_control.erl"},{line,74}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{rabbit_reader,auth_phase,2,[{file,"src/rabbit_reader.erl"},{line,1310}]},{rabbit_reader,handle_method0,3,[{file,"src/rabbit_reader.erl"},{line,1089}]},{rabbit_reader,handle_input,3,[{file,"src/rabbit_reader.erl"},{line,1004}]},{rabbit_reader,recvloop,4,[{file,"src/rabbit_reader.erl"},{line,461}]}]}}

To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages