Skip to content

Instantly share code, notes, and snippets.

@ibnesayeed
Created October 15, 2016 21:56
Show Gist options
  • Select an option

  • Save ibnesayeed/dd63d2af4a797cc54988f99595ee53fd to your computer and use it in GitHub Desktop.

Select an option

Save ibnesayeed/dd63d2af4a797cc54988f99595ee53fd to your computer and use it in GitHub Desktop.
$ xvfb-run --server-args='-screen 0, 1024x768x16' python start.py 8880 0.0.0.0
No handlers could be found for logger "tornado.application"
Server is started at 0.0.0.0:8880
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/src/app/ext/tools.py", line 13, in target
self.process = Popen(self.cmd, stdout=PIPE, stderr=PIPE)
File "/usr/local/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/local/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ERROR:tornado.application:Uncaught exception GET /api/damage/http%3A%2F%2Fwww.cs.odu.edu/false (172.17.0.1)
HTTPServerRequest(protocol='http', host='localhost:8880', method='GET', uri='/api/damage/http%3A%2F%2Fwww.cs.odu.edu/false', version='HTTP/1.1', remote_ip='172.17.0.1', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip, deflate, sdch', 'Host': 'localhost:8880', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', 'Dnt': '1', 'Connection': 'keep-alive', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://localhost:8880/memento/check?url=http%3A%2F%2Fwww.cs.odu.edu'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1401, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1603, in wrapper
result = method(self, *args, **kwargs)
File "/usr/src/app/app/modules/api/__init__.py", line 146, in get
self.do_fresh_calculation(uri, hashed_url)
File "/usr/src/app/app/modules/api/__init__.py", line 254, in do_fresh_calculation
err_code = cmd.run(10 * 60, args=(page, ))
File "/usr/src/app/ext/tools.py", line 35, in run
return self.process.returncode
AttributeError: 'NoneType' object has no attribute 'returncode'
ERROR:tornado.access:500 GET /api/damage/http%3A%2F%2Fwww.cs.odu.edu/false (172.17.0.1) 12.93ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment