Forums

Why is my error log not populating/updating?

I have a web app that is returning error messages like this:

Not Found

The requested URL /hmWtag was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I keep changing the server side code. And still when I save and run the changed code, I keep getting the same error. However, my error log file doesn't update. It shows errors that it encountered way back before my changes. Why isn't this error log updating?

Hi snappiesticker,

The most recent error I see is below (which is at the bottom of your webapp error log)- is that where you were looking? (ie. not the top)

2015-02-02 19:22:46,913 :Traceback (most recent call last):
2015-02-02 19:22:46,914 :  File "/bin/user_wsgi_wrapper.py", line 130, in __call__
2015-02-02 19:22:46,914 :    self.error_log_file.logger.exception("Error running WSGI application")
2015-02-02 19:22:46,914 :  File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception
2015-02-02 19:22:46,915 :    self.error(msg, *args, **kwargs)
2015-02-02 19:22:46,915 :  File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-02-02 19:22:46,915 :    self._log(ERROR, msg, args, **kwargs)
2015-02-02 19:22:46,915 :  File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
2015-02-02 19:22:46,915 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2015-02-02 19:22:46,916 :  File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
2015-02-02 19:22:46,916 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2015-02-02 19:22:46,916 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2015-02-02 19:22:46,916 :    self.threadName = threading.current_thread().name
2015-02-02 19:22:46,916 :  File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
2015-02-02 19:22:46,917 :    return _active[_get_ident()]
2015-02-02 19:22:46,917 :  File "/bin/user_wsgi_wrapper.py", line 122, in __call__
2015-02-02 19:22:46,917 :    app_iterator = self.app(environ, start_response)
2015-02-02 19:22:46,917 :  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1701, in __call__
2015-02-02 19:22:46,917 :    return self.wsgi_app(environ, start_response)
2015-02-02 19:22:46,917 :  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1689, in wsgi_app
2015-02-02 19:22:46,918 :    response = self.make_response(self.handle_exception(e))
2015-02-02 19:22:46,918 :  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
2015-02-02 19:22:46,918 :    response = self.full_dispatch_request()
2015-02-02 19:22:46,918 :  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
2015-02-02 19:22:46,919 :    rv = self.handle_user_exception(e)
2015-02-02 19:22:46,919 :  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
2015-02-02 19:22:46,919 :    rv = self.dispatch_request()
2015-02-02 19:22:46,919 :  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
2015-02-02 19:22:46,920 :    return self.view_functions[rule.endpoint](**req.view_args)
2015-02-02 19:22:46,920 :TypeError: find_by_id() got an unexpected keyword argument 'track_ID'

And just to confirm- this is the link that you are referring to when you are talking about the error log right?

(don't worry others will not be able to access your log from this link)

Yeah thats the error message i have been seeing. I have changed it so many times. track_ID has been changed to track_id long ago, and have since then received many 404 message. However, this is still the most recent error in the log.

Oh- then that means that you had fixed that error (which is why no more errors show up on your error log after you have fixed it).

Looking at your website, it is loading without any errors right now. Or are you just getting sent to this 404 page when you click on specific buttons/interact with the site?

I can't understand why it shows me the same error after I update even I deleted that file which contains errors bit it still shows me the same logs

Make sure you're reading the most recent messages - they are at the bottom of the logs.