question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The mermaid companion container errors on startup

See original GitHub issue

The current behaviour

The mermaid companion seems to be broken and shows this error:

Unable to start the service Error: Failed to launch chrome

Output of docker-compose up:

blockdiag_1  | [2019-04-24 06:09:02 +0000] [1] [INFO] Starting gunicorn 19.9.0
blockdiag_1  | [2019-04-24 06:09:02 +0000] [1] [INFO] Listening at: http://0.0.0.0:8001 (1)
blockdiag_1  | [2019-04-24 06:09:02 +0000] [1] [INFO] Using worker: sync
blockdiag_1  | [2019-04-24 06:09:02 +0000] [7] [INFO] Booting worker with pid: 7
mermaid_1    | Unable to start the service Error: Failed to launch chrome!
mermaid_1    | 
mermaid_1    | 
mermaid_1    | TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
mermaid_1    | 
mermaid_1    |     at onClose (/snapshot/app/node_modules/puppeteer/lib/Launcher.js:342:14)
mermaid_1    |     at Interface.helper.addEventListener (/snapshot/app/node_modules/puppeteer/lib/Launcher.js:331:50)
mermaid_1    |     at Interface.emit (events.js:187:15)
mermaid_1    |     at Interface.close (readline.js:379:8)
mermaid_1    |     at Socket.onend (readline.js:157:10)
mermaid_1    |     at Socket.emit (events.js:187:15)
mermaid_1    |     at endReadableNT (_stream_readable.js:1081:12)
mermaid_1    |     at process._tickCallback (internal/process/next_tick.js:63:19)
kroki-stack_mermaid_1 exited with code 1
kroki_1      | Apr 24, 2019 6:09:03 AM io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer
kroki_1      | INFO: Succeeded in deploying verticle

docker-compose.yaml:

version: "3"
services:
  kroki:
    image: yuzutech/kroki:0.0.4
    environment:
      - KROKI_BLOCKDIAG_HOST=blockdiag
      - KROKI_MERMAID_HOST=mermaid
    ports:
      - "8000:8000"
  blockdiag:
    image: yuzutech/kroki-blockdiag:0.0.4
    ports:
      - "8001:8001"
  mermaid:
    image: yuzutech/kroki-mermaid:0.0.4
    ports:
      - "8002:8002"

Expected behaviour

The container should start and wait for HTTP requests.

Way to reproduce the error

  1. Put the docker-compose.yml in a directory
  2. Run docker-compose up in this directory

Thanks in advance for your help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Mogzttercommented, Apr 25, 2019

Awesome news 🎉 I’ll update the documentation accordingly, thanks for your valuable help and your prompt replies 😁

1reaction
groovytroncommented, Apr 25, 2019

Looks like it’s working on my machine now with yuzutech/kroki-mermaid:0.0.6. Thanks a lot for your help! 👍

Here is the result of this new image.

$ docker run yuzutech/kroki-mermaid:0.0.6
Unable to find image 'yuzutech/kroki-mermaid:0.0.6' locally
0.0.6: Pulling from yuzutech/kroki-mermaid
bdf0201b3a05: Pull complete 
5bceab48fbfa: Pull complete 
7fe54ae0fa03: Pull complete 
41071f686b76: Pull complete 
Digest: sha256:6af748c787c780365c5bbb738d5d8e7565f15d3abbf33606d1c9670286bbdd4b
Status: Downloaded newer image for yuzutech/kroki-mermaid:0.0.6
Chrome accepting connections on endpoint ws://127.0.0.1:43409/devtools/browser/37ed064b-cad9-4077-bb58-70726af29595
Read more comments on GitHub >

github_iconTop Results From Across the Web

Online:Isobel Veloise - The Unofficial Elder Scrolls Pages
Isobel Veloise (nicknamed Bella or Izzy) is a Breton noble and companion who can be found at Castle Navire. You will acquire the...
Read more >
jMG - River Thames Conditions - Environment Agency - GOV.UK
#error Fosas o trincheras geografia. ... freak pre workout, Mulia glass container, Simon koppel trommer, Honda civic 6th gen coupe, ... Partner psb270...
Read more >
Calm raises $27M to McConaughey you to sleep - TechCrunch
Meditation app unicorn Calm wants you to doze off to the dulcet tones of actor Matthew McConaughey's southern drawl or writer Stephen Fry's ......
Read more >
CREAK Data Explorer - UT Computer Science
An Attorney at law can still make mistakes and bad judgments that hurt the truth ... The famous American TV show ER starred...
Read more >
Emma Rose Cohen, co-founder of FinalStraw // The Startup ...
This week's featured founder is Emma Rose Cohen, CEO and co-founder of FinalStraw. FinalStraw is a collapsible and reusable straw for a sucking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found