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.

Let's Encrypt makes websocket fail

See original GitHub issue

Trying Let’s Encrypt for the first time with my mup deployment. Using the autogenerate clause in the SSL area of mup.js causes a websocket connection error after my app is deployed.

In Chrome’s console:

WebSocket connection to 'wss://....' failed: Error in connection establishment: net::ERR_NOT_IMPLEMENTED

I usually use uploaded certs and that works fine. I use abernix/meteord:base docker image. Here is the mup.js I’m using:

module.exports = {
	servers: {
			one: {
					host: '172.217.5.110',
					username: 'root',
					pem: '/Users/al/.ssh/id_rsa.do'
			}
	},

	meteor: {
			name: 'sub-domain',
			path: '/Users/al/cool-app',
			docker: {
					image: 'abernix/meteord:base'
			},
			servers: {
					one: {}
			},
			buildOptions: {
					serverOnly: true,
			},
			env: {
					ROOT_URL: "https://sub.domain.com",
					NODE_ENV: "production",
					MONGO_URL: "mongodb://...",
					MONGO_OPLOG_URL: "mongodb://..."
			},
			ssl: {
					port: 443,
					autogenerate: {
						email: 'admin@domain.com',
						domains: 'sub.domain.com'
					}
			},
			deployCheckWaitTime: 60
	},

};

Is this a known issue? Is there a workaround I can currently use?

I’m on the latest mup 1.2.8.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Sep 21, 2017

@trevordowdle a workaround for me was to simply not use let’s encrypt with mup. Instead put the instance behind CloudFlare (free) and use CloudFlare SSL which auto-renews and needs no management of certs.

CloudFlare now supports websockets very well out of the box, including the ones needed for Meteor, which is why this workaround is relatively new.

0reactions
zoderncommented, Mar 4, 2018

Since I am unable to reproduce it, I will close this issue. If anyone encounters this again, the issue can be reopened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error establishing SSL connection - Help
I have a website running on hostinger.com. They gave me a lifetime letsencrypt ssl. I host a server on my own internet that...
Read more >
WebSocket connection failure over Letsencrypt SSL certificate
Hey guys I was using python tornado websocket along with angular-websocket on the client on nginx server over letsencrypt certificate.
Read more >
Let's encrypt CA websocket fails on Android api < 20 #18032
I have a node server which uses Let's Encrypt CA. I try to connect to it using websockets. On iOS and newer Android...
Read more >
Websocket connection error on Nginx reverse proxy on ...
Websocket connection error on Nginx reverse proxy on Letsencrypt Docker on Unraid ... make sure that your dns has a cname set for...
Read more >
Python Websockets SSL with Let's Encrypt - xprilion's blog
After generating the files correctly, you need to make them accessible to the current user who runs the Python WebSocket script. In the...
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