Skip to content

Lightsail instance 503 error

0

I have a lightsail instance that has been running for over a year. It's a light node.js webapp. After the maintenance that happened today, my instance in no longer accesible via the static IP I assignned to it.

The webpage that loads is a 503 error "Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."

I have manually logged via SSH and ran "sudo systemctl status". I got a "Degraded" status on the instance, so at the advice of some documentation, I stopped and restarted the instance (the documentation said this process ensures the instance starts on working hardware in case the previous hardware was faulty).

However this didn't fix my accessing the instance in the browser via the static IP.

Can anywone help? Thanks

asked 23 days ago48 views
2 Answers
0

Hello.

Have you checked the syslog and application logs?
If it is a 503 error, there should be some logs in the application log that will give you some clues for troubleshooting.
Also, if the "sudo systemctl status" command shows a "Degraded" status, the service has failed to start, so try restarting the service with the following command.
If you cannot start the service with the following command, please check the Syslog.

sudo systemctl restart ...
EXPERT
answered 22 days ago
0

Based on your description, it sounds like your Node.js application service might not be running properly after the maintenance, causing the 503 error.

Since you've already verified that the system is in a "Degraded" state and restarting the instance didn't resolve the issue, here are some steps you can try:

  1. Check if your Node.js application service is running by using commands like systemctl status your-nodejs-service or checking your process list with ps aux | grep node.

  2. Try restarting all services on the instance. If your Lightsail instance uses Bitnami (which many Lightsail instances do), you can run:

sudo /opt/bitnami/ctlscript.sh restart

This will restart all services on the instance.

  1. Check your application logs for any errors that might indicate why the service isn't starting properly. Common locations include:
  • /var/log/ directory
  • Your application's log directory
  1. Verify that your firewall settings haven't changed and that the necessary ports are open.

  2. If none of these steps work, consider creating a snapshot of your instance before making any further changes. This will allow you to recover your data if needed.

The 503 error typically indicates that the web server is running but the application service it's trying to proxy to isn't responding. Restarting your specific Node.js application service should resolve this issue.
Sources
Troubleshoot Ghost instance 503 service unavailable error on Lightsail - Amazon Lightsail
Troubleshoot common Lightsail resource issues - Amazon Lightsail
lightsail suddenly cannot be accessed | AWS re:Post

answered 23 days ago
EXPERT
reviewed 22 days ago