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.

Server seems to be down

See original GitHub issue

Running lt command is not responding nor giving any output

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:54
  • Comments:21

github_iconTop GitHub Comments

4reactions
anirudhmalikcommented, Jul 21, 2022

@chan-dev

Installing Nginx

apt install nginx

Delete the default server configuration

 rm /etc/nginx/sites-available/default
 rm /etc/nginx/sites-enabled/default

First configuration

 nano /etc/nginx/sites-available/myserverconfig
  • Add the following server config
 server {
  listen 80;
  server_name chan.mylocaltunnel.com;
  location / {
    proxy_pass http://<remote_server>:80;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    }
 }

server {
  listen 80;
  server_name chan2.mylocaltunnel.com;
  location / {
    proxy_pass http://<remote_server>:81;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    }
 }
server {
  listen 80;
  server_name chan3.mylocaltunnel.com;
  location / {
    proxy_pass http://<remote_server>:82;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    }
 }
  • server_name chan.mylocaltunnel.com;
  • proxy_pass http://<remote_server_ip>:80; // 80, 81, 82 is in this case is -R 80,81,82… ssh -R 80:localhost:3000 user@<remote_server_ip>
ln -s /etc/nginx/sites-available/myserverconfig /etc/nginx/sites-enabled/myserverconfig

Start Nginx
systemctl start nginx

SSL Certification

apt install certbot python3-certbot-nginx

Make sure that Nginx Full rule is available

ufw status
certbot --nginx -d example.com -d www.example.com

Let’s Encrypt’s certificates are only valid for ninety days. To set a timer to validate automatically:

systemctl status certbot.timer
3reactions
anirudhmalikcommented, Jul 18, 2022

@quiquelhappy you could just use ssh reverse port forwarding

  • setup your ubuntu server
  • in /etc/ssh/sshd_config edit GatewayPorts no to GatewayPorts yes
  • then sudo service sshd restart
  • now use terminal to ssh reverse port forward by command ssh -R 80:localhost:3000 user@<remote_server_ip>
  • now your localhost:3000 can be accessed from http://<remote_server_ip>:80 i.e public now
Read more comments on GitHub >

github_iconTop Results From Across the Web

Website down? Server down? 5 network troubleshooting tools ...
Troubleshooting connection issues and server down issues ... 1) Ping: a tool that checks if a server, website, or device is “alive” and...
Read more >
Your server seems to be down or is not responsive?
Probably the server is overloaded, down or unreachable because of a network problem, an outage or a website maintenance is in progress... Please ......
Read more >
Server Down: What to Do When My Server Crashes?
Step 1: Identify the root cause · Actual error message: There are a number of error messages that could appear on the screen...
Read more >
What does it mean when a server goes 'down'? Why ... - Quora
First of all, the word "server" actually means two things: A computer program that is designed to listen for requests on a network...
Read more >
EA down? Current outages and problems - Downdetector
Server Connection Login Game Play Something else. ... @LeaguesMut EA Servers seem to be down atm please be patient as they sort that...
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