Forums

How to see application logs

Hi, new here. I want to know how can I see application logs, I am getting error saying The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.. I want to see logs so I can fix this. Thank you!

The log files for your website are linked from the "Web" page inside PythonAnywhere.

seidehmed.pythonanywhere.com.error.log

Did you have a question?

Subject: Site Down with Unhandled Exception Error

Hi PythonAnywhere Support,

I'm experiencing an issue with my hosted site (http://absdisalan.pythonanywhere.com/). When I access the site, I receive an "Unhandled Exception" error. I've reviewed the server and error logs and found the following error message (insert error message).

I've checked my code and configurations, but I'm unable to pinpoint the issue. I've attached the relevant log files for your reference.

(Include relevant log files as attachments if possible)

I suspect the problem may be related to a recent code change, but I need assistance in diagnosing and resolving the issue. Could you please help me identify the root cause and suggest a solution?

PythonAnywhere Account: [gaavshiineq@gmail.com] Web Framework: [e.g., Django 4.2.6]

Thank you for your help.

Best regards, [Abdisalan Abdukadir Mohamed]

Hi, what can you see in the logs?

where to find logfile. Can I delete the contents of the log file?

Log files are located at /var/log directory. You can't delete the files themselves, but you can overwrite their contents by running echo > /var/log/<log file name> command, with replacing <log file name> with the actual file name.

giving msg of error processing your request in pythonanywhere

@CHATBOTnish24 we need more details to help you, could you show more context for this error?