RabbitMQ conection closed
От: dsalodki Беларусь http://dsalodki.wix.com/resume
Дата: 21.05.23 10:13
Оценка:
RabbitMQ.Client.Exceptions.OperationInterruptedException: 'The AMQP operation was interrupted: AMQP close-reason, initiated by Library, code=541, text='Unexpected Exception', classId=0, methodId=0, cause=System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.BufferedStream.ReadByteSlow()
at RabbitMQ.Client.Impl.InboundFrame.ReadFrom(Stream reader, Byte[] frameHeaderBuffer, ArrayPool`1 pool, UInt32 maxMessageSize)
at RabbitMQ.Client.Impl.SocketFrameHandler.ReadFrame()
at RabbitMQ.Client.Framing.Impl.Connection.MainLoopIteration()
at RabbitMQ.Client.Framing.Impl.Connection.MainLoop()'


    public class RabbitMqListener : BackgroundService
    {
        private IConnection _connection;
        private IModel _channel;

        public RabbitMqListener()
        {
            var factory = new ConnectionFactory() { HostName = "localhost", /*Port= 15672,*/ /*AutomaticRecoveryEnabled = true, UserName = "guest", Password="guest"*/ };
            _connection = factory.CreateConnection();
            _channel = _connection.CreateModel();

на последней строке исключение, помогшите разобраться
я совсем новичёк — установил плагин для веб на http://localhost:15672/ и он работает
что ещё нужно?
Re: RabbitMQ conection closed
От: BlackEric http://black-eric.lj.ru
Дата: 21.05.23 10:28
Оценка:
Здравствуйте, dsalodki, Вы писали:

В логах самого Rabbita ничего нет?
https://github.com/BlackEric001
Re[2]: RabbitMQ conection closed
От: dsalodki Беларусь http://dsalodki.wix.com/resume
Дата: 21.05.23 10:34
Оценка:
2023-05-21 13:33:58.699000+03:00 [info] <0.2279.0> accepting AMQP connection <0.2279.0> ([::1]:61112 -> [::1]:5672)
2023-05-21 13:33:58.716000+03:00 [info] <0.2279.0> connection <0.2279.0> ([::1]:61112 -> [::1]:5672): user 'guest' authenticated and granted access to vhost '/'
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> crasher:
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> initial call: rabbit_reader:init/3
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> pid: <0.2279.0>
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> registered_name: []
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> exception exit: {unexpected_message,{'EXIT',#Port<0.1538>,einval}}
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> in function rabbit_reader:handle_other/2 (rabbit_reader.erl, line 644)
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> in call from rabbit_reader:mainloop/4 (rabbit_reader.erl, line 535)
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> in call from rabbit_reader:run/1 (rabbit_reader.erl, line 457)
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> in call from rabbit_reader:start_connection/5 (rabbit_reader.erl, line 356)
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> ancestors: [<0.2277.0>,<0.609.0>,<0.608.0>,<0.607.0>,<0.605.0>,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> <0.604.0>,rabbit_sup,<0.233.0>]
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> message_queue_len: 0
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> messages: []
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> links: [<0.2277.0>]
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> dictionary: [{{ch_pid,<0.2289.0>},{1,#Ref<0.3552024833.941359105.14507>}},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {client_properties,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> [{<<"product">>,longstr,<<"RabbitMQ">>},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"version">>,longstr,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> <<"6.5.0+4c91cae8ae5eb0194e02a83f1b0cedfe29ad8312">>},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"platform">>,longstr,<<".NET">>},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"copyright">>,longstr,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> <<"Copyright (c) 2007-2020 VMware, Inc.">>},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"information">>,longstr,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> <<"Licensed under the MPL. See https://www.rabbitmq.com/">>},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"capabilities">>,table,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> [{<<"publisher_confirms">>,bool,true},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"exchange_exchange_bindings">>,bool,true},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"basic.nack">>,bool,true},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"consumer_cancel_notify">>,bool,true},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"connection.blocked">>,bool,true},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"authentication_failure_close">>,bool,true}]},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<<"connection_name">>,void,undefined}]},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {process_name,
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {rabbit_reader,<<"[::1]:61112 -> [::1]:5672">>}},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {{channel,1},
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> {<0.2289.0>,{method,rabbit_framing_amqp_0_9_1}}}]
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> trap_exit: true
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> status: running
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> heap_size: 987
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> stack_size: 28
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> reductions: 9533
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0> neighbours:
2023-05-21 13:33:59.132000+03:00 [error] <0.2279.0>
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> supervisor: {<0.2277.0>,rabbit_connection_sup}
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> errorContext: child_terminated
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> reason: {unexpected_message,{'EXIT',#Port<0.1538>,einval}}
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> offender: [{pid,<0.2279.0>},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {id,reader},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {mfargs,{rabbit_reader,start_link,
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> [<0.2278.0>,
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {acceptor,{0,0,0,0,0,0,0,0},5672}]}},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {restart_type,intrinsic},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {shutdown,300000},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {child_type,worker}]
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> supervisor: {<0.2277.0>,rabbit_connection_sup}
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> errorContext: shutdown
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> reason: reached_max_restart_intensity
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> offender: [{pid,<0.2279.0>},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {id,reader},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {mfargs,{rabbit_reader,start_link,
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> [<0.2278.0>,
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {acceptor,{0,0,0,0,0,0,0,0},5672}]}},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {restart_type,intrinsic},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {shutdown,300000},
2023-05-21 13:33:59.134000+03:00 [error] <0.2277.0> {child_type,worker}]
Re: RabbitMQ conection closed
От: dsalodki Беларусь http://dsalodki.wix.com/resume
Дата: 21.05.23 11:21
Оценка:
Maximum supported Erlang/OTP
25.3.x

установил более новую (26)
Re[2]: RabbitMQ conection closed
От: BlackEric http://black-eric.lj.ru
Дата: 22.05.23 07:03
Оценка:
Здравствуйте, dsalodki, Вы писали:

D>Maximum supported Erlang/OTP

D>25.3.x

D>установил более новую (26)


Erlang оказался новее чем поддерживает RabbitMQ в итоге?
https://github.com/BlackEric001
Re[3]: RabbitMQ conection closed
От: dsalodki Беларусь http://dsalodki.wix.com/resume
Дата: 22.05.23 09:39
Оценка:
BE>Erlang оказался новее чем поддерживает RabbitMQ в итоге?

Да, именно
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.