Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection refused (error 500) #696

Open
Free16t opened this issue May 2, 2015 · 2 comments
Open

connection refused (error 500) #696

Free16t opened this issue May 2, 2015 · 2 comments

Comments

@Free16t
Copy link

Free16t commented May 2, 2015

Hi,

I'm working on the installation of detective on my archlinux.
The installation is ok, I can start detective, create the skeleton and so one but suddenly (after trying to publish) I have this error(on each page now, here the message when I go to my user account):

[02/May/2015 07:42:15] "GET /partial/main/user/user.html HTTP/1.1" 200 1095
Internal Server Error: /api/detective/common/v1/summary/mine/
Traceback (most recent call last):
File "/home/pierre/detective/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(_args, *_kwargs)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/tastypie/resources.py", line 195, in wrapper
response = callback(request, _args, *_kwargs)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/tastypie/resources.py", line 435, in dispatch_detail
return self.dispatch('detail', request, **kwargs)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/tastypie/resources.py", line 458, in dispatch
response = method(request, *_kwargs)
File "/home/pierre/detective/venv/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 "/home/pierre/detective/venv/lib/python2.7/site-packages/tastypie/resources.py", line 1113, in cached_obj_get
cached_bundle = self.obj_get(bundle=bundle, *_kwargs)
File "/home/pierre/detective/app/detective/topics/common/summary.py", line 83, in obj_get
return self.discover_method(request, *_kwargs)
File "/home/pierre/detective/app/detective/topics/common/summary.py", line 64, in discover_method
content = method(kwargs["bundle"], request)
File "/home/pierre/detective/app/detective/topics/common/summary.py", line 224, in summary_mine
matches = connection.cypher(query).to_dicts()
File "/home/pierre/detective/venv/lib/python2.7/site-packages/neo4django/db/init.py", line 115, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/home/pierre/detective/venv/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 "/home/pierre/detective/venv/lib/python2.7/site-packages/neo4django/neo4jclient.py", line 30, in init
super(EnhancedGraphDatabase, self).init(_args, **kwargs)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/neo4jrestclient/client.py", line 84, in init
response, content = Request(**self._auth).get(self.url)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/neo4jrestclient/request.py", line 144, in get
return self._request('GET', url, headers=headers)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/neo4django/db/init.py", line 61, in _request
headers)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/neo4jrestclient/request.py", line 306, in _request
body=body)
File "/home/pierre/detective/venv/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 "/home/pierre/detective/venv/lib/python2.7/site-packages/httplib2/init.py", line 1350, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/pierre/detective/venv/lib/python2.7/site-packages/httplib2/init.py", line 1272, in _conn_request
conn.connect()
File "/home/pierre/detective/venv/lib/python2.7/site-packages/httplib2/init.py", line 928, in connect
raise socket.error, msg
error: [Errno 111] Connection refused
[02/May/2015 07:42:15] "GET /api/detective/common/v1/summary/mine/ HTTP/1.1" 500 17745

Have you ever seen this issue?
What can I do?

Sincerely

@pirhoo
Copy link
Collaborator

pirhoo commented May 7, 2015

Hi,

could you give me more information about your Neo4j setup? It looks like it's the problem here...

Best

@Free16t
Copy link
Author

Free16t commented May 11, 2015

Hi,

Well my Neo4j setup is linked to the install by the Makefile. I did nothing specific.

Sincerely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants