You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed detective.io on an Ubuntu 14.04 server, at the beginning it was working nice, but since yesterday, I have this error (an no really logs):
[19/Jun/2015 02:29:34] "POST /api/detective/common/v1/user/login/ HTTP/1.1" 200 3597
Internal Server Error: /api/detective/common/v1/user/me/
Traceback (most recent call last):
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(_args, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 195, in wrapper
response = callback(request, _args, *_kwargs)
File "/opt/detective.io/app/detective/topics/common/user.py", line 285, in me
bundle = self.full_dehydrate(bundle)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 832, in full_dehydrate
bundle.data[field_name] = field_object.dehydrate(bundle, for_list=for_list)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/fields.py", line 731, in dehydrate
return self.dehydrate_related(fk_bundle, self.fk_resource, for_list=for_list)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/fields.py", line 566, in dehydrate_related
return related_resource.full_dehydrate(bundle)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 832, in full_dehydrate
bundle.data[field_name] = field_object.dehydrate(bundle, for_list=for_list)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/fields.py", line 133, in dehydrate
current_object = current_object()
File "/opt/detective.io/app/detective/models.py", line 668, in nodes_count
def nodes_count (self): return dict([(topic.slug, topic.entities_count()) for topic in self.user.topic_set.all()])
File "/opt/detective.io/app/detective/models.py", line 337, in entities_count
response = connection.cypher(query).to_dicts()[0].get("count")
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/db/init.py", line 115, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/utils.py", line 494, in getitem
conn = Client('http://%s:%d%s' % (db['HOST'], db['PORT'], db['ENDPOINT']), **db['OPTIONS'])
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/neo4jclient.py", line 30, in init
super(EnhancedGraphDatabase, self).init(_args, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4jrestclient/client.py", line 84, in init
response, content = Request(**self._auth).get(self.url)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4jrestclient/request.py", line 144, in get
return self._request('GET', url, headers=headers)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/db/init.py", line 61, in _request
headers)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4jrestclient/request.py", line 306, in _request
body=body)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 1608, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 1350, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 1272, in _conn_request
conn.connect()
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 916, in connect
self.sock.connect((self.host, self.port) + sa[2:])
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
self.**negotiatehttp(destpair[0], destpair[1])
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
HTTPError: (403, 'Forbidden')
[19/Jun/2015 02:29:35] "GET /api/detective/common/v1/user/me/ HTTP/1.1" 500 201180
Internal Server Error: /api/detective/common/v1/summary/mine/
Traceback (most recent call last):
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(_args, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 195, in wrapper
response = callback(request, _args, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 435, in dispatch_detail
return self.dispatch('detail', request, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 458, in dispatch
response = method(request, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 1295, in get_detail
obj = self.cached_obj_get(bundle=basic_bundle, *_self.remove_api_resource_names(kwargs))
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/tastypie/resources.py", line 1113, in cached_obj_get
cached_bundle = self.obj_get(bundle=bundle, *_kwargs)
File "/opt/detective.io/app/detective/topics/common/summary.py", line 83, in obj_get
return self.discover_method(request, kwargs)
File "/opt/detective.io/app/detective/topics/common/summary.py", line 64, in discover_method
content = method(kwargs["bundle"], request)
File "/opt/detective.io/app/detective/topics/common/summary.py", line 224, in summary_mine
matches = connection.cypher(query).to_dicts()
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/db/__init.py", line 115, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/utils.py", line 494, in getitem
conn = Client('http://%s:%d%s' % (db['HOST'], db['PORT'], db['ENDPOINT']), **db['OPTIONS'])
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/neo4jclient.py", line 30, in init
super(EnhancedGraphDatabase, self).init(_args, *_kwargs)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4jrestclient/client.py", line 84, in init
response, content = Request(**self._auth).get(self.url)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4jrestclient/request.py", line 144, in get
return self._request('GET', url, headers=headers)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4django/db/init.py", line 61, in _request
headers)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/neo4jrestclient/request.py", line 306, in _request
body=body)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 1608, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 1350, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/opt/detective.io/venv/local/lib/python2.7/site-packages/httplib2/init.py", line 1306, in _conn_request
response = conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib/python2.7/socket.py", line 476, in readline
data = self._sock.recv(self._rbufsize)
File "/usr/lib/python2.7/socket.py", line 170, in _dummy
raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
[19/Jun/2015 02:29:35] "GET /api/detective/common/v1/summary/mine/ HTTP/1.1" 500 20827
It seems to be related to Neo4j but I don't understand why, indeed on localhost:7474, I can access to the webadmin of the database. I'm behind a proxy (but before it was not an issue).
Have you ever seen this issue?
regards
The text was updated successfully, but these errors were encountered:
Hello,
I have installed detective.io on an Ubuntu 14.04 server, at the beginning it was working nice, but since yesterday, I have this error (an no really logs):
It seems to be related to Neo4j but I don't understand why, indeed on localhost:7474, I can access to the webadmin of the database. I'm behind a proxy (but before it was not an issue).
Have you ever seen this issue?
regards
The text was updated successfully, but these errors were encountered: