Build: #96 failed
Job: Default Job failed
Build log
The build generated 4,537 lines of output.The output is too long and has been truncated to the last lines. Download or view full build log
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>response = self.full_dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>error = e</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.make_response(self.handle_exception(e))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response(environ, start_response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>finally:</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290192"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1477</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">full_dispatch_request</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>request_started.send(self)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if rv is None:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>rv = self.dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.make_response(rv)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.process_response(response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>request_finished.send(self, response=response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290256"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask_cors/extension.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">188</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapped_function</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span># Wrap exception handlers with cross_origin</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># These error handlers will still respect the behavior of the route</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if options.get('intercept_exceptions', True):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def _after_request_decorator(f):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def wrapped_function(*args, **kwargs):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return cors_after_request(app.make_response(f(*args, **kwargs)))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapped_function</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if hasattr(app, 'handle_exception'):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>app.handle_exception = _after_request_decorator(</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>app.handle_exception)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528289872"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1381</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">handle_user_exception</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>app_handlers = self.error_handler_spec[None].get(None, ())</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>for typecheck, handler in chain(blueprint_handlers, app_handlers):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if isinstance(e, typecheck):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return handler(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def handle_exception(self, e):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>"""Default exception handling that kicks in when an exception</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>occurs that is not caught. In debug mode the exception will</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>be re-raised immediately, otherwise it is logged and the handler</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290384"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1475</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">full_dispatch_request</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>self.try_trigger_before_first_request_functions()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>request_started.send(self)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if rv is None:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>rv = self.dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.make_response(rv)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.process_response(response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>request_finished.send(self, response=response)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290448"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1461</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">dispatch_request</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span># request came with the OPTIONS method, reply automatically</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if getattr(rule, 'provide_automatic_options', False) \</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>and req.method == 'OPTIONS':</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return self.make_default_options_response()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># otherwise dispatch to the handler for that endpoint</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return self.view_functions[rule.endpoint](**req.view_args)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def full_dispatch_request(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>"""Dispatches the request and on top of that performs request</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>pre and postprocessing as well as HTTP exception catching and</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>error handling.</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290512"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/connexion/decorators/validation.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">288</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapper</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>for param in self.parameters.get('header', []):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>error = self.validate_header_parameter(param)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if error:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return problem(400, 'Bad Request', error)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>response = function(*args, **kwargs)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapper</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290320"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/connexion/decorators/produces.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">116</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapper</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>@functools.wraps(function)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def wrapper(*args, **kwargs):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>url = flask.request.url</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>logger.debug('Jsonifing %s', url, extra={'url': url, 'mimetype': self.mimetype})</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>data, status_code, headers = self.get_full_response(function(*args, **kwargs))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if isinstance(data, flask.Response): # if the function returns a Response object don't change it</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>logger.debug('Endpoint returned a Flask Response', extra={'url': url, 'mimetype': data.mimetype})</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return data</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>elif data is NoContent:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return '', status_code</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290576"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/connexion/decorators/parameter.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">89</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapper</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>logger.debug("Query Parameter '%s' in function arguments", key)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>query_param = query_types[key]</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>logger.debug('%s is a %s', key, query_param)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>kwargs[key] = get_val_from_param(value, query_param)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return function(*args, **kwargs)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapper</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290640"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/property_service/propertyservice/routes/query.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">43</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">find</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span>def find(provenance):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>sql_conditions = __get_conditions(provenance)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>with PropertyDBQueryEngine() as ctx:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return format_query_output(ctx.query_data(sql_conditions))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span>def get_by_date(provenance, obs_date):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>obs_date = iso8601.parse_date(obs_date)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290064"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/property_service/propertyservice/data/property_db_query_engine.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">21</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__init__</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>self.__pg = PostgresNoSQLClient(host=flarecast_config.DB_HOST,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>port=flarecast_config.DB_PORT,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>user=flarecast_config.DB_USER,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>password=flarecast_config.DB_PASSWORD)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>self.__db = self.__pg[config.PROPERTY_DATABASE]</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__property_type = self.__db[config.PROPERTY_TYPE_TABLE]</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__link_view = self.__db.get_view(LINK_VIEW)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span># load keys</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.property_types = self.__get_property_types()</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290704"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">96</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__getitem__</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>print(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__close()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return exists</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def __getitem__(self, item):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return self.get_or_create_database(item)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290832"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">64</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">get_or_create_database</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__close()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return db_object</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def get_or_create_database(self, database_name):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>self.__connect()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>db = self.get_database(database_name)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if not db:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>db = self.create_database(database_name)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__close()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return db</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290896"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">36</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__connect</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def __connect(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__connect_counter += 1</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if not self.__connection:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__connection = psycopg2.connect(host=self.host, database=self.database, port=self.port,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>user=self.__user, password=self.__password)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__connection.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__cursor = self.__connection.cursor()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def __close(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__connect_counter -= 1</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441528290960"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">164</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">connect</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>raise TypeError('missing dsn and no parameters')</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>else:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>dsn = " ".join(["%s=%s" % (k, _param_escape(str(v)))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>for (k, v) in items])</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>conn = _connect(dsn, connection_factory=connection_factory, async=async)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if cursor_factory is not None:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>conn.cursor_factory = cursor_factory</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return conn</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </ul> |
| 07-Dec-2015 06:04:05 | E <blockquote>OperationalError: could not connect to server: Connection refused |
| 07-Dec-2015 06:04:05 | E Is the server running on host "db" (172.17.0.163) and accepting |
| 07-Dec-2015 06:04:05 | E TCP/IP connections on port 5432? |
| 07-Dec-2015 06:04:05 | E could not connect to server: Connection refused |
| 07-Dec-2015 06:04:05 | E Is the server running on host "db" (172.17.0.163) and accepting |
| 07-Dec-2015 06:04:05 | E TCP/IP connections on port 5432?</blockquote> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <div class="plain"> |
| 07-Dec-2015 06:04:05 | E <form action="/?__debugger__=yes&cmd=paste" method="post"> |
| 07-Dec-2015 06:04:05 | E <p> |
| 07-Dec-2015 06:04:05 | E <input type="hidden" name="language" value="pytb"> |
| 07-Dec-2015 06:04:05 | E This is the Copy/Paste friendly version of the traceback. <span |
| 07-Dec-2015 06:04:05 | E class="pastemessage">You can also paste this traceback into |
| 07-Dec-2015 06:04:05 | E a <a href="https://gist.github.com/">gist</a>: |
| 07-Dec-2015 06:04:05 | E <input type="submit" value="create paste"></span> |
| 07-Dec-2015 06:04:05 | E </p> |
| 07-Dec-2015 06:04:05 | E <textarea cols="50" rows="10" name="code" readonly>Traceback (most recent call last): |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ |
| 07-Dec-2015 06:04:05 | E return self.wsgi_app(environ, start_response) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.make_response(self.handle_exception(e)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.full_dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.handle_user_exception(e) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request |
| 07-Dec-2015 06:04:05 | E return self.view_functions[rule.endpoint](**req.view_args) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/validation.py", line 288, in wrapper |
| 07-Dec-2015 06:04:05 | E response = function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/produces.py", line 116, in wrapper |
| 07-Dec-2015 06:04:05 | E data, status_code, headers = self.get_full_response(function(*args, **kwargs)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/parameter.py", line 89, in wrapper |
| 07-Dec-2015 06:04:05 | E return function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/routes/query.py", line 43, in find |
| 07-Dec-2015 06:04:05 | E with PropertyDBQueryEngine() as ctx: |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/data/property_db_query_engine.py", line 21, in __init__ |
| 07-Dec-2015 06:04:05 | E self.__db = self.__pg[config.PROPERTY_DATABASE] |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 96, in __getitem__ |
| 07-Dec-2015 06:04:05 | E return self.get_or_create_database(item) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 64, in get_or_create_database |
| 07-Dec-2015 06:04:05 | E self.__connect() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 36, in __connect |
| 07-Dec-2015 06:04:05 | E user=self.__user, password=self.__password) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect |
| 07-Dec-2015 06:04:05 | E conn = _connect(dsn, connection_factory=connection_factory, async=async) |
| 07-Dec-2015 06:04:05 | E OperationalError: could not connect to server: Connection refused |
| 07-Dec-2015 06:04:05 | E Is the server running on host "db" (172.17.0.163) and accepting |
| 07-Dec-2015 06:04:05 | E TCP/IP connections on port 5432? |
| 07-Dec-2015 06:04:05 | E could not connect to server: Connection refused |
| 07-Dec-2015 06:04:05 | E Is the server running on host "db" (172.17.0.163) and accepting |
| 07-Dec-2015 06:04:05 | E TCP/IP connections on port 5432?</textarea> |
| 07-Dec-2015 06:04:05 | E </form> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E <div class="explanation"> |
| 07-Dec-2015 06:04:05 | E The debugger caught an exception in your WSGI application. You can now |
| 07-Dec-2015 06:04:05 | E look at the traceback which led to the error. <span class="nojavascript"> |
| 07-Dec-2015 06:04:05 | E If you enable JavaScript you can also use additional features such as code |
| 07-Dec-2015 06:04:05 | E execution (if the evalex feature is enabled), automatic pasting of the |
| 07-Dec-2015 06:04:05 | E exceptions and much more.</span> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E <div class="footer"> |
| 07-Dec-2015 06:04:05 | E Brought to you by <strong class="arthur">DON'T PANIC</strong>, your |
| 07-Dec-2015 06:04:05 | E friendly Werkzeug powered traceback interpreter. |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <div class="pin-prompt"> |
| 07-Dec-2015 06:04:05 | E <div class="inner"> |
| 07-Dec-2015 06:04:05 | E <h3>Console Locked</h3> |
| 07-Dec-2015 06:04:05 | E <p> |
| 07-Dec-2015 06:04:05 | E The console is locked and needs to be unlocked by entering the PIN. |
| 07-Dec-2015 06:04:05 | E You can find the PIN printed out on the standard output of your |
| 07-Dec-2015 06:04:05 | E shell that runs the server. |
| 07-Dec-2015 06:04:05 | E <form> |
| 07-Dec-2015 06:04:05 | E <p>PIN: |
| 07-Dec-2015 06:04:05 | E <input type=text name=pin size=14> |
| 07-Dec-2015 06:04:05 | E <input type=submit name=btn value="Confirm Pin"> |
| 07-Dec-2015 06:04:05 | E </form> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </body> |
| 07-Dec-2015 06:04:05 | E </html> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <!-- |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E Traceback (most recent call last): |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ |
| 07-Dec-2015 06:04:05 | E return self.wsgi_app(environ, start_response) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.make_response(self.handle_exception(e)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.full_dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.handle_user_exception(e) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request |
| 07-Dec-2015 06:04:05 | E return self.view_functions[rule.endpoint](**req.view_args) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/validation.py", line 288, in wrapper |
| 07-Dec-2015 06:04:05 | E response = function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/produces.py", line 116, in wrapper |
| 07-Dec-2015 06:04:05 | E data, status_code, headers = self.get_full_response(function(*args, **kwargs)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/parameter.py", line 89, in wrapper |
| 07-Dec-2015 06:04:05 | E return function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/routes/query.py", line 43, in find |
| 07-Dec-2015 06:04:05 | E with PropertyDBQueryEngine() as ctx: |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/data/property_db_query_engine.py", line 21, in __init__ |
| 07-Dec-2015 06:04:05 | E self.__db = self.__pg[config.PROPERTY_DATABASE] |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 96, in __getitem__ |
| 07-Dec-2015 06:04:05 | E return self.get_or_create_database(item) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 64, in get_or_create_database |
| 07-Dec-2015 06:04:05 | E self.__connect() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 36, in __connect |
| 07-Dec-2015 06:04:05 | E user=self.__user, password=self.__password) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect |
| 07-Dec-2015 06:04:05 | E conn = _connect(dsn, connection_factory=connection_factory, async=async) |
| 07-Dec-2015 06:04:05 | E OperationalError: could not connect to server: Connection refused |
| 07-Dec-2015 06:04:05 | E Is the server running on host "db" (172.17.0.163) and accepting |
| 07-Dec-2015 06:04:05 | E TCP/IP connections on port 5432? |
| 07-Dec-2015 06:04:05 | E could not connect to server: Connection refused |
| 07-Dec-2015 06:04:05 | E Is the server running on host "db" (172.17.0.163) and accepting |
| 07-Dec-2015 06:04:05 | E TCP/IP connections on port 5432? |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E --> |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:214: RestException |
| 07-Dec-2015 06:04:05 | _______ PropertyTests.test_add_multiple_properties_from_other_provenance _______ |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | self = <tests.property_tests.PropertyTests testMethod=test_add_multiple_properties_from_other_provenance> |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | def setUp(self): |
| 07-Dec-2015 06:04:05 | super(PropertyTests, self).setUp() |
| 07-Dec-2015 06:04:05 | > data = self.client.get_properties(TEST_PROVENANCE) |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | property_tests.py:13: |
| 07-Dec-2015 06:04:05 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 07-Dec-2015 06:04:05 | /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:113: in get_properties |
| 07-Dec-2015 06:04:05 | return self.__get_request(url) |
| 07-Dec-2015 06:04:05 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | url = 'http://localhost:8002/property/test_prov/list' |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | @staticmethod |
| 07-Dec-2015 06:04:05 | def __get_request(url): |
| 07-Dec-2015 06:04:05 | r = requests.get(url) |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | if r.status_code != 200: |
| 07-Dec-2015 06:04:05 | > raise RestException(r) |
| 07-Dec-2015 06:04:05 | E RestException: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 07-Dec-2015 06:04:05 | E "http://www.w3.org/TR/html4/loose.dtd"> |
| 07-Dec-2015 06:04:05 | E <html> |
| 07-Dec-2015 06:04:05 | E <head> |
| 07-Dec-2015 06:04:05 | E <title>OperationalError: FATAL: the database system is starting up // Werkzeug Debugger</title> |
| 07-Dec-2015 06:04:05 | E <link rel="stylesheet" href="?__debugger__=yes&cmd=resource&f=style.css" |
| 07-Dec-2015 06:04:05 | E type="text/css"> |
| 07-Dec-2015 06:04:05 | E <!-- We need to make sure this has a favicon so that the debugger does |
| 07-Dec-2015 06:04:05 | E not by accident trigger a request to /favicon.ico which might |
| 07-Dec-2015 06:04:05 | E change the application state. --> |
| 07-Dec-2015 06:04:05 | E <link rel="shortcut icon" |
| 07-Dec-2015 06:04:05 | E href="?__debugger__=yes&cmd=resource&f=console.png"> |
| 07-Dec-2015 06:04:05 | E <script src="?__debugger__=yes&cmd=resource&f=jquery.js"></script> |
| 07-Dec-2015 06:04:05 | E <script src="?__debugger__=yes&cmd=resource&f=debugger.js"></script> |
| 07-Dec-2015 06:04:05 | E <script type="text/javascript"> |
| 07-Dec-2015 06:04:05 | E var TRACEBACK = 140441524687376, |
| 07-Dec-2015 06:04:05 | E CONSOLE_MODE = false, |
| 07-Dec-2015 06:04:05 | E EVALEX = true, |
| 07-Dec-2015 06:04:05 | E EVALEX_TRUSTED = false, |
| 07-Dec-2015 06:04:05 | E SECRET = "03528G3v7iTkYaX5wm2v"; |
| 07-Dec-2015 06:04:05 | E </script> |
| 07-Dec-2015 06:04:05 | E </head> |
| 07-Dec-2015 06:04:05 | E <body> |
| 07-Dec-2015 06:04:05 | E <div class="debugger"> |
| 07-Dec-2015 06:04:05 | E <h1>psycopg2.OperationalError</h1> |
| 07-Dec-2015 06:04:05 | E <div class="detail"> |
| 07-Dec-2015 06:04:05 | E <p class="errormsg">OperationalError: FATAL: the database system is starting up</p> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E <h2 class="traceback">Traceback <em>(most recent call last)</em></h2> |
| 07-Dec-2015 06:04:05 | E <div class="traceback"> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <ul><li><div class="frame" id="frame-140441524687440"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1836</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__call__</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>'Flask.blueprints instead'), stacklevel=2)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return self.blueprints</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def __call__(self, environ, start_response):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>"""Shortcut for :attr:`wsgi_app`."""</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return self.wsgi_app(environ, start_response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def __repr__(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return '<%s %r>' % (</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__class__.__name__,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.name,</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687632"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1820</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wsgi_app</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>response = self.full_dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>error = e</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>response = self.make_response(self.handle_exception(e))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response(environ, start_response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>finally:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if self.should_ignore_error(error):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>error = None</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>ctx.auto_pop(error)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687696"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask_cors/extension.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">188</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapped_function</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span># Wrap exception handlers with cross_origin</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># These error handlers will still respect the behavior of the route</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if options.get('intercept_exceptions', True):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def _after_request_decorator(f):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def wrapped_function(*args, **kwargs):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return cors_after_request(app.make_response(f(*args, **kwargs)))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapped_function</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if hasattr(app, 'handle_exception'):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>app.handle_exception = _after_request_decorator(</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>app.handle_exception)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687504"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1403</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">handle_exception</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span># if we want to repropagate the exception, we can attempt to</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># raise it with the whole traceback in case we can do that</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># (the function was actually called from the except part)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># otherwise, we just raise the error again</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if exc_value is e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>else:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>raise e</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.log_exception((exc_type, exc_value, tb))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if handler is None:</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687824"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1817</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wsgi_app</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>ctx = self.request_context(environ)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>ctx.push()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>error = None</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>response = self.full_dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>error = e</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.make_response(self.handle_exception(e))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response(environ, start_response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>finally:</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687888"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1477</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">full_dispatch_request</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>request_started.send(self)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if rv is None:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>rv = self.dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.make_response(rv)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.process_response(response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>request_finished.send(self, response=response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687952"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask_cors/extension.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">188</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapped_function</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span># Wrap exception handlers with cross_origin</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># These error handlers will still respect the behavior of the route</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if options.get('intercept_exceptions', True):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def _after_request_decorator(f):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def wrapped_function(*args, **kwargs):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return cors_after_request(app.make_response(f(*args, **kwargs)))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapped_function</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if hasattr(app, 'handle_exception'):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>app.handle_exception = _after_request_decorator(</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>app.handle_exception)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687568"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1381</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">handle_user_exception</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>app_handlers = self.error_handler_spec[None].get(None, ())</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>for typecheck, handler in chain(blueprint_handlers, app_handlers):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if isinstance(e, typecheck):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return handler(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def handle_exception(self, e):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>"""Default exception handling that kicks in when an exception</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>occurs that is not caught. In debug mode the exception will</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>be re-raised immediately, otherwise it is logged and the handler</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688080"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1475</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">full_dispatch_request</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>self.try_trigger_before_first_request_functions()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>try:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>request_started.send(self)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if rv is None:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>rv = self.dispatch_request()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>except Exception as e:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.make_response(rv)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>response = self.process_response(response)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>request_finished.send(self, response=response)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688144"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/flask/app.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">1461</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">dispatch_request</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span># request came with the OPTIONS method, reply automatically</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if getattr(rule, 'provide_automatic_options', False) \</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>and req.method == 'OPTIONS':</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return self.make_default_options_response()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span># otherwise dispatch to the handler for that endpoint</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return self.view_functions[rule.endpoint](**req.view_args)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def full_dispatch_request(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>"""Dispatches the request and on top of that performs request</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>pre and postprocessing as well as HTTP exception catching and</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>error handling.</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688208"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/connexion/decorators/validation.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">288</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapper</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>for param in self.parameters.get('header', []):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>error = self.validate_header_parameter(param)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if error:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return problem(400, 'Bad Request', error)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>response = function(*args, **kwargs)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return response</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapper</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688016"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/connexion/decorators/produces.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">116</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapper</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>@functools.wraps(function)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def wrapper(*args, **kwargs):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>url = flask.request.url</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>logger.debug('Jsonifing %s', url, extra={'url': url, 'mimetype': self.mimetype})</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>data, status_code, headers = self.get_full_response(function(*args, **kwargs))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if isinstance(data, flask.Response): # if the function returns a Response object don't change it</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>logger.debug('Endpoint returned a Flask Response', extra={'url': url, 'mimetype': data.mimetype})</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return data</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>elif data is NoContent:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return '', status_code</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688272"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/connexion/decorators/parameter.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">89</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">wrapper</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>logger.debug("Query Parameter '%s' in function arguments", key)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>query_param = query_types[key]</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>logger.debug('%s is a %s', key, query_param)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>kwargs[key] = get_val_from_param(value, query_param)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return function(*args, **kwargs)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return wrapper</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688336"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/property_service/propertyservice/routes/query.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">43</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">find</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span>def find(provenance):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>sql_conditions = __get_conditions(provenance)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>with PropertyDBQueryEngine() as ctx:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return format_query_output(ctx.query_data(sql_conditions))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span>def get_by_date(provenance, obs_date):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>obs_date = iso8601.parse_date(obs_date)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524687760"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/property_service/propertyservice/data/property_db_query_engine.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">21</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__init__</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>self.__pg = PostgresNoSQLClient(host=flarecast_config.DB_HOST,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>port=flarecast_config.DB_PORT,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>user=flarecast_config.DB_USER,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>password=flarecast_config.DB_PASSWORD)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>self.__db = self.__pg[config.PROPERTY_DATABASE]</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__property_type = self.__db[config.PROPERTY_TYPE_TABLE]</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__link_view = self.__db.get_view(LINK_VIEW)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span># load keys</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.property_types = self.__get_property_types()</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688400"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">96</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__getitem__</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>print(e)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__close()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return exists</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def __getitem__(self, item):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>return self.get_or_create_database(item)</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688528"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">64</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">get_or_create_database</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__close()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>return db_object</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def get_or_create_database(self, database_name):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>self.__connect()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>db = self.get_database(database_name)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if not db:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>db = self.create_database(database_name)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__close()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return db</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688592"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">36</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">__connect</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>def __connect(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__connect_counter += 1</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>if not self.__connection:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>self.__connection = psycopg2.connect(host=self.host, database=self.database, port=self.port,</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>user=self.__user, password=self.__password)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__connection.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__cursor = self.__connection.cursor()</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>def __close(self):</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>self.__connect_counter -= 1</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <li><div class="frame" id="frame-140441524688656"> |
| 07-Dec-2015 06:04:05 | E <h4>File <cite class="filename">"/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py"</cite>, |
| 07-Dec-2015 06:04:05 | E line <em class="line">164</em>, |
| 07-Dec-2015 06:04:05 | E in <code class="function">connect</code></h4> |
| 07-Dec-2015 06:04:05 | E <div class="source"><pre class="line before"><span class="ws"> </span>raise TypeError('missing dsn and no parameters')</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>else:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>dsn = " ".join(["%s=%s" % (k, _param_escape(str(v)))</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"> </span>for (k, v) in items])</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line before"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line current"><span class="ws"> </span>conn = _connect(dsn, connection_factory=connection_factory, async=async)</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>if cursor_factory is not None:</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>conn.cursor_factory = cursor_factory</pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"></span> </pre> |
| 07-Dec-2015 06:04:05 | E <pre class="line after"><span class="ws"> </span>return conn</pre></div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </ul> |
| 07-Dec-2015 06:04:05 | E <blockquote>OperationalError: FATAL: the database system is starting up</blockquote> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <div class="plain"> |
| 07-Dec-2015 06:04:05 | E <form action="/?__debugger__=yes&cmd=paste" method="post"> |
| 07-Dec-2015 06:04:05 | E <p> |
| 07-Dec-2015 06:04:05 | E <input type="hidden" name="language" value="pytb"> |
| 07-Dec-2015 06:04:05 | E This is the Copy/Paste friendly version of the traceback. <span |
| 07-Dec-2015 06:04:05 | E class="pastemessage">You can also paste this traceback into |
| 07-Dec-2015 06:04:05 | E a <a href="https://gist.github.com/">gist</a>: |
| 07-Dec-2015 06:04:05 | E <input type="submit" value="create paste"></span> |
| 07-Dec-2015 06:04:05 | E </p> |
| 07-Dec-2015 06:04:05 | E <textarea cols="50" rows="10" name="code" readonly>Traceback (most recent call last): |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ |
| 07-Dec-2015 06:04:05 | E return self.wsgi_app(environ, start_response) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.make_response(self.handle_exception(e)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.full_dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.handle_user_exception(e) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request |
| 07-Dec-2015 06:04:05 | E return self.view_functions[rule.endpoint](**req.view_args) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/validation.py", line 288, in wrapper |
| 07-Dec-2015 06:04:05 | E response = function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/produces.py", line 116, in wrapper |
| 07-Dec-2015 06:04:05 | E data, status_code, headers = self.get_full_response(function(*args, **kwargs)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/parameter.py", line 89, in wrapper |
| 07-Dec-2015 06:04:05 | E return function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/routes/query.py", line 43, in find |
| 07-Dec-2015 06:04:05 | E with PropertyDBQueryEngine() as ctx: |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/data/property_db_query_engine.py", line 21, in __init__ |
| 07-Dec-2015 06:04:05 | E self.__db = self.__pg[config.PROPERTY_DATABASE] |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 96, in __getitem__ |
| 07-Dec-2015 06:04:05 | E return self.get_or_create_database(item) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 64, in get_or_create_database |
| 07-Dec-2015 06:04:05 | E self.__connect() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 36, in __connect |
| 07-Dec-2015 06:04:05 | E user=self.__user, password=self.__password) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect |
| 07-Dec-2015 06:04:05 | E conn = _connect(dsn, connection_factory=connection_factory, async=async) |
| 07-Dec-2015 06:04:05 | E OperationalError: FATAL: the database system is starting up</textarea> |
| 07-Dec-2015 06:04:05 | E </form> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E <div class="explanation"> |
| 07-Dec-2015 06:04:05 | E The debugger caught an exception in your WSGI application. You can now |
| 07-Dec-2015 06:04:05 | E look at the traceback which led to the error. <span class="nojavascript"> |
| 07-Dec-2015 06:04:05 | E If you enable JavaScript you can also use additional features such as code |
| 07-Dec-2015 06:04:05 | E execution (if the evalex feature is enabled), automatic pasting of the |
| 07-Dec-2015 06:04:05 | E exceptions and much more.</span> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E <div class="footer"> |
| 07-Dec-2015 06:04:05 | E Brought to you by <strong class="arthur">DON'T PANIC</strong>, your |
| 07-Dec-2015 06:04:05 | E friendly Werkzeug powered traceback interpreter. |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <div class="pin-prompt"> |
| 07-Dec-2015 06:04:05 | E <div class="inner"> |
| 07-Dec-2015 06:04:05 | E <h3>Console Locked</h3> |
| 07-Dec-2015 06:04:05 | E <p> |
| 07-Dec-2015 06:04:05 | E The console is locked and needs to be unlocked by entering the PIN. |
| 07-Dec-2015 06:04:05 | E You can find the PIN printed out on the standard output of your |
| 07-Dec-2015 06:04:05 | E shell that runs the server. |
| 07-Dec-2015 06:04:05 | E <form> |
| 07-Dec-2015 06:04:05 | E <p>PIN: |
| 07-Dec-2015 06:04:05 | E <input type=text name=pin size=14> |
| 07-Dec-2015 06:04:05 | E <input type=submit name=btn value="Confirm Pin"> |
| 07-Dec-2015 06:04:05 | E </form> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </div> |
| 07-Dec-2015 06:04:05 | E </body> |
| 07-Dec-2015 06:04:05 | E </html> |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E <!-- |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E Traceback (most recent call last): |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ |
| 07-Dec-2015 06:04:05 | E return self.wsgi_app(environ, start_response) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.make_response(self.handle_exception(e)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app |
| 07-Dec-2015 06:04:05 | E response = self.full_dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.handle_user_exception(e) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask_cors/extension.py", line 188, in wrapped_function |
| 07-Dec-2015 06:04:05 | E return cors_after_request(app.make_response(f(*args, **kwargs))) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception |
| 07-Dec-2015 06:04:05 | E reraise(exc_type, exc_value, tb) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request |
| 07-Dec-2015 06:04:05 | E rv = self.dispatch_request() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request |
| 07-Dec-2015 06:04:05 | E return self.view_functions[rule.endpoint](**req.view_args) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/validation.py", line 288, in wrapper |
| 07-Dec-2015 06:04:05 | E response = function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/produces.py", line 116, in wrapper |
| 07-Dec-2015 06:04:05 | E data, status_code, headers = self.get_full_response(function(*args, **kwargs)) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/connexion/decorators/parameter.py", line 89, in wrapper |
| 07-Dec-2015 06:04:05 | E return function(*args, **kwargs) |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/routes/query.py", line 43, in find |
| 07-Dec-2015 06:04:05 | E with PropertyDBQueryEngine() as ctx: |
| 07-Dec-2015 06:04:05 | E File "/property_service/propertyservice/data/property_db_query_engine.py", line 21, in __init__ |
| 07-Dec-2015 06:04:05 | E self.__db = self.__pg[config.PROPERTY_DATABASE] |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 96, in __getitem__ |
| 07-Dec-2015 06:04:05 | E return self.get_or_create_database(item) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 64, in get_or_create_database |
| 07-Dec-2015 06:04:05 | E self.__connect() |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/pg4nosql/PostgresNoSQLClient.py", line 36, in __connect |
| 07-Dec-2015 06:04:05 | E user=self.__user, password=self.__password) |
| 07-Dec-2015 06:04:05 | E File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect |
| 07-Dec-2015 06:04:05 | E conn = _connect(dsn, connection_factory=connection_factory, async=async) |
| 07-Dec-2015 06:04:05 | E OperationalError: FATAL: the database system is starting up |
| 07-Dec-2015 06:04:05 | E |
| 07-Dec-2015 06:04:05 | E --> |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:214: RestException |
| 07-Dec-2015 06:04:05 | _____________________ PropertyTests.test_add_one_property ______________________ |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | self = <tests.property_tests.PropertyTests testMethod=test_add_one_property> |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | def setUp(self): |
| 07-Dec-2015 06:04:05 | super(PropertyTests, self).setUp() |
| 07-Dec-2015 06:04:05 | data = self.client.get_properties(TEST_PROVENANCE) |
| 07-Dec-2015 06:04:05 | > self.flarecast_id = data[0]['fc_id'] |
| 07-Dec-2015 06:04:05 | E IndexError: list index out of range |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | property_tests.py:14: IndexError |
| 07-Dec-2015 06:04:05 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml |
| 07-Dec-2015 06:04:05 | ===================== 3 failed, 1 skipped in 0.77 seconds ====================== |
| 07-Dec-2015 06:04:05 | ============================= test session starts ============================== |
| 07-Dec-2015 06:04:05 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 07-Dec-2015 06:04:05 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: |
| 07-Dec-2015 06:04:05 | plugins: pep8-1.0.6 |
| 07-Dec-2015 06:04:05 | collected 0 items |
| 07-Dec-2015 06:04:05 | |
| 07-Dec-2015 06:04:05 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml |
| 07-Dec-2015 06:04:05 | =============================== in 0.07 seconds =============================== |
| 07-Dec-2015 06:04:05 | ============================= test session starts ============================== |
| 07-Dec-2015 06:04:05 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 07-Dec-2015 06:04:05 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: |
| 07-Dec-2015 06:04:05 | plugins: pep8-1.0.6 |
| 07-Dec-2015 06:04:06 | collected 2 items |
| 07-Dec-2015 06:04:06 | |
| 07-Dec-2015 06:04:06 | link_tests.py Fs |
| 07-Dec-2015 06:04:06 | |
| 07-Dec-2015 06:04:06 | =================================== FAILURES =================================== |
| 07-Dec-2015 06:04:06 | ___________________________ LinkTests.test_add_link ____________________________ |
| 07-Dec-2015 06:04:06 | |
| 07-Dec-2015 06:04:06 | self = <tests.link_tests.LinkTests testMethod=test_add_link> |
| 07-Dec-2015 06:04:06 | |
| 07-Dec-2015 06:04:06 | def test_add_link(self): |
| 07-Dec-2015 06:04:06 | > result = self.client.add_link(self.flarecast_ids[0], |
| 07-Dec-2015 06:04:06 | self.flarecast_ids[1], |
| 07-Dec-2015 06:04:06 | 'test link', |
| 07-Dec-2015 06:04:06 | 'test description') |
| 07-Dec-2015 06:04:06 | E IndexError: list index out of range |
| 07-Dec-2015 06:04:06 | |
| 07-Dec-2015 06:04:06 | link_tests.py:17: IndexError |
| 07-Dec-2015 06:04:06 | ----------------------------- Captured stdout call ----------------------------- |
| 07-Dec-2015 06:04:06 | [] |
| 07-Dec-2015 06:04:06 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml |
| 07-Dec-2015 06:04:06 | ===================== 1 failed, 1 skipped in 0.29 seconds ====================== |
| 07-Dec-2015 06:04:06 | ============================= test session starts ============================== |
| 07-Dec-2015 06:04:06 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 07-Dec-2015 06:04:06 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: |
| 07-Dec-2015 06:04:06 | plugins: pep8-1.0.6 |
| 07-Dec-2015 06:04:06 | collected 0 items |
| 07-Dec-2015 06:04:06 | |
| 07-Dec-2015 06:04:06 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_query_tests.xml |
| 07-Dec-2015 06:04:06 | =============================== in 0.01 seconds =============================== |
| 07-Dec-2015 06:04:18 | Finished task 'Run tests' with result: Success |
| 07-Dec-2015 06:04:18 | Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command' |
| 07-Dec-2015 06:04:18 | Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #96 (INFRA-PROP-JOB1-96)' ... running command line: /usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml ... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 ... using extra environment variables: bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64 bamboo_capability_system_builder_command_Docker=/usr/bin/docker bamboo_planRepository_type=stash-rep bamboo_shortPlanName=propertyservice bamboo_repository_2785292_git_username= bamboo_planKey=INFRA-PROP bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git bamboo_repository_2785292_git_branch=master bamboo_planRepository_1_branchName=master bamboo_repository_2785292_previous_revision_number=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_shortPlanKey=PROP bamboo_shortJobKey=JOB1 bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 bamboo_planRepository_1_branch=master bamboo_repository_revision_number=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_repository_2785292_revision_number=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_planName=FLARECAST - propertyservice bamboo_dependency_parent_total=1 bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-96 bamboo_planRepository_revision=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_buildResultKey=INFRA-PROP-JOB1-96 bamboo_repository_2785292_branch_name=master bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64 bamboo_repository_git_username= bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run bamboo_buildKey=INFRA-PROP-JOB1 bamboo_repository_previous_revision_number=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_capability_system_git_executable=/usr/bin/git bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 bamboo_dependency_parent_0=INFRA-BASE-86 bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir bamboo_buildPlanName=FLARECAST - propertyservice - Default Job bamboo_repository_name=propertyservice bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test bamboo_repository_2785292_name=propertyservice bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-96 bamboo_repository_git_branch=master bamboo_planRepository_1_revision=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_planRepository_1_type=stash-rep bamboo_planRepository_1_previousRevision=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_planRepository_1_name=propertyservice bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-96-ScriptBuildTask-8042488251634611525.sh bamboo_planRepository_branch=master bamboo_planRepository_username= bamboo_planRepository_branchName=master bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64 bamboo_shortJobName=Default Job bamboo_repository_branch_name=master bamboo_planRepository_previousRevision=7553679b28efb25f766d2d1acb65e7a004907169 bamboo_agentId=131073 bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git bamboo_planRepository_1_username= bamboo_planRepository_name=propertyservice bamboo_buildNumber=96 bamboo_buildTimeStamp=2015-12-07T06:03:26.075+01:00 |
| 07-Dec-2015 06:04:18 | ============================= test session starts ============================== |
| 07-Dec-2015 06:04:18 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 07-Dec-2015 06:04:18 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile: |
| 07-Dec-2015 06:04:18 | plugins: pep8-1.0.6 |
| 07-Dec-2015 06:04:18 | collected 25 items |
| 07-Dec-2015 06:04:18 | |
| 07-Dec-2015 06:04:18 | main.py . |
| 07-Dec-2015 06:04:18 | propertyservice/__init__.py . |
| 07-Dec-2015 06:04:18 | propertyservice/config.py . |
| 07-Dec-2015 06:04:18 | propertyservice/util.py . |
| 07-Dec-2015 06:04:18 | propertyservice/data/__init__.py . |
| 07-Dec-2015 06:04:18 | propertyservice/data/extended_queries.py . |
| 07-Dec-2015 06:04:18 | propertyservice/data/property_db_data_source.py . |
| 07-Dec-2015 06:04:18 | propertyservice/data/property_db_query_engine.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/__init__.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/link.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/property.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/property_group.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/property_type.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/provenance.py . |
| 07-Dec-2015 06:04:18 | propertyservice/routes/query.py . |
| 07-Dec-2015 06:04:18 | tests/__init__.py . |
| 07-Dec-2015 06:04:18 | tests/base_test_case.py . |
| 07-Dec-2015 06:04:18 | tests/cleanup_docker_env.py . |
| 07-Dec-2015 06:04:18 | tests/link_tests.py . |
| 07-Dec-2015 06:04:18 | tests/property_group_tests.py . |
| 07-Dec-2015 06:04:18 | tests/property_tests.py . |
| 07-Dec-2015 06:04:18 | tests/property_type_tests.py . |
| 07-Dec-2015 06:04:18 | tests/provenance_tests.py . |
| 07-Dec-2015 06:04:18 | tests/query_tests.py . |
| 07-Dec-2015 06:04:18 | tests/setup_docker_env.py . |
| 07-Dec-2015 06:04:18 | |
| 07-Dec-2015 06:04:18 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml |
| 07-Dec-2015 06:04:18 | ========================== 25 passed in 0.21 seconds =========================== |
| 07-Dec-2015 06:04:18 | Finished task 'Pep8 tests' with result: Success |
| 07-Dec-2015 06:04:18 | Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit' |
| 07-Dec-2015 06:04:18 | Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1... |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./propertyservice was ignored because it was modified (2015-11-25 16:06:51.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./.cache was ignored because it was modified (2015-10-16 11:23:58.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./main.py was ignored because it was modified (2015-11-25 16:06:51.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./main.pyc was ignored because it was modified (2015-10-16 14:46:33.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./README.md was ignored because it was modified (2015-10-16 11:22:32.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./Dockerfile was ignored because it was modified (2015-10-16 11:22:32.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./tests was ignored because it was modified (2015-11-30 08:10:18.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./build.sh was ignored because it was modified (2015-10-16 11:22:32.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./results.xml was ignored because it was modified (2015-11-11 11:57:06.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./requirements.txt was ignored because it was modified (2015-10-16 11:22:32.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | File /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/./.gitignore was ignored because it was modified (2015-11-09 09:26:57.000) before task started (2015-12-07 06:03:26.335) |
| 07-Dec-2015 06:04:18 | Failing task since 10 failing test cases were found. |
| 07-Dec-2015 06:04:18 | Finished task 'Parse pytest output' with result: Failed |
| 07-Dec-2015 06:04:18 | Running post build plugin 'Sauce OnDemand Post Runner' |
| 07-Dec-2015 06:04:18 | Running post build plugin 'Clover Results Collector' |
| 07-Dec-2015 06:04:18 | Running post build plugin 'Artifact Copier' |
| 07-Dec-2015 06:04:18 | Running post build plugin 'NCover Results Collector' |
| 07-Dec-2015 06:04:18 | Running post build plugin 'npm Cache Cleanup' |
| 07-Dec-2015 06:04:18 | Finalising the build... |
| 07-Dec-2015 06:04:18 | Stopping timer. |
| 07-Dec-2015 06:04:18 | Build INFRA-PROP-JOB1-96 completed. |
| 07-Dec-2015 06:04:18 | Running on server: post build plugin 'Clover Delta Calculator' |
| 07-Dec-2015 06:04:18 | Running on server: post build plugin 'Build Hanging Detection Configuration' |
| 07-Dec-2015 06:04:18 | Running on server: post build plugin 'NCover Results Collector' |
| 07-Dec-2015 06:04:18 | Running on server: post build plugin 'Maven Dependencies Postprocessor' |
| 07-Dec-2015 06:04:18 | All post build plugins have finished |
| 07-Dec-2015 06:04:18 | Generating build results summary... |
| 07-Dec-2015 06:04:18 | Saving build results to disk... |
| 07-Dec-2015 06:04:19 | Indexing build results... |
| 07-Dec-2015 06:04:19 | Finished building INFRA-PROP-JOB1-96. |