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.

MJML compiler in TCP mode failing in CI on bitbucket

See original GitHub issue

I’m having some issues getting our CI builds to pass using MJML-django in TCP mode as the renderer. It was working and then quite consistently when we started rendering more emails they started failing:

RuntimeError: MJML compile error (via MJML TCP server): no working server
Number of servers: 1
Timeouts: 0

I’m a bit baffled by the error. It appears that there are working servers but the compilation step is failing immediately.

Bitbucket YAML looks as follows for docker config:

image: python:3.6-jessie

definitions:
  services:
    mysql:
      image: mysql:5.7
      environment:
        MYSQL_DATABASE: pipelines
        MYSQL_ROOT_PASSWORD: *********
    redis:
      image: redis
    mjml:
      image: liminspace/mjml-tcpserver:0.10.2
      environment:
        HOST: "0.0.0.0"
        PORT: "28102"
      expose:
          - "28102"
      ports:
          - "28102:28102"

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bramskicommented, Feb 24, 2021

Had a chance to investigate this further. There seem to be some bugs in bitbucket’s docker work. I changed to port 28101 and then updated the definition for the MJML docker container to be much more plain:

    mjml:
      image: liminspace/mjml-tcpserver:0.10.2

That managed to make the ports work correctly. Not sure why “expose” and “ports” were causing this to fail so randomly.

0reactions
bramskicommented, Jan 1, 2021

Please leave it open I will be able to deal with this after holidays thanks.

On Fri., Jan. 1, 2021, 10:41 a.m. Igor Melnyk, notifications@github.com wrote:

provide all info to reproduce the issue locally and after that I’ll try to fix that. currently I don’t see any problem neither python library nor docker image. they are working on various projects quite stable and well (including gitlab-ci to run functional and unit tests)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/liminspace/django-mjml/issues/119#issuecomment-753363652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADG7FP5G5PCVR6DQLXNUITSXYJOTANCNFSM4USJKKBA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - MJML compiler in TCP mode failing in CI on bitbucket -
I'm having some issues getting our CI builds to pass using MJML-django in TCP mode as the renderer. It was working and then...
Read more >
Troubleshooting Bitbucket Pipelines - Atlassian Documentation
This page provides self-serve troubleshooting steps for Pipeline run failures and other common issues. Scenario 1: Builds were successful ...
Read more >
generate ssh key paitr Code Example - Code Grepper
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed ...
Read more >
Free Developer Stuff
List of free stuff for developer by developer to use. This is a collective list of useful services for developer you can use...
Read more >
nodejs2use - NPM Package Overview - Socket.dev
ThinkJS - Framework with ES2015+ support, WebSockets, REST API. ActionHero - Framework for making reusable & scalable APIs for TCP sockets, ...
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