Skip to content

Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found")

If it still fails after you've set "root_url" to the correct value in grafana.ini, you might want to check whether you can run phantomjs from the command line.

If you get "QXcbConnection: Could not connect to display / PhantomJS has crashed", then the explanation is here: Debian Bug #817277.

To fix it, I installed xvfb (apt-get install xvfb), and edited /usr/bin/phantomjs so that the last line now looks like this:
exec "/usr/bin/xvfb-run" --server-args="-screen 0 640x480x16" "/usr/lib/phantomjs/phantomjs" "$@"

  • Twitter
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found")
  • Mixx Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found")
  • Bloglines Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found")
  • Technorati Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found")
  • Fark this: Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found")
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at YahooMyWeb
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at Furl.net
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at reddit.com
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at blinklist.com
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at Spurl.net
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at NewsVine
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at Simpy.com
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") at blogmarks
  • Bookmark Grafana PNG export on headless Debian server (phantomjs / render fails with "404 page not found") with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options