Skip to content

How to Read the Error Logs and Troubleshoot Cloud VPS issues?

Learn how to troubleshoot cloud server issues and also get support for any kind of problems in Ubuntu Cloud Server. Here are a few ways to get solutions.

For any online business website or blogging site, the errors and issues related to web servers are very common. The troubleshoot cloud server is sometimes a nightmare for system administrators and webmasters.

We have to understand that we should eliminate all the problems that come across when we accessing our site. This will not only help in maintaining the better User experience but also good for search engine and SEO standpoint.

In this article, we are going to learn how to identify the different types of errors in error log files. And also troubleshooting the issues using the different medium of support available online.

If you’re following us, this is the thirteenth article and video tutorial in the #CloudServer series. We recently published about Ubuntu cloud maintenance automation, you should definitely check it.

Let’s dive into the topic on how to read the error logs and troubleshoot cloud server issues —

How to Access Error Log files in Ubuntu Server?

One of the best things that I love about Ubuntu or any Linux based cloud server operating system is the ability to store all the logs and records. Whether it’s an error log, access log, or authentication log, the cloud server stores every in and out records.

One of the types of the record is the Error Log that store the information about all the issue a user or any web application has encountered when retrieving the site. It may be 400, 500, or any failed status codes.

All the logs are generally located under the /var/log directory folder. These files can be read and understood just like normal text files.

For example, I blocked the directory browsing externally using the Nginx security snippets. Now whenever any malicious user tries accessing the blocked directory or folder, a 403 forbidden status code will be appearing.

Since this is an error message for the end-user, Nginx will record the details like IP address of the malicious user, access date, page, what was the reason for the error, etc. etc. into an /var/log/nginx/error.log file.

Nginx Error Log File in SFTP FileZilla

Similarly, if you have any other issue with database connection, or PHP server not responding. These all records are also logged into the respective log files.

These log files are extremely helpful for a system administrator to understand the exact issue behind the error message. This will be also used for rectifying the problem after getting the support.

How to Get Support to Troubleshoot Cloud Server?

Now that we know how to read the error log and find the exact problem, finding a solution is a really easy task.

Nginx Log File with Error details

Using Search Engines – Google or Bing

There are certain ways to find a solution and in most cases, search engines help a lot.

  1. Just open Google or Bing Search
  2. Copy and paste the error details in the search bar
  3. Look out for the most relevant solution for the error

StackOverflow Search Result for Cloud Server issue

I personally prefer the StackOverflow answers compared to any other forums. StackOverflow is the ocean of solutions for developers and online issues. 90% of my problems are solved in StackOverFlow answers.
Troubleshoot Cloud Server Issue using StackOverflow website

Using Specific Support forum

Posting your questions or issues in the developer’s community forum is another easy way to find the solution.

Say suppose you have got an issue with the Nginx Web server, hence posting the problem in Nginx Forum will help in getting quicker solutions.

There are community forums for most of the programs used in the webserver which makes this option quite feasible.

Raising the support ticket with DigitalOcean

I personally contacted the DigitalOcean support and they are very helpful. They typically respond to any ticket within a day. While they do not have the live chat option, but given the complexity of the issues, it’s not feasible to have a live chat.

The DigitalOcean support team has access to all the cloud and backend support, hence any issue raised will be sorted at earliest.
DigitalOcean Cloud Support Ticket

The DigitalOcean also has a community forum for discussion and resolving the issue. We may also consider posting our server related problems in an open forum for a solution.

Cloud Server Troubleshooting Video Demo

Watch the entire video tutorial on how to access the log files to identify the errors and also get support help for troubleshooting the issues.

Easily Troubleshoot Cloud Server issues and Reading Error Logs

I hope you liked the video, please subscribe to our channel for interesting videos.

What’s next in the #CloudServer series?

We have learned how to troubleshoot the cloud server issue in this post.

We are not yet done with the Cloud Server Setup series, however, if you’ve anything else in your mind then please drop below in the comment section.

Leave a Reply

Your email address will not be published.