python 2.7 - Bottle micro framework suddenly crash -
I have a web app that I developed using the Bottle Micro Framework. Although it does a lot without any action and suddenly crash them (without using the web app) So I have reviewed the log file and found the following errors (I do not know what is the cause of these errors):
traceback (the most recent call last): file "/ home / Hamod / lib / python2.7 / bottle.py ", in line 2699, run server.run (app) file" /home/hamoud/lib/python2.7/bottle.py ", line 2385, run srv = Make_server (auto.opt, self.port, handler, ** self.options) file "/usr/local/lib/python2.7/wsgiref/simple_server.py", in line 144, make_server server = server_class (host, Port), handler_class file "/usr/local/lib/python2.7/SocketServer.py", line 419, _ In the _init__ self.server_bind file "/usr/local/lib/python2.7/wsgiref/simple_server.py", line 48, server_bind the file in HTTPServer.server_bind (self) "/usr/local/lib/python2.7 /BaseHTTPServer.py ", line 108, in server_bind SocketServer.TCPServer.server_bind (self) file" / usr / local / lib /python2.7/SocketServer.py ", line 430, server_bind in self.socket.bind (self. Server_address) file "/ usr / local / l iiib / pithon 2.7 / escap", line 224, math return gate (self. _ Sock, name) (* ARGs) in type error: 'int object' is not callable
and
< Code> traceback (most recent call final): file "interface.py", line 29, & lt; Module & gt; Run (host = "localhost", port = 32471, reloader = true, debug = true) file "/home/hamoud/lib/python2.7/bottle.py", line 2657, run os.utime (lockfile, none ) # I'm alive! OSError: [Errno 2] There are no such files or directories: '/tmp/bottle.gqmJc8.lock'
However the second error does not crash the application (the application will continue working) But for the first time manual work is required (run the app again).
I can use crash jobs while using cron jobs, when it crashes. But I want to know what is the problem in my app.
some thoughts
< / P>
>
Are you using the latest version of the bottle? (From the line number in your stacktrace, it seems that you probably are not.)
If nothing works, then reloader = true
Try running without (or use reloader = False
). I saw the bottle code, and that change should work at least around the problem, even if we do not know the reason (yet).
Hope that helps
Comments
Post a Comment