Kibana not working in Dev mode in Windows 10

Hello,

I want to start kibana 6.1 in dev mode but getting error of missing commons.bundle.js (404) , commons.style.css(404) and kibana.bundle.js files.

Steps to reproduce:

  1. Clone 6.1 branch from github
  2. Run command npm install
  3. Run command npm run elasticsearch
  4. Run command npm start

The server started(took lots of time by the way) but when I try access

http://localhost:5603/kibana/app/kibana
It says "{"statusCode":404,"error":"Not Found","message":"Not Found"}"

http://localhost:5603/app/kibana

It says "kibana did not load properly. Check the server output for more information"

I have checked the server logs which is:
"{"type":"response","@timestamp":"2018-06-08T05:16:47Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/ui/favicons/favicon-16x16.png","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"image/webp,image/apng,image/,/;q=0.8","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":2,"contentLength":9},"message":"GET /kibana/ui/favicons/favicon-16x16.png 404 2ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:47Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/ui/favicons/favicon.ico","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"image/webp,image/apng,image/
,/;q=0.8","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":3,"contentLength":9},"message":"GET /kibana/ui/favicons/favicon.ico 404 3ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:49Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/bundles/commons.style.css?v=8467","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"text/css,/;q=0.1","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":3,"contentLength":9},"message":"GET /kibana/bundles/commons.style.css?v=8467 404 3ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:49Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/bundles/kibana.style.css?v=8467","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"text/css,/;q=0.1","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":3,"contentLength":9},"message":"GET /kibana/bundles/kibana.style.css?v=8467 404 3ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:52Z","tags":[],"pid":4508,"method":"get","statusCode":200,"req":{"url":"/app/kibana","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","cache-control":"max-age=0","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1"},"res":{"statusCode":200,"responseTime":89,"contentLength":9},"message":"GET /app/kibana 200 89ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:53Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/bundles/commons.style.css?v=8467","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"text/css,/;q=0.1","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":2,"contentLength":9},"message":"GET /kibana/bundles/commons.style.css?v=8467 404 2ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:53Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/bundles/kibana.style.css?v=8467","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"text/css,/;q=0.1","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":2,"contentLength":9},"message":"GET /kibana/bundles/kibana.style.css?v=8467 404 2ms - 9.0B"}
{"type":"response","@timestamp":"2018-06-08T05:16:53Z","tags":[],"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/bundles/commons.bundle.js?v=8467","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"/","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":1,"contentLength":9},"message":"GET /kibana/bundles/commons.bundle.js?v=8467 404 1ms - 9.0B"}

"

Could you please why is that?

Regards,
Hamdullah

Hi,

What does both consoles print when you run

npm run elasticsearch

and

npm start

?

"{"type":"response","@timestamp":"2018-06-08T05:16:47Z","tags":,"pid":4508,"method":"get","statusCode":404,"req":{"url":"/kibana/ui/favicons/favicon-16x16.png","method":"get","headers":{"host":"localhost:5603","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","accept":"image/webp,image/apng,image/,/;q=0.8","referer":"http://localhost:5603/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5603/app/kibana"},"res":{"statusCode":404,"responseTime":2,"contentLength":9},"message"

These are the logs; I have run npm start command again, it has been 8 hours since I had run the command; but logs still shows restarting server due to changes ....

Kibana web server runs on port 5601, try accessing: http://localhost:5601/

Also verify that your node -v is correct. It should be 6.14.0 for Kibana 6.1: https://github.com/elastic/kibana/blob/6.1/.node-version

Also, I see that you have x-pack file references in the second screenshot. x-pack is not part of open source Kibana in 6.1 (read more here). Did you forget to checkout the 6.1 branch after cloning the repo?

git clone https://github.com/[YOUR_USERNAME]/kibana.git kibana
git checkout 6.1

Hello, jen-huang

Actually I had check out 6.1 earlier but it was not working; then I tried checking out the master branch and use yarn instead of npm here the steps I performed:

  1. git clone https://github.com/[YOUR_USERNAME]/kibana.git kibana
    cd kibana

  2. yarn kbn bootstrap

  3. yarn es snapshot

  4. yarn start

But it is taking too long ( 16 hours so far) to start the kibana 7.1 server; the logs keeps showing restarting server due to changes

Regards,
Hamdullah

Alright I have checked out again 6.1 branch and started kibana server getting same error:

Can anybody help me fixing the issue the please?

I'm not sure why you are accessing port 5603? Kibana lives at http://localhost:5601.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.