Ocassional Internal Server Error

I get Internal Server Error (500) sometimes when loading my erpnext site example.com. When I refresh, it works but occasionally I get Error 500.

What is this strange phenomenon ?

The “Internal Server Error (500)” typically indicates an issue with the server or the web application itself. Since the error happens occasionally and resolves when you refresh the page, it could be related to server overload, misconfigurations, or resource limitations like memory or CPU usage. It might also be caused by temporary issues with your ERPNext installation, such as a faulty plugin or database connection hiccups.

I suggest checking your server logs (both ERPNext and web server logs) to see if there are any specific errors or warnings when the 500 error occurs. This could give you more insight into what’s causing the issue. Also, ensure that your server has enough resources and that all configurations are correct.

Hi,

Thank you for the insight.

We also believe it is because of some misconfiguration. But it is quite interesting that error occurs occasionally, and goes away most often with refresh.

Anyway, digging more into logs would be really troublesome. I posted here to check if someone already faced similar problem and had found the solution. Nevertheless, thinking of reinstalling EPRNext from scratch for a fresh site.

I hope restoring current DB will not recreate similar problems.

Hi,

It looks like MariaDB is getting randomly restarted.

Please check that.

Thanks,

Divyesh Mangroliya

1 Like

How can I check that ?

Hi,

Please check the log in /var/log/mysql/error.log for more details.

Thanks,

Divyesh Mangroliya

It’s likely a server load or config issue. Check the error logs for details.