Graylog2 / collector-sidecar

Manage log collectors through Graylog
https://www.graylog.org/
Other
262 stars 56 forks source link

APITOKEN is not saved during windows silent install #489

Open daisy613 opened 6 months ago

daisy613 commented 6 months ago

Problem description

Steps to reproduce the problem

  1. Run the following silent install commands:
    graylog_sidecar_installer_1.5.0-1.exe /S -SERVERURL=https://XXXXXXXX.graylog.cloud/api  -APITOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    "C:\Program Files\graylog\sidecar\graylog-sidecar.exe" -service install
    "C:\Program Files\graylog\sidecar\graylog-sidecar.exe" -service start
  2. The following install error shows in the log: time="2024-01-17T22:24:09-05:00" level=fatal msg="Failed service action: Failed to start Graylog Sidecar: The service did not respond to the start or control request in a timely fashion."
  3. The sidecar.yml entry for the api token is blank: server_api_token: ""
  4. When the correct API is added to the yml file, the service starts successfully.

Environment

daisy613 commented 6 months ago

I ended up having to script the install to just insert the API key into the YML file before starting the service.