{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/11701","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/11701/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/11701/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/11701/events","html_url":"https://github.com/elastic/kibana/issues/11701","id":227750261,"number":11701,"title":"Updated to 5.4.0 via elastic repo, systemd service broke","user":{"login":"ageis","id":1161532,"avatar_url":"https://avatars3.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"labels":[{"id":470241342,"url":"https://api.github.com/repos/elastic/kibana/labels/:Operations","name":":Operations","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-10T17:11:46Z","updated_at":"2017-05-10T18:19:58Z","closed_at":"2017-05-10T18:19:58Z","body":"Debian jessie/8. Been on version 5 for a while, consistently upgrading via the .debs.\r\n\r\n```\r\nroot@logs:/usr/share/logstash/bin# systemctl status kibana\r\n● kibana.service - Kibana\r\n   Loaded: error (Reason: Bad message)\r\n   Active: inactive (dead) since Tue 2017-05-09 12:11:45 PDT; 5h 23min ago\r\n Main PID: 3692 (code=killed, signal=TERM)\r\n\r\nMay 09 12:11:38 logs systemd[1]: [/etc/systemd/system/kibana.service:17] Missing '='.\r\nMay 09 12:11:45 logs systemd[1]: Stopping Kibana...\r\nMay 09 12:11:45 logs systemd[1]: Stopped Kibana.\r\nMay 09 12:11:45 logs systemd[1]: [/etc/systemd/system/kibana.service:17] Missing '='.\r\n```\r\nWhat /etc/systemd/system/kibana.service looks like:\r\n```\r\n[Unit]\r\nDescription=Kibana\r\n\r\n[Service]\r\nType=simple\r\nUser=kibana\r\nGroup=kibana\r\n# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.\r\n# Prefixing the path with '-' makes it try to load, but if the file doesn't\r\n# exist, it continues onward.\r\nEnvironmentFile=-/etc/default/kibana\r\nEnvironmentFile=-/etc/sysconfig/kibana\r\nExecStart=/usr/share/kibana/bin/kibana \"-c /etc/kibana/kibana.yml\"\r\nRestart=always\r\nWorkingDirectory=/\r\nEnvironment=NODE_ENV=production\r\n> # Workaround to prevent OOM errors with kibana/node. Should be fixed in v4.4.\r\n> # Details: https://github.com/elastic/kibana/issues/5170\r\nEnvironment=NODE_OPTIONS=\"--max-old-space-size=200\"\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n\r\nAfter removing the invalid comment characters (`>`), there's still a problem with `NODE_OPTIONS`:\r\n\r\n```\r\nMay 09 17:54:58 logs kibana[26665]: throw err;\r\nMay 09 17:54:58 logs kibana[26665]: ^\r\nMay 09 17:54:58 logs kibana[26665]: Error: Cannot find module '/\"--max-old-space-size=200\"'\r\nMay 09 17:54:58 logs kibana[26665]: at Function.Module._resolveFilename (module.js:469:15)\r\nMay 09 17:54:58 logs kibana[26665]: at Function.Module._load (module.js:417:25)\r\nMay 09 17:54:58 logs kibana[26665]: at Module.runMain (module.js:604:10)\r\nMay 09 17:54:58 logs kibana[26665]: at run (bootstrap_node.js:393:7)\r\nMay 09 17:54:58 logs kibana[26665]: at startup (bootstrap_node.js:150:9)\r\nMay 09 17:54:58 logs kibana[26665]: at bootstrap_node.js:508:3\r\n```\r\n\r\nI had to remove `Environment=NODE_OPTIONS` entirely to get the service working.\r\n\r\nThere was also some funkiness with not having permission to access `/var/run/kibana.pid`. I had to create the file and set its owner/group."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/300569953","html_url":"https://github.com/elastic/kibana/issues/11701#issuecomment-300569953","issue_url":"https://api.github.com/repos/elastic/kibana/issues/11701","id":300569953,"user":{"login":"tylersmalley","id":40265,"avatar_url":"https://avatars1.githubusercontent.com/u/40265?v=3","gravatar_id":"","url":"https://api.github.com/users/tylersmalley","html_url":"https://github.com/tylersmalley","followers_url":"https://api.github.com/users/tylersmalley/followers","following_url":"https://api.github.com/users/tylersmalley/following{/other_user}","gists_url":"https://api.github.com/users/tylersmalley/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersmalley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersmalley/subscriptions","organizations_url":"https://api.github.com/users/tylersmalley/orgs","repos_url":"https://api.github.com/users/tylersmalley/repos","events_url":"https://api.github.com/users/tylersmalley/events{/privacy}","received_events_url":"https://api.github.com/users/tylersmalley/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T18:19:58Z","updated_at":"2017-05-10T18:19:58Z","body":"Consider me perplexed. If this comes up for you or anyone else we can re-open this issue. Thanks for the report."}}
{"actor":{"display_login":"tylersmalley"}}