Skip to content

Docker "Failed to launch chrome!" #20

@mlekorlz

Description

@mlekorlz

While running docker image, it's unable to get website screenshot.

changd-api  | https://google.com
changd-api  | Unable to get website screenshot: Error: Failed to launch chrome!
changd-api  | [57:57:0726/102936.931958:ERROR:browser_main_loop.cc(1485)] Unable to open X display.
changd-api  | TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
changd-api  | Unable to capture screenshot
changd-api  | Error: Image unable to be captured or differences detected.
changd-api  | Error: ENOENT: no such file or directory, unlink './screenshots/2/rmw9r_diff.png'
changd-api  |     at Object.unlinkSync (fs.js:1210:3)
changd-api  |     at Object.deleteFile (/app/db/file_handler.js:95:10)
changd-api  |     at executeVisualJob (/app/db/job_daemon.js:507:19)
changd-api  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
changd-api  |     at async /app/db/job_daemon.js:167:9 {
changd-api  |   errno: -2,
changd-api  |   syscall: 'unlink',
changd-api  |   code: 'ENOENT',
changd-api  |   path: './screenshots/2/rmw9r_diff.png'
changd-api  | }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions