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

unable to connect godaddy server to grapheenDB #79

Closed
pavan2540 opened this issue May 31, 2016 · 6 comments
Closed

unable to connect godaddy server to grapheenDB #79

pavan2540 opened this issue May 31, 2016 · 6 comments

Comments

@pavan2540
Copy link

Hi, i have use Neoxygen\NeoClient in my project , the code and website is hosted in godaddy, now i want to config from godaddy to grapheendb db .. im getting the error while connecting ...can u please help me out...

my config file code looks like this in godaddy

addConnection('default', **'http',** 'tobotob.sb02.stations.graphenedb.com', 24789, true, 'tobotob', 'TNhMM7Oec6X6YQ6DUqTO') ->setDefaultTimeout(20) ->setAutoFormatResponse(true) -> build(); ?>

below one is the error im getting

Fatal error: Uncaught exception 'Neoxygen\NeoClient\Exception\HttpException' with message 'Error on Connection "default" with message "cURL error 7: Failed to connect to tobotob.sb02.stations.graphenedb.com port 24789: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)"' in /home/balavariyam/public_html/php/vendor/neoxygen/neoclient/src/EventListener/HttpRequestEventSubscriber.php:74 Stack trace: #0 [internal function]: Neoxygen\NeoClient\EventListener\HttpRequestEventSubscriber->onHttpException(Object(Neoxygen\NeoClient\Event\HttpExceptionEvent), 'neoclient.http_...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #1 /home/balavariyam/public_html/php/vendor/symfony/event-dispatcher/EventDispatcher.php(181): call_user_func(Array, Object(Neoxygen\NeoClient\Event\HttpExceptionEvent), 'neoclient.http_...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #2 /home/balavariyam/public_html/php/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfo in /home/balavariyam/public_html/php/vendor/neoxygen/neoclient/src/EventListener/HttpRequestEventSubscriber.php on line 74

@ikwattro
Copy link
Member

There should be an issue with the connection uri you are providing.

My graphenedb account uris are ending with /db/data, please check yours.

In case of doubt, send me a screenshot of your graphenedb connection screen privately to

christophe at graphaware dot com

@ikwattro
Copy link
Member

@pavan2540 In the meantime, this library is supported only for bug fixes, I highly recommend you upgrade to https://github.com/graphaware/neo4j-php-client where I ported the library.

@pavan2540
Copy link
Author

hi sir, the same code im able to connecting from my system local to grapheenDB, but from godaddy to grapheenDB .. i'm gettin this issue

@graphaware-bot
Copy link

Ha ok

Check that the port used for graphenedb is open for outgoing connections on your godaddy server

Sent from my iPhone

On 31 May 2016, at 18:11, pavan2540 notifications@github.com wrote:

hi sir, the same code im able to connecting from my system local to grapheenDB, but from godaddy to grapheenDB .. i'm gettin this issue


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@pavan2540
Copy link
Author

@ikwattro this is the error msg im getting while doing simple curl call from sharing host server to
grapheenDB ... can u please tell me . what is this error .. and how to resolve it
Stack trace:
#0 [internal function]: Neoxygen\NeoClient\EventListener\HttpRequestEventSubscriber->onHttpException(Object(Neoxygen\NeoClient\Event\HttpExceptionEvent), 'neoclient.http_...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
#1 /home/kiwomqhm/public_html/php/vendor/symfony/event-dispatcher/EventDispatcher.php(181): call_user_func(Array, Object(Neoxygen\NeoClient\Event\HttpExceptionEvent), 'neoclient.http_...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
#2 /home/kiwomqhm/public_html/php/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDis in /home/kiwomqhm/public_html/php/vendor/neoxygen/neoclient/src/EventListener/HttpRequestEventSubscriber.php on line 74

same like earlier , its working form localhost and not from sharing hosting providers like (godaddy,bluhost)

my db config file code looks like

addConnection('default', 'http', 'tobotob.sb02.stations.graphenedb.com', 24789, true, 'tobotob', 'TNhMM7Oec6X6YQ6DUqTO') -> build(); ?>

@ikwattro
Copy link
Member

ikwattro commented Jun 2, 2016

what this command is giving you (run it on your godaddy server !)

telnet tobotob.sb02.stations.graphenedb.com 24789

For me, the port 24789 is not open for outgoing connections from your godaddy server, check the config of your server.

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

3 participants