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.

proxy/ssl produces an invalid nginx config

See original GitHub issue

module.exports = { servers: { one: { host: ‘XXXXXXXXX’, username: ‘root’, password: ‘8001CONCHItta’, // pem: ‘./path/to/pem’ // or neither for authenticate from ssh-agent }, },

proxy: { domains: ‘XXXXXXXXXXX’, ssl: { // Enable let’s encrypt to create free certificates letsEncryptEmail: ‘XXXXX@XXXXX.com’, }, },

app: { name: ‘pharma’, path: ‘…/’,

servers: {
  one: {},
},

buildOptions: {
  serverOnly: true,
},

env: {
  ROOT_URL: 'XXXXXXXXXXX',
},

docker: {
  image: 'abernix/meteord:node-8.4.0-base',
  networks: [
    'pharma',
  ],
},

// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true,
deployCheckWaitTime: 60, // default is 60 (optional)

}, };

Hey I have meteor 1.6 project that used to work before update, mup 1.4.4, the node version on my client is v8.11.1. I’ve ofc replaced some sensitive data by XXXXXX. When I don’t have proxy server works. When I do have the mup-nginx-proxy keeps restarting if I docker logs it it logs 2018/04/30 01:45:45 [emerg] 25#25: unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/my_proxy.conf:2 nginx.1 | nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/my_proxy.conf:2 I don’t know how to log the conf file as I cannot docker exec on a restarting container nor on a stopped one.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
IDCOLLcommented, Feb 8, 2019

Redeploying after deleting some opt’s folders have fixed my issue. Much sorry to the time I made you lost, I still don’t get how this little file got “corrupted”. I’m clueless. Thanks a lot @zodern your support was really great and quick.

I have had this same issue yesterday. I am using the latest MUP and I will described what I did to make the problem occur and steps taken to solve it.

  1. My app was running Meteor 1.5xxx and using SSL and Proxy. Everything was fine.
  2. Updated my settings.json file to include some information for the first time.
  3. Did a mup setup and mup deploy,
  4. App could not be accessed through the browser, after using the “mup docker sp” function released the proxy was constantly restarting.
  5. Did a Meteor upgrade to 1.8xxx and ensured my docker image used was correct (didn`t solve the problem),
  6. Add a ; to the end of the nginx-default.conf as mentioned here. (didn`t solve the problem)
  7. Deleted the /opt/mup-nginx-proxy folder and “MyApp” folder on the server
  8. Did a Mup setup and deploy and the problem was solved.

Hope this helps somebody.

1reaction
ilan-schemoulcommented, May 13, 2018

Oh yeah and thank you @stefanve. Your solution was helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Nginx as reverse proxy with upstream SSL
I try to configure an Nginx server as a reverse proxy so the https requests it receives from clients are forwarded to the...
Read more >
ssl_error_rx_record_too_long - Stack Overflow
I check my nginx config on the reverse proxy and there is the ssl in ... error:1408F10B:SSL routines:ssl3_get_record:wrong version number ...
Read more >
Issue with SSL when using nginx reverse proxy - WordPress.org
I've configured both the nginx configuration file and the wp-config.php files to get it to ... but when I try to logon, it...
Read more >
1.20.2 - Nginx.org
Bugfix: connections with incorrect HTTP/2 preface were not logged. ... Change: now nginx detects missing SSL certificates during configuration testing when ...
Read more >
NGINX reverse proxy SSL letsencrypt - Bobcares
How to configure NGINX reverse proxy SSL letsencrypt? The certbot utility by the EFF can use DNS authentication to obtain, install, and renew ......
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