[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Xvfb on Heroku
From:       Adam Hull <adam () goodeggs ! com>
Date:       2015-02-24 4:04:41
Message-ID: CAOXpZxZWW2jkry4_6keCTJS1AY+KM-StsmWoqGkU=opK_j4syg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'd like to run xvfb on Heroku's Ubuntu 4.04.1 x86_64 machines for
chromedriver powered webdriver automation, and I'm hitting the same issues
as this guy
<https://discussion.heroku.com/t/trying-to-run-xvfb-in-heroku-fails-with-buildpacks/788>.


From the past efforts he mentioned, and the latest buildpack-apt
<https://github.com/ddollar/heroku-buildpack-apt/blob/master/bin/compile>,
it looks like I have two options:


   1. Compile a self-contained xvfb binary a la
   https://github.com/kenshin23/xvfb-portable-binary that runs on Heroku's
   current OS and architecture, rebuild when they update.
   2. Install all dependencies from the apt package manager into someplace
   like ~/.apt, and run from there.

I'd prefer #2, but I'm stuck with `Xvfb :99 -ac` printing:

> [dix] Could not init font path element /usr/share/fonts/X11/misc, removing
> from list!
>
> [dix] Could not init font path element /usr/share/fonts/X11/cyrillic,
> removing from list!
>
> [dix] Could not init font path element
> /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
>
> [dix] Could not init font path element
> /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
>
> [dix] Could not init font path element /usr/share/fonts/X11/Type1,
> removing from list!
>
> [dix] Could not init font path element /usr/share/fonts/X11/100dpi,
> removing from list!
>
> [dix] Could not init font path element /usr/share/fonts/X11/75dpi,
> removing from list!
>
> sh: 1: /usr/bin/xkbcomp: not found
>
> sh: 1: /usr/bin/xkbcomp: not found
>
> XKB: Failed to compile keymap
>
> Keyboard initialization failed. This could be a missing or incorrect setup
> of xkeyboard-config.
>
> (EE)
>
> Fatal server error:
>
> (EE) Failed to activate core devices.(EE)
>
All the files it's looking for exist in the corresponding directories in
~/.apt (ie ~/.apt/usr/bin/xkbcomp), but I haven't figured out how to tell
Xvfb to look there.  Does xvfb consume something like xorg.conf?

Any tips appreciated,
Adam

[Attachment #5 (text/html)]

<div dir="ltr">I&#39;d like to run xvfb on Heroku&#39;s Ubuntu 4.04.1 x86_64  \
machines for chromedriver powered webdriver automation, and I&#39;m hitting the same \
issues as <a href="https://discussion.heroku.com/t/trying-to-run-xvfb-in-heroku-fails-with-buildpacks/788">this \
guy</a>.   <div><br></div><div>From the past efforts he mentioned, and the latest  <a \
href="https://github.com/ddollar/heroku-buildpack-apt/blob/master/bin/compile" \
target="_blank" style="font-size:12.8000001907349px">buildpack-apt</a>, it looks like \
I have two options:</div><div><span \
style="font-size:12.8000001907349px"><br></span></div><div><ol><li><span \
style="font-size:12.8000001907349px">Compile a self-contained xvfb binary a la  <a \
href="https://github.com/kenshin23/xvfb-portable-binary">https://github.com/kenshin23/xvfb-portable-binary</a> \
that runs on Heroku&#39;s current OS and  architecture, rebuild when they \
update.</span></li><li>Install all dependencies from the apt package manager into \
someplace like ~/.apt, and run from there.</li></ol><div>I&#39;d prefer #2, but \
I&#39;m stuck with  <span style="font-size:12.8000001907349px">`</span><span class="" \
style="font-size:12.8000001907349px">Xvfb</span><span \
style="font-size:12.8000001907349px">  </span><span \
style="font-size:12.8000001907349px">:99 -ac` printing:</span></div><blockquote \
class="gmail_quote" style="font-size:12.8000001907349px;margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p>[dix] \
Could not init font path element /usr/share/fonts/X11/misc, removing from \
list!</p><p>[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, \
removing from list!</p><p>[dix] Could not init font path element \
/usr/share/fonts/X11/100dpi/:unscaled, removing from list!</p><p>[dix] Could not init \
font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from \
list!</p><p>[dix] Could not init font path element /usr/share/fonts/X11/Type1, \
removing from list!</p><p>[dix] Could not init font path element \
/usr/share/fonts/X11/100dpi, removing from list!</p><p>[dix] Could not init font path \
element /usr/share/fonts/X11/75dpi, removing from list!</p><p>sh: 1: \
/usr/bin/xkbcomp: not found</p><p>sh: 1: /usr/bin/xkbcomp: not found</p><p>XKB: \
Failed to compile keymap</p><p>Keyboard initialization failed. This could be a \
missing or incorrect setup of xkeyboard-config.</p><p>(EE)  </p><p>Fatal server \
error:</p><p>(EE) Failed to activate core devices.(EE)  </p></blockquote><div>All the \
files it&#39;s looking for exist in the corresponding directories in ~/.apt (ie \
~/.apt<span style="font-size:12.8000001907349px">/usr/bin/xkbcomp), but I haven&#39;t \
figured out how to tell Xvfb to look there.   Does xvfb consume something like \
xorg.conf?</span></div><div><span \
style="font-size:12.8000001907349px"><br></span></div><div><span \
style="font-size:12.8000001907349px">Any tips  appreciated,</span></div><div><span \
style="font-size:12.8000001907349px">Adam</span></div><div><br></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic