I have a dockerfile that uses choco package manager to install rabbitmq 3.8.2 and I need to provide default user and password. So, I have set this up in rabbitmq.conf file in the new format as per the example mentioned on the github site.
I have put this file in a known location directly C:\ and specified the path with RABBITMQ_CONFIG_FILE environment variable.
Although the file is correctly found, the boot fails due failing of config file reading where I have the syntax error.
BOOT FAILED
===========
Config file generation failed:
19:03:30.170 [error] Syntax error in C:/Users/ContainerAdministrator/AppData/Roaming/RabbitMQ/rabbitmq.conf after line 1 column 1, parsing incomplete
In case the setting comes from a plugin, make sure that the plugin is enabled.
Alternatively remove the setting from the config.
{"init terminating in do_boot",generate_config_file}
init terminating in do_boot (generate_config_file)
PS: I have also tried this with an empty content rabbitmq.conf file but this still gives back the same syntax error. This is strange since there is nothing in the file.
[error] Unable to parse erlang terms from RABBITMQ_CONFIG_FILE file: C:\Users\ContainerAdministrator\AppData\Roaming\RabbitMQ\rabbitmq.config
Error: {1,erl_scan,{illegal,character}}
{"could not start kernel pid",application_controller,"{badarg,[{code_server,call,1,[{file,\"code_server.erl\"},{line,139}]},{code,load_mods,1,[{fi
le,\"code.erl\"},{line,546}]},{code,ensure_modules_loaded_1,1,[{file,\"code.erl\"},{line,342}]},{io_lib,test_modules_loaded,3,[{file,\"io_lib.erl\
"},{line,257}]},{io_lib,format,2,[{file,\"io_lib.erl\"},{line,186}]},{application_controller,init,2,[{file,\"application_controller.erl\"},{line,5
22}]}]}"}
could not start kernel pid (application_controller) ({badarg,[{code_server,call,1,[{file,"code_server.erl"},{line,139}]},{code,load_mods,1,[{file,
"code.erl"},{line,546}]},{code,ensure_modules_loaded_1
Thanks.