appscot / sails-orientdb

OrientDB adapter for Waterline / Sails.js ORM
MIT License
25 stars 23 forks source link

Connection Problem #132

Closed nomi-ramzan closed 9 years ago

nomi-ramzan commented 9 years ago

Hi Why we need internet connection to connect with orientDB ( running local ) ? If u put offline your computer then you can not connect to orientdb even if it is running on same machine.

dmarcelino commented 9 years ago

Hi @nomi-ramzan, I've just tried running an application that connects to orientdb on my machine, offline, and everything worked. Can you share your logs?

nomi-ramzan commented 9 years ago

Here is log. if system is connected with wifi/lan then its working fine. otherwise i am getting this error on win 8 OS.

Unhandled rejection OrientDB.ConnectionError [ENOENT]: getaddrinfo ENOENT at Connection.<anonymous> (D:\WorkingDIR\modules\combine_app\node_modules\sa ils-orientdb\node_modules\oriento\lib\transport\binary\connection.js:166:14) at Socket.g (events.js:199:16) at Socket.emit (events.js:107:17) at net.js:950:16 at process._tickCallback (node.js:355:11)

dmarcelino commented 9 years ago

Can you share your configuration?

nomi-ramzan commented 9 years ago

Here are configurations which I am using

var orientAdapter = require('sails-orientdb'); var config = {adapters: {'default': orientAdapter,orient: orientAdapter,},connections: {myLocalOrient: {adapter: 'orient',host: 'localhost',port:2424,user: 'root',password: 'root',database: 'db_final'}},defaults: {migrate: 'safe'}};

dmarcelino commented 9 years ago

I can't think of a reason why you are experiencing that issue but I don't think it's being caused by sails-orientdb. It's probably worth asking the OrientDB folks about it.

nomi-ramzan commented 9 years ago

I also have the same ide. this problem is maybe due to oriento. can you please tell me your oriento version.

dmarcelino commented 9 years ago

1.2.0

nomi-ramzan commented 9 years ago

I am using 1.1.3. If I will update just oriento only. Is there any problem with sails-orientdb package ?

dmarcelino commented 9 years ago

No.

nomi-ramzan commented 9 years ago

Thank you

dmarcelino commented 9 years ago

Closing this as inactive, please re-open if you feel otherwise

ghost commented 7 years ago

I got same problem

ghost commented 7 years ago

Previously I had Ubuntu 15.10 there is no problem I can run sails with Internet and without also But when I shift to Windows 7 there is a problem Connection error in sails orientdb

dmarcelino commented 7 years ago

Hi @joovin, I don't have a windows PC to test this. Have you tried connecting to OrientDB using only Oriento/OrientJS to see if the problem lies there? Which version of OrientDB are you using?