{"action":"opened","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/1645","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/1645/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/1645/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/1645/events","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/1645","id":342524179,"node_id":"MDU6SXNzdWUzNDI1MjQxNzk=","number":1645,"title":"Difference in configuration file detection between rabbitmq-server.bat and rabbitmq-service.bat","user":{"login":"lukebakken","id":514926,"node_id":"MDQ6VXNlcjUxNDkyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/514926?v=4","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T23:17:12Z","updated_at":"2018-07-18T23:17:12Z","closed_at":null,"author_association":"MEMBER","body":"To reproduce:\r\n\r\n* Install RabbitMQ server 3.7.X on Windows\r\n* Open the RabbitMQ command prompt and run:\r\n    ```\r\n    .\\rabbitmq-service.bat remove\r\n    ```\r\n* In `%AppData%\\RabbitMQ`, remove all configuration files *except* `advanced.config` like this:\r\n    ```\r\n    [\r\n        {rabbit, [{handshake_timeout, 12345}]}\r\n    ].\r\n    ```\r\n* Back in the RabbitMQ command prompt run this:\r\n    ```\r\n    .\\rabbitmq-service.bat install\r\n    .\\rabbitmq-service.bat start\r\n    ```\r\n* In the RabbitMQ log, notice that both `rabbitmq.conf` (which isn't there!) and `advanced.config` are listed as config files.\r\n* Back in the RabbitMQ command prompt run this:\r\n    ```\r\n    .\\rabbitmq-service.bat stop\r\n    .\\rabbitmq-server.bat\r\n    ```\r\n* In the RabbitMQ log, notice that **no** configuration files are used.\r\n\r\nThe reason is that [this code](https://github.com/rabbitmq/rabbitmq-server/blob/f1c720f7cabec25f571e5bb4e5c5c79683123f43/scripts/rabbitmq-service.bat#L220-L233) is slightly different than [this code](https://github.com/rabbitmq/rabbitmq-server/blob/f1c720f7cabec25f571e5bb4e5c5c79683123f43/scripts/rabbitmq-server.bat#L127-L140).\r\n\r\nWhen you install the Windows service, the presence of `rabbitmq.conf` is NOT checked and just assumed to be present, meaning that `advanced.config` will be added to the argument list for `erl.exe` when `erlsrv.exe` is started via the Windows Service Manager. When you run from the shell via `rabbitmq-server.bat`, `advanced.config` will only be used if the `.conf`-style file is also present. This caused quite a bit of confusion in a recent support case."}}
{"actor":{"display_login":"lukebakken"}}