Home > Cannot Connect > Rails Wkhtmltopdf Cannot Connect To X Server

Rails Wkhtmltopdf Cannot Connect To X Server

Contents

If you get the error "Cannot connect to X server" then continue to number 7. Now I just have to figure out why I'm getting an error when using PDFKIT.... ie. Such was the case for me on getting wkthmltopdf working on my Ubuntu Server 10.04 server from my Mac Leopard dev environment. http://rss4medics.com/cannot-connect/qt-cannot-connect-to-x-server.php

I actually figured out what was going on but I will definitely be looking at your advice when it comes to deploying to ubuntu. What OS are you trying to install on? This worked for me --- just make sure it is in your path. thanks for your help Report post Edit Delete Reply with quote Re: Re: Re: Re: wkhtmltopdf and PDFkit David Kahn (Guest) on 2010-11-30 19:34 On Tue, Nov 30, 2010 at 12:13 more info here

Wkhtmltopdf Cannot Connect To X Server Centos 7

Thank you for all your advise too! Lab colleague uses cracked software. Reload to refresh your session. To be honest I'm just trialling stuff at moment but strangely ran into problems getting things working on snow leopard.

Already have an account? Can negative numbers be called large? Command Error: wkhtmltopdf: cannot connect to X server ): app/controllers/contrats_controller.rb:15:in `block (2 levels) in show' app/controllers/contrats_controller.rb:11:in `show' I tried to follow this answer : wkhtmltopdf: cannot connect to X server but -bash: /usr/bin/wkhtmltopdf: No Such File Or Directory David Report post Edit Delete Reply with quote Re: Re: wkhtmltopdf and PDFkit Conor Nugent (conornugent) on 2010-10-05 23:01 Yeah, I'm really looking forward to playing around with it and thanks

How to capture disk usage percentage of a partition as an integer? Wkhtmltopdf: Cannot Connect To X Server :109 So, to conclude, if you install and use a version that uses the patched libraries it should work on a linux server without the xvfb server, as I can confirm. The problem is, that the standard installation of wkhtmltopdf, requires an xserver. Reload to refresh your session.

I have been using the static (stand-alone) version of the program and it works great! Wkhtmltopdf Static Looking at the installation instructions page we find this snippet of joy labelled ‘Or….' under Linux (Ubuntu): # first, installing dependencies sudo aptitude install openssl build-essential xorg libssl-dev # for 64bits Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Not the answer you're looking for?

Wkhtmltopdf: Cannot Connect To X Server :109

Performance difference in between Windows and Linux using intel compiler: looking at the assembly Why were pre-election polls and forecast models so wrong about Donald Trump? her latest blog Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 35 Star 2,278 Fork 317 pdfkit/pdfkit Code Issues 17 Pull requests 12 Projects Wkhtmltopdf Cannot Connect To X Server Centos 7 I hope it might help http://asciicasts.com/episodes/220-pdfkit Report post Edit Delete Reply with quote Re: Re: Re: wkhtmltopdf and PDFkit David Kahn (Guest) on 2010-10-05 23:08 Yeah, that does work, but if Wkhtmltopdf: Cannot Connect To X Server Php Result!

brendon closed this Sep 29, 2011 wanchic commented Oct 12, 2011 I confirm this problem too (Ubuntu 11.04). news I've migrated from apache/passenger to nginix/unicorn, with Ubuntu 12.04. Any thoughts you have would be greatly appreciated. So we get the latest and greatest. –Bijan Jan 9 '15 at 22:33 I had to run apt-get install -f after installing the package to get the dependencies. Wkhtmltopdf Headless

I ran "wkhtmltopdf -H www.google.com google.pdf" and got a blank document but it had the header. I ended up finding that there is a package for wkhtmltopdf for Ubuntu: sudo apt-get install wkthmltopdf This package did its work and it installed. Can floyd like bridge really make guitar out of tune when not blocked but not used Straight line equation more hot questions question feed default about us tour help blog chat have a peek at these guys I'm still having an error issue inside Rails, but I think that has something to do with the configuration.

Wat!? Wkhtmltopdf Docker It was this resource which led me to look at wkhtmltopdf: [http://prawn.heroku.com/](http://prawn.heroku.com/) Once I began playing with wkhtmltopdf I found that there were two Ruby/Rails gems/libraries available to help with this: Example for Ubuntu 14.04: $ cd /tmp/ $ wget -q http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb $ dpkg -x wkhtmltox-0.12.2.1_linux-trusty-amd64.deb foo $ echo '

hi

' | ./foo/usr/local/bin/wkhtmltopdf - /tmp/hi.pdf Loading pages (1/6) Counting pages (2/6) Resolving links

Have either of you had to install the 64 bit version?

Show that the square matrix A is invertible Lab colleague uses cracked software. Mimsy were the Borogoves - why is "mimsy" an adjective? What I recommend is installing the static binary. Ubuntu Install Wkhtmltopdf Ive installed via the steps above and have installed via sudo yum, both success.

Share Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. It seemed too easy. end Bingo! check my blog There should be a line at the end saying Compiled against wkhtmltopdf patched qt.

Can a text in Latin be understood by an educated Italian who never had any formal teaching of that language? However, I noticed that user: snasir suggested installing openssl build-essential xorg libssl-dev If you are using rvm, you'll probably already have openssl, build-essential, libssl-dev installed in order to compile ruby. How can I take a powerful plot item away from players without frustrating them? So go on to #7 –dwaz May 1 '13 at 18:53 thanks, renumbered..

Looking back at my past fix notes, everything still works. it should go without saying... if I then click on a link in the PDF, it generates another pdf file of the next page, etc. To digress for a moment, this is the site for wkthmltopdf: [ http://code.google.com/p/wkhtmltopdf/](http://code...) The author, Jakob Truelsen ([ http://www.daimi.au.dk/~jakobt/#about](http://www....)) was very helpful and responsive when I emailed him directly about a

Should I report it? After installation I can find the version like this: wkhtmltopdf --version output: Name: wkhtmltopdf 0.9.9 License: Copyright (C) 2008,2009 Wkhtmltopdf Authors. I'll continue to see if everything else functions as normal. Sign up for free to join this conversation on GitHub. If anyone has any pointers they would be greatly appreciated Report post Edit Move Delete topic Reply with quote Re: wkhtmltopdf and PDFkit David Kahn (Guest) on 2010-10-05 21:10 Hi Conor

I'm stumped. You should download a precompiled version. HTTPS Learn more about clone URLs Download ZIP Code Revisions 1 wkhtmltopdf: cannot connect to X server fix Raw wkhtmltopdf: cannot connect to X server fix http://www.stormconsultancy.co.uk/blog/development/generating-pdfs-in-rails-with-pdfkit-and-deploying-to-a-server/ # first, installing dependencies I used the apt-get install wkhtmltopdf (just installed yesterday) and since I am running on a 64 bit system, I also needed apt-get install ia32-libs.

Let me know through the group if you get stuck and I can probably get you moving. share|improve this answer answered Nov 14 '14 at 12:28 Sfblaauw 557612 Nice workaround. wanchic commented May 11, 2012 Just an update for all. As can by typical with components, moving them to production you hope will be straight forward but is often not.