jsreport/jsreport:4.2.0 not working



  • The image "jsreport/jsreport:4.2.0" does not work on a debian docker container. Any request results in an "Error when processing render request 1 (because) could not find Chrome (ver. 117.0.5938.149)."
    What should I do to make it work?



  • The jsreport/jsreport:4.2.0 image uses the alpine base image and should work well.
    Please describe exactly what you do.



  • Thanks for your reply.
    I just noticed that it only happens on my Apple M1.
    I use it as part of a docker-compose:

      jsreport:
        image: jsreport/jsreport:4.2.0
        restart: always
        volumes:
          - type: bind
            source: ./jsreport.config.json
            target: /app/jsreport.config.json
            read_only: true
        expose:
          - $JSREPORT_PORT
        entrypoint: "jsreport"
        command: ["start", "--httpPort", $JSREPORT_PORT]
    

  • administrators

    i build the jsreport images from my Apple M1 machine, i don't see these problems.

    maybe start first by trying to run the image without compose, and just the container by itself.
    there are some notes about making the images to work on Apple M1, make sure to read them, in my case i can run both arm64, and amd64 based images. i have the Use Rosetta for x86/amd64 emulation on Apple Silicon option enabled on my Docker desktop, and with it i don't have issues so far.



  • After having investigated my jsreport.config.json it revelead that the option

        "extensions":  {
            "chrome-pdf": {
                "launchOptions": {
                    "args": [
                        "--no-sandbox", "--ignore-certificate-errors"
                    ]
                }
            }
        }
    

    in fact any "launchOptions" (even empty) lead to the described error.
    With version 3.12 this was not the case.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.