# Phantom immediately exited with: 127

**URL:** <https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [September 2, 2016, 8:16am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641 "2016-09-02T08:16:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvogensen](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@pvogensen](https://discuss.elastic.co/u/pvogensen)\
**Post date:** [September 2, 2016, 8:16am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/1 "2016-09-02T08:16:31Z")

</div>

I've just finished installing Reporting and have tried several times to generate a report, however every time i try I receive the following text "Phantom immediately exited with: 127" and the report fails.

Any advice gratefully received.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 2, 2016, 8:27am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/2 "2016-09-02T08:27:22Z")

</div>

What version of things are you on?

---

<div class="post-metadata">

**Author:** ![pvogensen](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@pvogensen](https://discuss.elastic.co/u/pvogensen)\
**Post date:** [September 2, 2016, 8:34am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/3 "2016-09-02T08:34:00Z")

</div>

I just upgraded everything today in order to try reporting.

I am using the following:

Reporting - 2.4  
Elasticsearch - 2.4  
Logstash - 2.4  
Kibana - 4.6

Thanks

---

<div class="post-metadata">

**Author:** ![nellicus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nellicus/32/51566_2.png) [@nellicus](https://discuss.elastic.co/u/nellicus)\
**Post date:** [September 2, 2016, 8:37am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/4 "2016-09-02T08:37:43Z")

</div>

see here [Getting Started | Reporting | Elastic](https://www.elastic.co/guide/en/reporting/current/getting-started.html)

> Ubuntu users may need to install some additional dependencies. If report generation fails with the error "Phantom immediately exited with: 127" you’ll need to install libfontconfig and libfreetype6 via apt.

---

<div class="post-metadata">

**Author:** ![pvogensen](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@pvogensen](https://discuss.elastic.co/u/pvogensen)\
**Post date:** [September 2, 2016, 8:44am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/5 "2016-09-02T08:44:44Z")

</div>

I'm running on Redhat 7.2 but i will take look at the dependencies you mentioned.

---

<div class="post-metadata">

**Author:** ![pvogensen](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@pvogensen](https://discuss.elastic.co/u/pvogensen)\
**Post date:** [September 2, 2016, 8:53am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/6 "2016-09-02T08:53:32Z")

</div>

As nellicus commented - I have installed fontconfig on the redhat 7.2 server and everything is now working fine.

Thank you all for your assistance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 2, 2016, 8:56am UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/7 "2016-09-02T08:56:12Z")

</div>

Great!  
We'll get the docs updated as well 🙂

---

<div class="post-metadata">

**Author:** ![gearoid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gearoid/32/13572_2.png) [@gearoid](https://discuss.elastic.co/u/gearoid)\
**Post date:** [December 8, 2016, 4:59pm UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/8 "2016-12-08T16:59:54Z")

</div>

100% spot on, just ran the following:  
sudo apt install -y libfontconfig  
sudo apt install -y libfreetype6  
and reporting worked.  
Thanks

---

<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 6, 2017, 1:42pm UTC](https://discuss.elastic.co/t/phantom-immediately-exited-with-127/59641/9 "2017-07-06T13:42:47Z")

</div>


