Greetings folks.
Recently I created a new GRAND Stack project and a new database in Neo4j Desktop 4.1.1. After all download and setup are done and the .env
file updated to reflect user & password, I executed npm start
to up the api. And got these logs entries:
renatospaka@dell-w10home:~/dev/Cursos/neo4j/my-grand-stack$ npm start
> @ start /home/renatospaka/dev/Cursos/neo4j/my-grand-stack
> node scripts/start-dev.js
22:41:12 api |
22:41:12 api | > grand-stack-starter-api@0.0.1 start:dev /home/renatospaka/dev/Cursos/neo4j/my-grand-stack/api
22:41:12 api | > cross-env DEBUG=neo4j-graphql-js ./node_modules/.bin/nodemon --watch src --ext js,graphql --exec babel-node src/index.js
22:41:12 api |
22:41:12 React |
22:41:12 React | > grand-stack-starter-web-react@0.0.1 start /home/renatospaka/dev/Cursos/neo4j/my-grand-stack/web-react
22:41:12 React | > react-scripts start
22:41:12 React |
22:41:13 api | [nodemon] 1.19.4
22:41:13 api | [nodemon] to restart at any time, enter `rs`
22:41:13 api | [nodemon] watching dir(s): src/**/*
22:41:13 api | [nodemon] watching extensions: js,graphql
22:41:13 api | [nodemon] starting `babel-node src/index.js`
22:41:15 React | [HPM] Proxy created: / -> http://localhost:4001/graphql
22:41:15 React | ℹ 「wds」: Project is running at http://172.18.191.63/
22:41:15 React | ℹ 「wds」: webpack output is served from
22:41:15 React | ℹ 「wds」: Content not from webpack is served from /home/renatospaka/dev/Cursos/neo4j/my-grand-stack/web-react/public
22:41:15 React | ℹ 「wds」: 404s will fallback to /
22:41:15 React | Starting the development server...
22:41:15 React |
22:41:16 api | GraphQL server ready at http://0.0.0.0:4001/graphql
22:41:48 api | Database initialization failed to complete
22:41:48 api | Could not perform discovery. No routing servers available. Known routing table: RoutingTable[database=default database, expirationTime=0, currentTime=1599356508672, routers=[], readers=[], writers=[]]
22:41:54 React | Compiled successfully!
22:41:54 React |
22:41:54 React | You can now view grand-stack-starter-web-react in the browser.
22:41:54 React |
22:41:54 React | Local: http://localhost:3000
22:41:54 React | On Your Network: http://172.18.191.63:3000
22:41:54 React |
22:41:54 React | Note that the development build is not optimized.
22:41:54 React | To create a production build, use npm run build.
22:41:54 React |
22:41:58 api | 2020-09-06T01:41:58.313Z neo4j-graphql-js WITH apoc.cypher.runFirstColumn("MATCH (r:Review) WITH r.stars AS stars, COUNT(*) AS count ORDER BY stars RETURN {stars: stars, count: count}", {offset:$offset, first:$first}, True) AS x UNWIND x AS `ratingCount` RETURN `ratingCount` { .stars , .count } AS `ratingCount`
22:41:58 api | 2020-09-06T01:41:58.313Z neo4j-graphql-js {
22:41:58 api | "offset": 0,
22:41:58 api | "first": -1
22:41:58 api | }
22:41:58 api | 2020-09-06T01:41:58.332Z neo4j-graphql-js MATCH (`review`:`Review`) WITH `review` ORDER BY review.date DESC RETURN `review` {user: head([(`review`)<-[:`WROTE`]-(`review_user`:`User`) | `review_user` { .name }]) ,business: head([(`review`)-[:`REVIEWS`]->(`review_business`:`Business`) | `review_business` { .name }]) ,date: { formatted: toString(`review`.date) }, .text , .stars } AS `review` LIMIT toInteger($first)
22:41:58 api | 2020-09-06T01:41:58.333Z neo4j-graphql-js {
22:41:58 api | "offset": 0,
22:41:58 api | "first": 10
22:41:58 api | }
22:41:58 api | 2020-09-06T01:41:58.337Z neo4j-graphql-js WITH apoc.cypher.runFirstColumn("MATCH (u:User) RETURN COUNT(u)", {offset:$offset, first:$first}, True) AS x UNWIND x AS `int` RETURN `int`
22:41:58 api | 2020-09-06T01:41:58.337Z neo4j-graphql-js {
22:41:58 api | "offset": 0,
22:41:58 api | "first": -1
22:41:58 api | }
This entry is the one I'm worried about:
22:41:48 api | Could not perform discovery. No routing servers available. Known routing table: RoutingTable[database=default database, expirationTime=0, currentTime=1599356508672, routers=[], readers=[], writers=[]]
I have three other projects, all of them have the same issue when connecting to the database in Neo4j Desktop and I don't know why. I don't have a clue. I am new to Neo4j. Documentation refers a lot to Linux env, but I am working in a Windows 10 Home + wsl2 env and (in my opinion) this is the problem, although I cannot be sure.
When I installed Neo4j Desktop, I followed all instructions and suggestions during the process. The Desktop itself works fine, I am able to create projects, databases, to import data to them, to execute queries, open in web browsers through http://localhost:7474. Everything just fine but not to connect to an api. At first I thought I was miscoding something but then the same occurred with three projects I'm studying from Neo4 Community Youtube page (I forked the code), including this GRANDStack one which I just executed npx create-grandstack-app <myproject>
.
Neo4j is showing to be tougher than I thought. For now, I'm really thinking of fully remove Neo4j Desktop, it is stressing me instead of helping me...
Well, what should I do?