BlinkTagInc / gtfs-to-html

Build human readable transit timetables as HTML or PDF from GTFS.
https://gtfstohtml.com
MIT License
184 stars 56 forks source link

SQLITE_CANTOPEN: unable to open database file #104

Closed ElegantFx closed 3 years ago

ElegantFx commented 3 years ago

When trying to start the process with gtfs-to-html, this gets returned: Error: SQLITE_CANTOPEN: unable to open database file [ Error: SQLITE_CANTOPEN: unable to open database file ] { errno: 14, code: 'SQLITE_CANTOPEN' }

brendannee commented 3 years ago

Thanks for opening the issue.

This error means that the sqlitePath defined in your config.json isn't valid. Try updating it to a path to a folder that exists with a filename like /tmp/gtfs or ~/Downloads/gtfs (as long as /tmp or ~/Downloads is a valid folder.

I just pushed an update to GTFS-to-HTML version 1.4.8 so that a better error message shows up to hopefully help people avoid this issue in the future.