Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on AWS Ubuntu 14.04 gets stuck when calling build #18

Closed
biri opened this issue Feb 28, 2017 · 3 comments
Closed

Running on AWS Ubuntu 14.04 gets stuck when calling build #18

biri opened this issue Feb 28, 2017 · 3 comments

Comments

@biri
Copy link

biri commented Feb 28, 2017

I am trying to run html5-to-pfd on my AWS Ubuntu 14.04 and when build is getting called it just gets stuck. I investigated the issue and found that there is a problem with the electron module in the nightmare module. Please refer to

segment-boneyard/nightmare#224

segment-boneyard/nightmare#534
http://stackoverflow.com/questions/34795037/nightmare-js-not-working-as-expected-on-ubuntu-linux-cloud-server

Apparently Electron requires an X display and since the server doesn't have a display it's a problem. There is a suggested solution to use Xvfb to provide a virtual one. Need to install xvfb, and run xvfb-run.
Any chance to implement it in the release or can you please suggest a way to use it with current release ?

Thanks.

@peterdemartini
Copy link
Owner

I think using xvfb is the right way. I would do something like this:

apt-get update && \
    apt-get install -y \
        xvfb \
        x11-xkb-utils \
        xfonts-100dpi \
        xfonts-75dpi \
        xfonts-scalable \
        xfonts-cyrillic \
        x11-apps \
        clang \
        libdbus-1-dev \
        libgtk2.0-dev \
        libnotify-dev \
        libgnome-keyring-dev \
        libgconf2-dev \
        libasound2-dev \
        libcap-dev \
        libcups2-dev \
        libxtst-dev \
        libxss1 \
        libnss3-dev \
        gcc-multilib \
        g++-multilib \
        xauth \
        git \
        sudo \
        --no-install-recommends
xvfb-run --server-args="-screen 9 1024x768x24" html5-to-pdf ...

@biri
Copy link
Author

biri commented Feb 28, 2017

I will try it, thanks

@XoneFobic
Copy link

So, we need to run this in a virtual-screen on production now?

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

No branches or pull requests

3 participants