# Can not run kibana by source code

**URL:** <https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397>\
**Category:** Kibana\
**Created:** [June 24, 2020, 7:51am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397 "2020-06-24T07:51:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [June 24, 2020, 7:51am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/1 "2020-06-24T07:51:23Z")

</div>

Hi,  
I try to run kibana by source code ,but it seem no work well

This my step:  
Step1  
Download the kibana source code  
download from [https://github.com/elastic/kibana/archive/v7.4.2.zip](https://github.com/elastic/kibana/archive/v7.4.2.zip)  
and unzip to d:\elk\kibana  
Step2  
Install nodejs( same version in .node-version file) and yarn  
Step3  
Run yarn kbn bootstrap  
command line "cd" to the d:\elk\kibana  
and run " yarn kbn bootstrap "  
It show "Bootstrapping completed" in the end

Step4  
Config the kibana.yml  
server.port: 5601  
server.host: "192.168.32.22"  
elasticsearch.hosts: ["[http://192.168.32.33:9200](http://192.168.32.33:9200)"]  
the elasticsearch work well ,version :7.4.2

Setp 5  
Run "yarn start"  
it no see any error info ,  
and in the end of the consol print,  
it show "Optimization success in xxx seconds"  
But no see any info like "http server running at [http://xxx:5601](http://xxx:5601)"

Setp5  
And use google Chrome and ie to visit "[http://192.168.32.22:5601](http://192.168.32.22:5601)" ,it no any response

if i miss something ?  
thanks for your response;

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [June 24, 2020, 8:21am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/2 "2020-06-24T08:21:21Z")

</div>

Hi

Could you provide some details about the environment you're trying to run Kibana?

Also you could try to start with `yarn start --verbose ` to get more details where it's stuck (there should be a message that the server is running)

Thx & Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [June 24, 2020, 9:35am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/3 "2020-06-24T09:35:12Z")

</div>

thank you for quickly response;  
my os :win7 64 ,  
I can run the kibana(7.4.2) well by the release bin(kibana-7.4.2-windows-x86\_64.zip)  
but run by source code fail,

I run " yarn start --verbose \>\> aaa.txt"  
i can see some "message":"Checking Elasticsearch version" in the aaa.txt  
but i cannot find any error info in this;

Unfortunately this forum cannot upload attachment(txt)

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [June 24, 2020, 3:48pm UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/4 "2020-06-24T15:48:33Z")

</div>

Please try to following

remove your kibana.yml or rename it to make in inactive.  
run `yarn es snapshot`, it's downloading and starting ES, then run `yarn start`. This should work.

Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [June 28, 2020, 3:36am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/5 "2020-06-28T03:36:57Z")

</div>

Thank for reply  
i run " yarn es snapshot" ,but show "ERROR Snapshots for 7.4.2/latest are not available"

Now i try to use version:7.8.0 source code (download from:[https://codeload.github.com/elastic/kibana/zip/v7.8.0](https://codeload.github.com/elastic/kibana/zip/v7.8.0))  
and run "yarn kbn bootstrap "  
but show

> "ERROR Error: Command failed with exit code 128: git log -n 1 --pretty=format:%H -- D:\ELK\Kibana5\_780\kibana  
> fatal: your current branch 'master' does not have any commits yet"

In fact , i only want to write some plugin and no want to commit anything to github right now;  
How to handle this ?ths.

---

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [June 28, 2020, 9:49am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/6 "2020-06-28T09:49:58Z")

</div>

I try V7.8.0 continue;

I run some git command "git init ","git add." "git commit -ms "xx" "  
next run "yarn kbn bootstrap" ,this step OK

next i try to run "yarn start " and visit by browser ，but no andy response,  
that result the same as v7.4.2;  
i try to rename kinanba.yml file ,and run "yarn es snapshot"  
but it seem can't connect to the "[https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.8.0/manifest-latest-verified.json](https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.8.0/manifest-latest-verified.json)"

> ERROR FetchError: request to [https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.8.0/manifest-latest-verified.json](https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.8.0/manifest-latest-verified.json) failed, reason: connect ETIMEDOUT 34.64.4.16:443

but very strange ,i use browser to visit the [https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.8.0/manifest-latest-verified.json](https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.8.0/manifest-latest-verified.json) , it can visit and can download the manifest-latest-verified.json

---

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [June 29, 2020, 3:44am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/7 "2020-06-29T03:44:27Z")

</div>

I think i know why;  
Because when run "yarn start" ,it still download something,like "chromium-312d84c-darwin.zip"  
and the download speed very very slow,maybe 30--60 minute  
so the kibana still no ready for visit ,so kibana have no any reponse when visit by browser;  
when download finished,the kibana can visit;

I think it's very unreasonable，maybe can print some info in the console when download something or download all file before run "yarn start"(maybe download when run "yarn kbn bootstrap")

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 27, 2020, 3:44am UTC](https://discuss.elastic.co/t/can-not-run-kibana-by-source-code/238397/8 "2020-07-27T03:44:48Z")

</div>

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