MJML compiler in TCP mode failing in CI on bitbucket
See original GitHub issueI’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:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
That managed to make the ports work correctly. Not sure why “expose” and “ports” were causing this to fail so randomly.
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: