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

The exit status code '2' #206

Closed
alexseif opened this issue Feb 7, 2016 · 0 comments
Closed

The exit status code '2' #206

alexseif opened this issue Feb 7, 2016 · 0 comments

Comments

@alexseif
Copy link

alexseif commented Feb 7, 2016

I can't get this package working on my production environment.
I develop on ubuntu, and everything works right away, but in my production server (FreeBSD) I cannot seem to get it to work. I have tried the knpsnappy package and then this bundle, I removed my template and just added a simple hello world template, played around with different configurations. The problem is I don't even understand the error.

config

knp_snappy:
    pdf:
        enabled:    true
        binary:     "%kernel.root_dir%/../bin/wkhtmltopdf-i386"
        options:    
            lowquality: false
            encoding: UTF-8
    image:
        enabled:    false
        binary:     "%kernel.root_dir%/../bin/wkhtmltoimage-i386"
        options:    []
    temporary_folder: %kernel.cache_dir%/snappy

Error

[2016-02-07 01:07:05] snappy.DEBUG: Generate from HTML (<!DOCTYPE html> <html>     <head>         <meta charset="UTF-8" />         <title>MeVisa Invoice</ti) to file (/home/visallc/visallc.nichost.ru/src/MeVisa/ERPBundle/Controller/../../../../web/invoices/mevisa-invoice-3975-1.pdf). [] []
[2016-02-07 01:07:05] request.CRITICAL: Uncaught PHP Exception RuntimeException: "The exit status code '2' says something went wrong: stderr: "/home/visallc/visallc.nichost.ru/app/../bin/wkhtmltopdf-i386: 1: Syntax error: "(" unexpected " stdout: "" command: /home/visallc/visallc.nichost.ru/app/../bin/wkhtmltopdf-i386 --encoding 'UTF-8' '/home/visallc/visallc.nichost.ru/app/cache/prod/snappy/knp_snappy56b66e89618f48.25746598.html' '/home/visallc/visallc.nichost.ru/src/MeVisa/ERPBundle/Controller/../../../../web/invoices/mevisa-invoice-3975-1.pdf'." at /home/visallc/visallc.nichost.ru/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php line 336 {"exception":"[object] (RuntimeException(code: 0): The exit status code '2' says something went wrong:\nstderr: \"/home/visallc/visallc.nichost.ru/app/../bin/wkhtmltopdf-i386: 1: Syntax error: \"(\" unexpected\n\"\nstdout: \"\"\ncommand: /home/visallc/visallc.nichost.ru/app/../bin/wkhtmltopdf-i386 --encoding 'UTF-8' '/home/visallc/visallc.nichost.ru/app/cache/prod/snappy/knp_snappy56b66e89618f48.25746598.html' '/home/visallc/visallc.nichost.ru/src/MeVisa/ERPBundle/Controller/../../../../web/invoices/mevisa-invoice-3975-1.pdf'. at /home/visallc/visallc.nichost.ru/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php:336)"} []
``
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

1 participant