私は wkhtmltoimage を使用していますが、Twitter のスクリーンショットを作成するように依頼するまではすべてうまくいっていましたが、この奇妙なエラーが発生しました。
Loading page (1/2)
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Rendering (2/2)
Done
使用したコマンドは次のとおりです。
xvfb-run wkhtmltoimage --format png --quality 100 http://twitter.com/jnbdz twitter2.png
Ubuntu 11、Apache2/PHP5、および Qt4 を使用しています。
Google または他の Web サイトのスクリーンショットを取得しようとしても、このエラーは発生しません。
それが機能するとき、私はこれだけを取得します: http://dl.dropbox.com/u/20599297/twitter3.png
このエラーの原因は何ですか?
アップデート
yahoo.com のスクリーンショットを作成しようとすると、別のエラーが発生します。
xvfb-run wkhtmltoimage --format png --quality 100 http://yahoo.com/ yahoo1.png
Loading page (1/2)
Error: Failed loading page http://yahoo.com/ (sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed loading page http://yahoo.com/ (sometimes it will work just to ignore this error with --load-error-handling ignore)