Now that you mention it, I don’t think sails-orientdb likes:
“database: 'bGsn’”,
it prefers:
database: {
name: 'aGsn'
}
I remember changing it on my personal fork to enable support for both
formats.
Cheers
On Tuesday, 4 November 2014 22:25:35 UTC, Paolo Di Pietro wrote:
>
> Hi Dário,
>
> Yes, I'm using the 2.0-M2, and now the server is started.
>
> The error was in the config file: I had two connections
>
> someOrientDbServer: {
> adapter: 'sails-orientdb',
> host: 'localhost',
> port: 2424,
> user: 'root',
> password: 'orient',
> database: 'bGsn'
> },
>
> localOrientDB: {
> adapter: 'sails-orientdb',
> user: 'root',
> password: 'orient',
> database: {
> name: 'aGsn'
> }
> }
>
> and it loads up both. Still don't know why, but if I delete one of them
> the server starts correctly and create the database.
>
> The problem is that if I exit and restart sails, it try to create the
> database again, but it fails because the DB already exists.
> But this happens only if I use the someOrientDbServer. With the other one
> it restarts nicely.
>
> I'll let you know my further experiments, as I'm foreseeght other problems.
>
> Anyway, thank you.
> Paolo
>
> Il giorno martedì 4 novembre 2014 23:02:15 UTC+1, Dário Marcelino ha
> scritto:
>>
>> Hey Paolo,
>>
>> I've noticed from your logs that you are using orientdb 2.0-M2. I'm using
>> 1.7.1, not sure if that is the reason why it works for me and not for you...
>>
>> Cheers,
>> Dário
>>
>> On Tuesday, 4 November 2014 21:58:40 UTC, Paolo Di Pietro wrote:
>>>
>>> I tried your suggestion, now it starts but returns the following error:
>>>
>>> Possibly unhandled OrientDB.RequestError: Database named 'bGsn' already
>>> exists: /home/pdipietro/orientdb-community-2.0-M2/databases//bGsn
>>> at Operation.parseError
>>> (/home/pdipietro/ogsn/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol/operation.js:779:13)
>>> at Operation.consume
>>> (/home/pdipietro/ogsn/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol/operation.js:369:35)
>>> at Connection.process
>>> (/home/pdipietro/ogsn/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/connection.js:324:17)
>>> at Connection.handleSocketData
>>> (/home/pdipietro/ogsn/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/connection.js:250:17)
>>> at Socket.emit (events.js:95:17)
>>> at Socket.<anonymous> (_stream_readable.js:764:14)
>>> at Socket.emit (events.js:92:17)
>>> at emitReadable_ (_stream_readable.js:426:10)
>>> at emitReadable (_stream_readable.js:422:5)
>>> at readableAddChunk (_stream_readable.js:165:9)
>>>
>>> Any further idea?
>>>
>>> Paolo
>>>
>>> Il giorno lunedì 3 novembre 2014 19:01:54 UTC+1, Dário Marcelino ha
>>> scritto:
>>>>
>>>> Hi,
>>>>
>>>> I don't use sails but I do use waterline + sails-orientdb with success.
>>>> My config looks like this:
>>>>
>>>> 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: 'gda'
>>>> }
>>>> },
>>>>
>>>> defaults: {
>>>> migrate: 'safe'
>>>> }
>>>> }
>>>>
>>>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.