Closed luke-j closed 8 years ago
Hi Luke, I've just added error logging for opening the LevelDB connection: https://github.com/danburzo/every-street/commit/418fe52f87ac06b4e1067360bf154ef7f040984c That should give us a clue as to what's going on.
The console prints an empty object, {}
, for the err argument and returns. However, the LOG file within the everystreet directory contains:
MANIFEST write: IO error: everystreet: Invalid argument
That error lead me to this issue with levelup, regarding the database being within a synced vagrant folder. Simply moving the folder to another location on the vagrant machine solved the issue.
Thanks for the help!
Ah, I see! :+1:
The command
nodejs tools/load-nodes.js
returns this error:If I
console.log(db)
right here I getundefined
. So the whole levelup callback receives undefined for the database instance.Any clues as to the cause of this?