Select Language:
If your Lightsail instance has been running smoothly for over a year and suddenly becomes inaccessible after maintenance, don’t worry—you’re not alone. Here’s a straightforward way to fix the issue and get your website back online.
First, when you see a 503 error like “Service Unavailable,” it means your server is temporarily unable to deliver your website. This could be caused by maintenance or capacity problems, often related to server health issues.
Start by connecting to your instance via SSH. Once connected, run the command to check the status of your server’s services: sudo systemctl status
. If you notice the status is “Degraded,” it indicates there’s a problem with some services.
Next, try stopping and restarting your instance. Sometimes, a reboot can fix underlying hardware or software issues by ensuring the instance starts on healthy hardware. In Lightsail, you can do this from the console: stop your instance, wait a few moments, then start it again. This simple step often resolves temporary issues caused by hardware or system glitches.
If restarting doesn’t work and your static IP still doesn’t lead to your website, check your server’s logs and system status again. Make sure the Node.js app is properly running. You can do this by running commands such as pm2 status
or checking if your Node.js process is active and listening on the expected port.
If your application isn’t running, restart it manually. For example, if you’re using pm2 to manage your app, you can run pm2 restart all
or the specific command needed. Also, confirm there are no errors preventing your app from launching.
Finally, verify that your static IP is correctly assigned and associated with your Lightsail instance. Sometimes, an IP reassignment or misconfiguration can cause accessibility issues. You can reassign or reattach the static IP from the Lightsail console.
In summary, restart your server, check your app’s status, and ensure your static IP is properly linked. Following these steps usually restores access and gets your website back online. If problems persist, review your server logs and contact Lightsail support for further assistance.