Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Exit code 127 #13597

Closed
gustavohenke opened this issue Sep 21, 2015 · 4 comments
Closed

Exit code 127 #13597

gustavohenke opened this issue Sep 21, 2015 · 4 comments

Comments

@gustavohenke
Copy link

Hello,

I'm seeing the exit code 127 while running Phantom in GitLab CI environment. My project uses Karma to build (and most specifically, karma-phantomjs-launcher).

This is the log I have:

18 09 2015 17:51:35.447:INFO [launcher]: Starting browser PhantomJS
18 09 2015 17:51:35.447:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-76412877
18 09 2015 17:51:35.490:DEBUG [launcher]: /home/gitlab-runner/builds/b351a788/0/syoangular/eventowizard/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs /tmp/karma-76412877/capture.js
18 09 2015 17:51:35.498:DEBUG [launcher]: Process PhantomJS exited with code 127
18 09 2015 17:51:35.498:ERROR [launcher]: Cannot start PhantomJS

Server OS: Ubuntu 14.04.3

I just would like to know what this exit code means in Phantom, and how can I fix it.
Thank you in advance.

@gustavohenke
Copy link
Author

So, after reproducing the same environment in a docker container, I found that I was missing libfontconfig and libfreetype6.
After installing them via apt-get, Phantom is now running.

@islandlinux
Copy link

I had the same problem with Ubuntu 14.04 64 bit. Had to install the 32bit libraries:

sudo apt-get install libfontconfig:i386 libfreetype6:i386

Reference:

@eyalzoref
Copy link

Worked for me as well.

sudo apt-get install libfreetype6
sudo apt-get install libfontconfig

Cheers @gustavohenke

@deepak41
Copy link

Thanks. Worked for me also. I was missing libfontconfig.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants