marianozunino / morpheus

Morpheus is database migration tool for Neo4j written in Typescript.
MIT License
18 stars 4 forks source link

Could not perform discovery. No routing servers available. #22

Closed janhocevar closed 1 year ago

janhocevar commented 1 year ago

When running npm run morpheus migrate with a few migrations in the neo4/migrations folder, I get the following error:

❯ npm run morpheus migrate

> node@1.0.0 morpheus
> morpheus "migrate"

Reading config file...
Could not perform discovery. No routing servers available. Known routing table: RoutingTable[database=default database, expirationTime=0, currentTime=1675349487878, routers=[], readers=[], writers=[]]

My configuration in .morpheus.json is correct since I can connect to Neo4j instance through the app and from node application

{
  "host": "neo4j://localhost",
  "port": 7687,
  "username": "neo4j",
  "password": "test",
  "scheme": "neo4j",
  "migrationsPath": "neo4j/migrations"
}

Any idea what can be done?

marianozunino commented 1 year ago
{
  "host": "localhost", // no need to include the scheme here. Thus why this field is named host and not "connectionString"
  "port": 7687,
  "username": "neo4j",
  "password": "test",
  "scheme": "neo4j", // here's the scheme
  "migrationsPath": "neo4j/migrations"
}
marianozunino commented 1 year ago

Related: https://github.com/marianozunino/morpheus/issues/18

janhocevar commented 1 year ago

Oh sure, works now, thanks!