-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erlang 18.1 breaks RabbitMQ logging #324
Comments
18.1 has changed the format of some error messages sent by the emulator, this is most likely what happens here. |
This user had the same problem way before we released 3.5.5 so I'd guess 18.1 is the culprit here: http://stackoverflow.com/questions/32751556/startup-error-writing-to-to-var-log-rabbitmq-rabbitrab04-log |
Yeah should point out that it was not RabbitMQ per se.. 18.1 was the clear change in my testing. |
These changes to the error logger in erlang introduced a a new So instead of the tuple -record(st,
{fd,
filename,
prev_handler}). Which breaks when RabbitMQ tries to call event handlers: erlang/otp@003091a#diff-d9a19ba08f5d2b60fadfc3aa1566b324R108 and functions that use the server state. |
@michaelklishin @gmr I've just pushed branch |
This file https://github.com/erlang/otp/blob/maint/lib/sasl/src/sasl_report_file_h.erl was not changed on 18.1 but we have to monitor it just in case, since if they decide to perform similar changes, we will have the same problem. |
This change here also breaks log rotation: erlang/otp@ad7bb40#diff-d9a19ba08f5d2b60fadfc3aa1566b324L97 Before terminate was returning an empty list |
When trying to downgrade erlang-nox, it keeps bringing all the erlang 1:18.1 dependencies. Any idea how to downgrade the deps as well? |
@moshezvi perhaps as on the Erlang mailing list/irc channel |
I'd extract a function that returns OTP version as |
Fixed in #334. |
I tried to install rabbitmq on CentOS 7 and I'm still seeing many errors in the startup_log: Error in log handlerEvent: {info_report,<0.29.0>, I tried various combination of erlang package and rabbitmq packages, such as
The error occurred in each combination. Exactly in which combination this error is gone? Thanks. |
Please post questions to rabbitmq-users or Stack Overflow. RabbitMQ uses GitHub issues for specific actionable items engineers can work on, not questions. Thank you. |
Only RabbitMQ 3.5.6+ can run on Erlang 18.x. Otherwise Erlang version requirements are documented. |
When upgrading to 3.5.5 I also upgraded erlang to 0:18.1 installed from esl. Downgrading from 0:18.1 to 0:17.5.3 resolved the issue.
All attempts to log end up in
startup_log
getting flooded with exceptions trying to log:The text was updated successfully, but these errors were encountered: