veliovgroup / ostrio-Neo4jreactivity

Meteor.js Neo4j database reactivity layer
https://atmospherejs.com/ostrio/neo4jreactivity
BSD 3-Clause "New" or "Revised" License
51 stars 5 forks source link

Exception in callback of async function: Error: Neo4jCacheCollection.upsert #22

Closed snowcxt closed 9 years ago

snowcxt commented 9 years ago

I tried to run the Meteor-Leaderboard-Neo4j (https://github.com/VeliovGroup/Meteor-Leaderboard-Neo4j) example today. However I got an exception: "Exception in callback of async function: Error: Neo4jCacheCollection.upsert:

unnamed

BTW, I'm using windows and install Preview of Meteor on Windows 0.2.8 (https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows).

dr-dimitru commented 9 years ago

Hi @snowcxt , are you sure there is no changes in Meteor-Leaderboard-Neo4j made by you? Also make sure Neo4j is installed, running and available on: localhost:7474

snowcxt commented 9 years ago

Hi folks,

I changed the release file (under Meteor-Leaderboard-Neo4j-master.meteor) from "METEOR@1.0.3.2" to "WINDOWS-PREVIEW@0.2.8" otherwise I can't run the example on my windows box. Is that the reason?

dr-dimitru commented 9 years ago

@snowcxt might be, could you confirm what everything is working now? If so, I'll add this to docs

snowcxt commented 9 years ago

I have to keep using WINDOWS-PREVIEW@0.2.8. If I changed back to "METEOR@1.0.3.2", I'll get: image

dr-dimitru commented 9 years ago

@snowcxt glad you solve it

snowcxt commented 9 years ago

I have not resolved it. I still get same error.

snowcxt commented 9 years ago

Let me explain the issue again. I'm using windows and Preview of Meteor on Windows 0.2.8. When I download the example and run, I got this error: image

So I changed the release file (under Meteor-Leaderboard-Neo4j-master.meteor) from "METEOR@1.0.3.2" to "WINDOWS-PREVIEW@0.2.8"

Then I can run the example, but I got this error then: image

I still don't know to fix this issue.

dr-dimitru commented 9 years ago

@snowcxt Could you please make sure Neo4j is installed, running and available on: localhost:7474 Do you installed Neo4j and started it as described here?

snowcxt commented 9 years ago

Yes, I installed Neo4j and it's running. image

I even can see the initial data in the database

dr-dimitru commented 9 years ago

I'm on Neo4j 2.1.6 - running good, but on linux and mac So, I think it's meteor's windows version issue

snowcxt commented 9 years ago

I guess so. But is it possible to fix this issue for the windows users?

dr-dimitru commented 9 years ago

Wait for stable release

meduza commented 9 years ago

@dr-dimitru Today i upgraded Neo4j to 2.2.0 and get the same issue:

I20150326-09:32:23.996(3)? { [Error: [object Object]]
I20150326-09:32:23.997(3)?   stack: [Getter/Setter],
I20150326-09:32:23.997(3)?   message: { errors: [ [Object] ] },
I20150326-09:32:23.997(3)?   __frame:
I20150326-09:32:23.997(3)?    { name: 'GraphDatabase_prototype_query__20',
I20150326-09:32:23.997(3)?      line: 710,
I20150326-09:32:23.997(3)?      file: 'lib/GraphDatabase._coffee',
I20150326-09:32:23.997(3)?      prev: undefined,
I20150326-09:32:23.997(3)?      calls: 1,
I20150326-09:32:23.997(3)?      active: false,
I20150326-09:32:23.998(3)?      offset: 2,
I20150326-09:32:23.998(3)?      col: 24 },
I20150326-09:32:23.998(3)?   rawStack: [Getter] }
I20150326-09:32:24.315(3)? Exception in callback of async function: Error: Meteor.N4JDB.query: [Meteor.neo4j.run]: Error: [object Object],791a843f33d05a058287de11f6c54a1d263e8cbeeb7f9ecbb17ebba1ceb10e0a,MATCH (u:User {_id: "ajWv4xmfoeQ4kAMwL"})-[:Friends]->(f) WHERE HAS (f._id) RETURN f._id AS ids,,Mon Mar 16 2015 11:20:01 GMT+0300 (MSK) [500]
I20150326-09:32:24.315(3)?     at packages/ostrio:neo4jreactivity/ostrio:neo4jreactivity_driver.js:458:1
I20150326-09:32:24.315(3)?     at packages/ostrio:neo4jreactivity/ostrio:neo4jreactivity_driver.js:12:1
I20150326-09:32:24.315(3)?     at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)

Neo4j 2.1.6 - running good.

dr-dimitru commented 9 years ago

Hi @snowcxt and @meduza I've released new updated and builded for windows version of Driver and Reactivity, could you please check on your end if this release is fix issues you've met (sorry, I don't have enough time for testing)

dr-dimitru commented 9 years ago

@meduza I'll run tests on Neo4j v2.2.0 a bit later on this week.

meduza commented 9 years ago

@dr-dimitru I disabled default Neo4j-2.2.0 authentication and seems it works!

dr-dimitru commented 9 years ago

@meduza sound great! Could you please describe how you've disabled default auth or contribute it to the docs (readme.md) so this knowledge will be available to the community. Also are you on win or Mac?

meduza commented 9 years ago

@dr-dimitru To disable default authentication in Neo4j-2.2.0: open file /Your_Neo4j-2.2.0_install_path/conf/neo4j-server.properties change line: dbms.security.auth_enabled=true (to false)

dr-dimitru commented 9 years ago

@meduza thank you. Added to docs

snowcxt commented 9 years ago

still not working for me. I'm using windows 7 + meteor 1.1 + Neo4j-2.2.0 Community and changed the dbms.security.auth_enabled to false (BTW I changed the neo4j-server.properties file via the options UI) image

Here is what I get: image

meduza commented 9 years ago

@snowcxt Check, can you connect to neo4j webadmin (http://localhost:7474) without authentication?

snowcxt commented 9 years ago

Sorry I'm a newbie of neo4j. Could you tell me how to connect to neo4j webadmin?

dr-dimitru commented 9 years ago

@snowcxt just go to http://localhost:7474 in your browser

snowcxt commented 9 years ago

Yes, I can

dr-dimitru commented 9 years ago

@snowcxt could you try to install everything by instructions and run Meteor-Leaderboard-Neo4j ?

snowcxt commented 9 years ago

I think I've installed everything. I just tried to install everything again but still got the same errors. BTW I'm using meteor 1.1 but your package is meteor 1.0.3.2. I have to run meteor update --release METEOR@1.1 to update the packages.

dr-dimitru commented 9 years ago

@snowcxt nope, current package supports meteor 1.0 and above. Just run meteor update to update meteor and all packages to the latest versions

snowcxt commented 9 years ago

I'm using windows. meteor 1.0 doesn't support windows. Could you update the driver to support meteor 1.1?

dr-dimitru commented 9 years ago

@snowcxt current package supports meteor 1.0 and above

snowcxt commented 9 years ago

I can't run meteor update for windows. Could you update this example to 1.1?

image

dr-dimitru commented 9 years ago

@snowcxt and @meduza I apologize, after digging into the troubleshooting on the Win platform there was incompatibility issue on MongoDB >= 2.6 with dotted keys, fixed in 69fcc535241f34f3e75b875388467f64041f8334 Guys, please update.

@snowcxt thank you, for your help

snowcxt commented 9 years ago

I got a new error when I ran the example:

Your app is crashing. Here's the latest log.

Started MongoDB. Errors prevented startup:

While building the application: node_modules/neo4j/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/cli.js:1:15: Unexpected token ILLEGAL node_modules/neo4j/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/cli.js:1:15: Unexpected token ILLEGAL node_modules/neo4j/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/cli.js:1:15: Unexpected token ILLEGAL node_modules/neo4j/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/run.js:1:15: Unexpected token ILLEGAL node_modules/neo4j/node_modules/request/node_modules/bl/test/sauce.js:1:15: Unexpected token ILLEGAL node_modules\neo4j\node_modules\request\node_modules\node-uuid\test\test.html:1: bad formatting in HTML template

Your application has errors. Waiting for file change.

Screenshot: image

dr-dimitru commented 9 years ago

@snowcxt I'll try tomorrow day on the clean windows setup

dr-dimitru commented 9 years ago

@meduza could you please test new driver and neo4j-leaderboard example on your end?

snowcxt commented 9 years ago

I reinstalled the meteor and downloaded the lastest neo4j-leaderboard example

dr-dimitru commented 9 years ago

@snowcxt does neo4jreactivity driver runs in your project?

snowcxt commented 9 years ago

I used a different computer, updated meteor and download the example. It's working now. Thank you

meduza commented 9 years ago

@dr-dimitru I tested - it works! 👍 (Mac OS X 10.10.2, Neo4j-2.2.0)

http                    1.1.0  Make HTTP calls to remote servers
meteor-platform         1.2.2  Include a standard set of Meteor packages in y...
ostrio:neo4jdriver      0.2.11  Meteor.js node-neo4j wrapper to be used with ...
ostrio:neo4jreactivity  0.6.0  Meteor.js Neo4j database reactivity layer
dr-dimitru commented 9 years ago

Guys, @meduza, @snowcxt, thank you for your time

meduza commented 9 years ago

@dr-dimitru You are welcome! Thank you for the lib!

snowcxt commented 9 years ago

I tested again today. (win 8 + neo4j 2.2). It works.

HunjaeJung commented 9 years ago

That's what I want! Thanks..but we still need to fix the auth problem, right?

dr-dimitru commented 9 years ago

@HunjaeJung should be fixed after stable release of node-neo4j v2

dr-dimitru commented 9 years ago

Hello everyone, Auth exception should be fixed in Neo4jDriver v0.2.12 Please confirm on you end