mapbox / tilelive

fast interface to tiles with pluggable backends - NOT ACTIVELY MAINTAINED
BSD 3-Clause "New" or "Revised" License
532 stars 108 forks source link

Tilelive and sqlite3 error on opening mbtiles file #219

Closed ev0065 closed 4 years ago

ev0065 commented 4 years ago

Hi,

I am working with tilelive to create a server to host my mbtiles. I am following the server code posted on the answer on this post. Currently, I have a mbtiles file called countries.mbtiles and am calling tilelive.load('mbtiles://countries.mbtiles', function( ... ) { ... } ); I have tried the relative and the absolute path for countries.mbtiles, but none work.

I am working on Windows 10. I also have WSL but that was causing too many problems with sqlite3 and node-gyp so I am using pure cmd.

Here is my error when I run the server.js file:

[Error: SQLITE_CANTOPEN: unable to open database file] {
  errno: 14,
  code: 'SQLITE_CANTOPEN'
}

I cannot figure out this error and was hoping for some pointers. Thanks.