Skip to content
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

systemd reports warnings #47205

Closed
psaiz opened this issue Oct 3, 2019 · 3 comments
Closed

systemd reports warnings #47205

psaiz opened this issue Oct 3, 2019 · 3 comments
Labels
Team:Operations Team label for Operations Team

Comments

@psaiz
Copy link

psaiz commented Oct 3, 2019

Kibana version:
7.1.1-oss
Elasticsearch version:
7.1.1-oss
Server OS version:
Centos 7
Browser version:

Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):
yum
Describe the bug:
The file /etc/systemd/system/kibana.service contains two lines that generate warnings while checking the status of the service:

# cat /etc/systemd/system/kibana.service 
[Unit]
Description=Kibana
StartLimitIntervalSec=30
StartLimitBurst=3
...


# systemctl status kibana
● kibana.service
   Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-09-02 14:57:22 CEST; 1 months 0 days ago
 Main PID: 25399 (node)
   CGroup: /system.slice/kibana.service
           └─25399 /usr/share/kibana/bin/../node/bin/node --no-warnings --max-http-header-size=65536 /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml

Oct 02 10:50:24 xx : [/etc/systemd/system/kibana.service:3] Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'
Oct 02 10:50:24 xx]: [/etc/systemd/system/kibana.service:4] Unknown lvalue 'StartLimitBurst' in section 'Unit'
...

Steps to reproduce:

  1. Install kibana-7.1.1 rpm
  2. Start the service with systemd : systemctl start kibana
  3. Check the status of the service: systemctl status kibana

Expected behavior:
Not to have those warnings.

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@mistic mistic added the Team:Operations Team label for Operations Team label Oct 8, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@mistic
Copy link
Member

mistic commented Oct 8, 2019

@psaiz this is probably happening because those options are not available in your systemd version they were only introduced in systemd v230.

In think in your version the available options would be StartLimitInterval= and StartLimitBurst= under [Service] section not [Unit]. You can check that running man systemd.unit.

@jbudz any ideas here ? Maybe we can should add documentation stating our supported systemd version or ship our service with both parameters configured so it would use what work for a specific systemd version, though the warnings would still be displayed.

@tylersmalley
Copy link
Contributor

This was resolved in #47909 starting with 7.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

4 participants