Miguel2
(Miguel)
July 22, 2023, 8:17pm
1
Hello I'm trying to learn the ELK stack from scratch, I'm currently having problems with kibana not getting active as shown below:
myuser@myuser-pc:~$ systemctl status kibana
× kibana.service - Kibana
Loaded: loaded (/lib/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-07-22 16:56:26 -03; 10min ago
Docs: https://www.elastic.co
Process: 1085 ExecStart=/usr/share/kibana/bin/kibana (code=exited, status=203/EXEC)
Main PID: 1085 (code=exited, status=203/EXEC)
CPU: 10ms
jul 22 16:56:26 myuser-pc systemd[1]: kibana.service: Scheduled restart job, restart counter is at 3.
jul 22 16:56:26 myuser-pc systemd[1]: Stopped Kibana.
jul 22 16:56:26 myuser-pc systemd[1]: kibana.service: Start request repeated too quickly.
jul 22 16:56:26 myuser-pc systemd[1]: kibana.service: Failed with result 'exit-code'.
jul 22 16:56:26 myuser-pc systemd[1]: Failed to start Kibana.
what to do? (sorry for any spelling mistakes, english is not my main language)
Hi.
Please check Kibana logs.
sudo tail -n 50 /var/log/kibana/kibana.log
And verify kibana.yml
etc/kibana/kibana.yml
Check if the user running Kibana has the appropriate permissions to access the Kibana installation directory and log files.
You can restart elasticsearch
systemctl status elasticsearch
Or
sudo systemctl start elasticsearch
You may restart kibana
sudo systemctl restart kibana
Miguel2
(Miguel)
July 22, 2023, 10:40pm
3
The warning appears in the terminal 'Nonexistent file or directory', and I went to look directly for the folder being accessed, in 'kibana/' it is empty, not having the file 'kibana.log'
I don't know where this is located sorry
Looking at the status of elasticsearch it is working correctly
1 Like
Can you please check if kibana is running?
systemctl status kibana
Or
sudo systemctl status kibana
And please check directory permissions by navigating
cd /usr/share/kibana
And write
ls -l
And please check kibana.yml configuration file here: etc/kibana/kibana.yml and specially server.host and server.port.
I do not know what else you can do.
1 Like
Miguel2
(Miguel)
July 22, 2023, 11:16pm
5
I had these results:
myuser@myuser-pc:~$ systemctl status kibana
× kibana.service - Kibana
Loaded: loaded (/lib/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-07-22 20:07:40 -03; 4min 28s ago
Docs: https://www.elastic.co
Process: 10191 ExecStart=/usr/share/kibana/bin/kibana (code=exited, status=203/EXEC)
Main PID: 10191 (code=exited, status=203/EXEC)
CPU: 10ms
jul 22 20:07:37 myuser-pc systemd[1]: Stopped Kibana.
jul 22 20:07:37 myuser-pc systemd[1]: Started Kibana.
jul 22 20:07:37 myuser-pc systemd[1]: kibana.service: Main process exited, code=exited, status=203/EXEC
jul 22 20:07:37 myuser-pc systemd[1]: kibana.service: Failed with result 'exit-code'.
jul 22 20:07:40 myuser-pc systemd[1]: kibana.service: Scheduled restart job, restart counter is at 3.
jul 22 20:07:40 myuser-pc systemd[1]: Stopped Kibana.
jul 22 20:07:40 myuser-pc systemd[1]: kibana.service: Start request repeated too quickly.
jul 22 20:07:40 myuser-pc systemd[1]: kibana.service: Failed with result 'exit-code'.
jul 22 20:07:40 myuser-pc systemd[1]: Failed to start Kibana.
myuser@myuser-pc:~$ cd /usr/share/kibana
myuser@myuser-pc:/usr/share/kibana$ ls -l
total 1396
drwxr-xr-x 2 root root 4096 jul 22 15:22 bin
-rw-r--r-- 1 root root 3860 jun 26 08:19 LICENSE.txt.dpkg-new
drwxr-xr-x 6 root root 4096 jul 22 15:22 node
drwxr-xr-x 693 root root 20480 jul 22 15:26 node_modules
-rw-r--r-- 1 root root 1370699 jun 26 08:19 NOTICE.txt
-rw-r--r-- 1 root root 738 jun 26 08:19 package.json.dpkg-new
drwxr-xr-x 5 root root 4096 jul 22 15:21 packages
drwxr-xr-x 2 root root 4096 jun 26 08:19 plugins
-rw-r--r-- 1 root root 3966 jun 26 08:19 README.txt
drwxr-xr-x 11 root root 4096 jul 22 15:22 src
drwxr-xr-x 4 root root 4096 jul 22 15:22 x-pack
It seems that Kibana is not starting.
Check please kibana.service
sudo journalctl -u kibana.service
1 Like
Miguel2
(Miguel)
July 22, 2023, 11:38pm
7
OK, some logs appeared like this:
myuser@myuser-pc:~$ sudo journalctl -u kibana.service
[sudo] senha para myuser:
jul 07 16:21:21 myuser-pc systemd[1]: Started Kibana.
jul 07 16:21:37 myuser-pc kibana[5910]: [2023-07-07T16:21:36.940-03:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
jul 07 16:22:30 myuser-pc kibana[5910]: [2023-07-07T16:22:30.104-03:00][INFO ][plugins-service] Plugin "cloudChat" is disabled.
jul 07 16:22:30 myuser-pc kibana[5910]: [2023-07-07T16:22:30.110-03:00][INFO ][plugins-service] Plugin "cloudExperiments" is disabled.
jul 07 16:22:30 myuser-pc kibana[5910]: [2023-07-07T16:22:30.110-03:00][INFO ][plugins-service] Plugin "cloudFullStory" is disabled.
jul 07 16:22:30 myuser-pc kibana[5910]: [2023-07-07T16:22:30.110-03:00][INFO ][plugins-service] Plugin "cloudGainsight" is disabled.
jul 07 16:22:30 myuser-pc kibana[5910]: [2023-07-07T16:22:30.199-03:00][INFO ][plugins-service] Plugin "profiling" is disabled.
jul 07 16:22:30 myuser-pc kibana[5910]: [2023-07-07T16:22:30.493-03:00][INFO ][http.server.Preboot] http server running at http://localhost:5601
jul 07 16:22:31 myuser-pc kibana[5910]: [2023-07-07T16:22:31.325-03:00][INFO ][plugins-system.preboot] Setting up [1] plugins: [interactiveSetup]
jul 07 16:22:31 myuser-pc kibana[5910]: [2023-07-07T16:22:31.337-03:00][INFO ][preboot] "interactiveSetup" plugin is holding setup: Validating El>
jul 07 16:22:31 myuser-pc kibana[5910]: [2023-07-07T16:22:31.548-03:00][INFO ][root] Holding setup until preboot stage is completed.
jul 07 16:22:33 myuser-pc kibana[5910]: i Kibana has not been configured.
jul 07 16:22:33 myuser-pc kibana[5910]: Go to http://localhost:5601/?code=937878 to get started.
-- Boot 3b93595f618343a881df3c6e0c2551a9 --
jul 07 17:04:26 myuser-pc systemd[1]: Started Kibana.
jul 07 17:05:28 myuser-pc kibana[963]: [2023-07-07T17:05:27.346-03:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
jul 07 17:10:33 myuser-pc kibana[963]: [2023-07-07T17:10:30.010-03:00][INFO ][plugins-service] Plugin "cloudChat" is disabled.
jul 07 17:10:33 myuser-pc kibana[963]: [2023-07-07T17:10:30.014-03:00][INFO ][plugins-service] Plugin "cloudExperiments" is disabled.
jul 07 17:10:33 myuser-pc kibana[963]: [2023-07-07T17:10:30.014-03:00][INFO ][plugins-service] Plugin "cloudFullStory" is disabled.
jul 07 17:10:33 myuser-pc kibana[963]: [2023-07-07T17:10:30.014-03:00][INFO ][plugins-service] Plugin "cloudGainsight" is disabled.
jul 07 17:10:33 myuser-pc kibana[963]: [2023-07-07T17:10:30.107-03:00][INFO ][plugins-service] Plugin "profiling" is disabled.
jul 07 17:10:33 myuser-pc kibana[963]: [2023-07-07T17:10:32.206-03:00][INFO ][http.server.Preboot] http server running at http://localhost:5601
jul 07 17:10:35 myuser-pc kibana[963]: [2023-07-07T17:10:35.006-03:00][INFO ][plugins-system.preboot] Setting up [1] plugins: [interactiveSetup]
jul 07 17:10:35 myuser-pc kibana[963]: [2023-07-07T17:10:35.399-03:00][INFO ][preboot] "interactiveSetup" plugin is holding setup: Validating Ela>
jul 07 17:10:36 myuser-pc kibana[963]: [2023-07-07T17:10:36.131-03:00][INFO ][root] Holding setup until preboot stage is completed.
jul 07 17:10:39 myuser-pc kibana[963]: i Kibana has not been configured.
jul 07 17:10:39 myuser-pc kibana[963]: Go to http://localhost:5601/?code=342516 to get started.
jul 07 17:40:46 myuser-pc systemd[1]: Stopping Kibana...
jul 07 17:40:47 myuser-pc kibana[963]: [2023-07-07T17:40:47.134-03:00][INFO ][plugins-system.preboot] Stopping all plugins.
jul 07 17:40:47 myuser-pc systemd[1]: kibana.service: Deactivated successfully.
jul 07 17:40:47 myuser-pc systemd[1]: Stopped Kibana.
jul 07 17:40:47 myuser-pc systemd[1]: kibana.service: Consumed 58.802s CPU time.
-- Boot e410888f16164694868b8a6ed2841170 --
jul 22 15:57:29 myuser-pc systemd[1]: Started Kibana.
jul 22 15:57:29 myuser-pc systemd[1]: kibana.service: Main process exited, code=exited, status=203/EXEC
jul 22 15:57:29 myuser-pc systemd[1]: kibana.service: Failed with result 'exit-code'.
jul 22 15:57:32 myuser-pc systemd[1]: kibana.service: Scheduled restart job, restart counter is at 1.
jul 22 15:57:32 myuser-pc systemd[1]: Stopped Kibana.
lines 1-38
It says "Kibana has not been configured".
Can you please check if kibana.yml is correctly configured?
Here is an example:
server.host: "localhost"
server.port: 5601
elasticsearch.url: "http://localhost:9200"
elasticsearch.index: "my_index"
1 Like
Miguel2
(Miguel)
July 23, 2023, 12:10am
9
From what it looks like
#server.port: 5601
#server.host: "localhost"
#elasticsearch.hosts: ["http://localhost:9200"]
They are correct, but the "elasticsearch.index:" I didn't find exactly
But why did you commented them with "#"?
Can you please uncomment, configure and restart kibana?
Miguel2
(Miguel)
July 26, 2023, 5:55pm
11
I wrote it exactly as it was in the file
Then I removed the comments and restarted kibana and the error continues, a thousand apologies for what is happening but I don't know how to configure kibana I'm quite confused.
Miguel2
(Miguel)
July 26, 2023, 7:29pm
12
Good news, I managed to get kibana active on the terminal screen. I ended up installing it again and tweaking a few things and it worked apparently. Thanks a lot for the help.
system
(system)
Closed
August 23, 2023, 7:29pm
13
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.