Use of sqlite for *build* only?

My site: https://www.incomebyzipcode.com
SSG: Jekyll

I’d like to use Sqlite as my datastore for a Jekyll site. To be clear, I’m not using sqlite to make anything dynamic. It’s JUST the data store to generate 100% static pages. Like you’d use a CSV. For reasons I’d prefer to use sqlite. Is this possible? for just the build stage? The sqlite3 gem and the sequel gem install just fine, but when the Sequel gem tries to open the file, it returns a SQLite3::NotADatabaseException: file is not a database (Sequel::DatabaseError).

4:27:13 PM: Build ready to start
4:27:25 PM: build-image version: 2d975aac035b49faec3566497e1a23664999ac04 (focal)
4:27:25 PM: build-image tag: v4.7.0
4:27:25 PM: buildbot version: 51f079eb2b8422b2dd4a536784559216feb9524d
4:27:25 PM: Building without cache
4:27:25 PM: Starting to prepare the repo for build
4:27:25 PM: Netlify Large Media is enabled, running git commands with GIT_LFS_SKIP_SMUDGE=1
4:27:25 PM: No cached dependencies found. Cloning fresh repo
4:27:25 PM: git clone https://github.com/CubitHQ/cumulo
4:27:30 PM: Preparing Git Reference pull/13/head
4:27:30 PM: Parsing package.json dependencies
4:27:31 PM: Starting build script
4:27:31 PM: Installing dependencies
4:27:31 PM: Python version set to 2.7
4:27:32 PM: Downloading and installing node v15.12.0...
4:27:32 PM: Downloading https://nodejs.org/dist/v15.12.0/node-v15.12.0-linux-x64.tar.xz...
4:27:33 PM: Computing checksum with sha256sum
4:27:33 PM: Checksums matched!
4:27:35 PM: Now using node v15.12.0 (npm v7.6.3)
4:27:35 PM: Started restoring cached build plugins
4:27:35 PM: Finished restoring cached build plugins
4:27:36 PM: Required ruby-3.0.2 is not installed.
4:27:36 PM: To install do: 'rvm install "ruby-3.0.2"'
4:27:36 PM: Attempting ruby version 3.0.2, read from .ruby-version file
4:27:36 PM: Required ruby-3.0.2 is not installed - installing.
4:27:37 PM: Searching for binary rubies, this might take some time.
4:27:38 PM: Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.0.2.tar.bz2
4:27:38 PM: Checking requirements for ubuntu.
4:27:38 PM: Requirements installation successful.
4:27:39 PM: ruby-3.0.2 - #configure
4:27:39 PM: ruby-3.0.2 - #download
4:27:40 PM: No checksum for downloaded archive, recording checksum in user configuration.
4:27:40 PM: ruby-3.0.2 - #validate archive
4:27:46 PM: ruby-3.0.2 - #extract
4:27:48 PM: ruby-3.0.2 - #validate binary
4:27:49 PM: ruby-3.0.2 - #setup
4:27:49 PM: ruby-3.0.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-3.0.2@global
4:27:49 PM: ruby-3.0.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
4:27:50 PM: ruby-3.0.2 - #generating global wrappers........
4:27:50 PM: ruby-3.0.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-3.0.2
4:27:50 PM: ruby-3.0.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
4:27:51 PM: ruby-3.0.2 - #generating default wrappers........
4:27:51 PM: Using /opt/buildhome/.rvm/gems/ruby-3.0.2
4:27:51 PM: Using ruby version 3.0.2
4:27:51 PM: Using bundler version 2.2.22 from Gemfile.lock
4:27:52 PM: Using PHP version 8.0
4:27:52 PM: Started restoring cached ruby gems
4:27:52 PM: Finished restoring cached ruby gems
4:27:52 PM: Installing gem bundle
4:27:52 PM: [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path '/opt/build/cache/bundle'`, and stop using this flag
4:27:52 PM: [DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs --all`
4:27:54 PM: Fetching gem metadata from https://rubygems.org/..........
4:27:54 PM: Resolving dependencies...
4:27:54 PM: Using bundler 2.2.22
4:27:54 PM: Fetching concurrent-ruby 1.1.10
4:27:54 PM: Fetching eventmachine 1.2.7
4:27:54 PM: Fetching ffi 1.15.5
4:27:54 PM: Fetching colorator 1.1.0
4:27:54 PM: Fetching http_parser.rb 0.8.0
4:27:54 PM: Fetching public_suffix 4.0.6
4:27:54 PM: Fetching forwardable-extended 2.6.0
4:27:54 PM: Fetching rb-fsevent 0.11.1
4:27:54 PM: Installing forwardable-extended 2.6.0
4:27:54 PM: Fetching rexml 3.2.5
4:27:54 PM: Installing public_suffix 4.0.6
4:27:54 PM: Installing colorator 1.1.0
4:27:54 PM: Installing rb-fsevent 0.11.1
4:27:54 PM: Installing eventmachine 1.2.7 with native extensions
4:27:54 PM: Fetching liquid 4.0.3
4:27:54 PM: Installing rexml 3.2.5
4:27:54 PM: Installing http_parser.rb 0.8.0 with native extensions
4:27:54 PM: Installing liquid 4.0.3
4:27:54 PM: Installing concurrent-ruby 1.1.10
4:27:54 PM: Fetching mercenary 0.4.0
4:27:54 PM: Installing ffi 1.15.5 with native extensions
4:27:54 PM: Fetching rouge 3.28.0
4:27:54 PM: Installing mercenary 0.4.0
4:27:55 PM: Fetching safe_yaml 1.0.5
4:27:55 PM: Fetching unicode-display_width 1.8.0
4:27:55 PM: Installing safe_yaml 1.0.5
4:27:55 PM: Installing unicode-display_width 1.8.0
4:27:55 PM: Installing rouge 3.28.0
4:27:55 PM: Fetching sequel 5.54.0
4:27:55 PM: Fetching sqlite3 1.4.2
4:27:55 PM: Fetching pathutil 0.16.2
4:27:55 PM: Installing sqlite3 1.4.2 with native extensions
4:27:55 PM: Installing sequel 5.54.0
4:27:55 PM: Installing pathutil 0.16.2
4:27:55 PM: Fetching addressable 2.8.0
4:27:55 PM: Fetching kramdown 2.3.2
4:27:55 PM: Installing addressable 2.8.0
4:27:55 PM: Installing kramdown 2.3.2
4:27:56 PM: Fetching terminal-table 2.0.0
4:27:56 PM: Installing terminal-table 2.0.0
4:27:56 PM: Fetching i18n 1.10.0
4:27:56 PM: Installing i18n 1.10.0
4:27:58 PM: Fetching kramdown-parser-gfm 1.1.0
4:27:58 PM: Installing kramdown-parser-gfm 1.1.0
4:28:11 PM: Fetching sassc 2.4.0
4:28:11 PM: Fetching rb-inotify 0.10.1
4:28:11 PM: Installing rb-inotify 0.10.1
4:28:11 PM: Fetching listen 3.7.1
4:28:11 PM: Installing sassc 2.4.0 with native extensions
4:28:11 PM: Installing listen 3.7.1
4:28:11 PM: Fetching jekyll-watch 2.2.1
4:28:11 PM: Installing jekyll-watch 2.2.1
4:28:15 PM: Fetching em-websocket 0.5.3
4:28:15 PM: Installing em-websocket 0.5.3
4:29:24 PM: Fetching jekyll-sass-converter 2.2.0
4:29:24 PM: Installing jekyll-sass-converter 2.2.0
4:29:24 PM: Fetching jekyll 4.2.2
4:29:24 PM: Installing jekyll 4.2.2
4:29:24 PM: Fetching jekyll-include-cache 0.2.1
4:29:24 PM: Fetching jekyll-seo-tag 2.8.0
4:29:24 PM: Installing jekyll-seo-tag 2.8.0
4:29:24 PM: Installing jekyll-include-cache 0.2.1
4:29:24 PM: Bundle complete! 5 Gemfile dependencies, 32 gems now installed.
4:29:24 PM: Bundled gems are installed into `/opt/build/cache/bundle`
4:29:25 PM: Gem bundle installed
4:29:25 PM: No npm workspaces detected
4:29:25 PM: Started restoring cached node modules
4:29:25 PM: Finished restoring cached node modules
4:29:25 PM: Installing NPM modules using NPM version 7.6.3
4:29:26 PM: added 20 packages, and audited 21 packages in 652ms
4:29:26 PM: 2 packages are looking for funding
4:29:26 PM:   run `npm fund` for details
4:29:26 PM: 1 moderate severity vulnerability
4:29:26 PM: To address all issues, run:
4:29:26 PM:   npm audit fix
4:29:26 PM: Run `npm audit` for details.
4:29:26 PM: NPM modules installed
4:29:26 PM: Started restoring cached go cache
4:29:26 PM: Finished restoring cached go cache
4:29:26 PM: Installing Go version 1.14.4
4:29:31 PM: unset GOOS;
4:29:31 PM: unset GOARCH;
4:29:31 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64';
4:29:31 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64/bin:${PATH}";
4:29:31 PM: go version >&2;
4:29:31 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.14.4.linux.amd64.env"
4:29:31 PM: go version go1.14.4 linux/amd64
4:29:31 PM: Installing missing commands
4:29:31 PM: Verify run directory
4:29:32 PM: ​
4:29:32 PM: ────────────────────────────────────────────────────────────────
4:29:32 PM:   Netlify Build                                                 
4:29:32 PM: ────────────────────────────────────────────────────────────────
4:29:32 PM: ​
4:29:32 PM: ❯ Version
4:29:32 PM:   @netlify/build 26.5.1
4:29:32 PM: ​
4:29:32 PM: ❯ Flags
4:29:32 PM:   baseRelDir: true
4:29:32 PM:   buildId: 6244cb310747bc1b0e0b4849
4:29:32 PM:   deployId: 6244cb310747bc1b0e0b484b
4:29:32 PM: ​
4:29:32 PM: ❯ Current directory
4:29:32 PM:   /opt/build/repo
4:29:32 PM: ​
4:29:32 PM: ❯ Config file
4:29:32 PM:   /opt/build/repo/netlify.toml
4:29:32 PM: ​
4:29:32 PM: ❯ Context
4:29:32 PM:   deploy-preview
4:29:32 PM: ​
4:29:32 PM: ────────────────────────────────────────────────────────────────
4:29:32 PM:   1. Build command from Netlify app                             
4:29:32 PM: ────────────────────────────────────────────────────────────────
4:29:32 PM: ​
4:29:32 PM: $ bundle exec jekyll build; purgecss -c purgecss.config.js
4:29:33 PM: Configuration file: /opt/build/repo/_config.yml
4:29:33 PM:                     ------------------------------------------------
4:29:33 PM:       Jekyll 4.2.2   Please append `--trace` to the `build` command 
4:29:33 PM:                      for any additional information or backtrace. 
4:29:33 PM:                     ------------------------------------------------
4:29:33 PM: /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `initialize': SQLite3::NotADatabaseException: file is not a database (Sequel::DatabaseError)
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `new'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `prepare'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:336:in `query'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:199:in `block (2 levels) in _execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/logging.rb:38:in `log_connection_yield'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:199:in `block in _execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/connection_pool/threaded.rb:88:in `hold'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/connecting.rb:269:in `synchronize'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:192:in `_execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:139:in `execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:1093:in `execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:325:in `fetch_rows'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:152:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:86:in `columns!'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:76:in `columns'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:242:in `columns'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:786:in `block (2 levels) in get_db_schema'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:685:in `block in check_non_connection_error'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/transactions.rb:201:in `block in transaction'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/connecting.rb:269:in `synchronize'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/transactions.rb:195:in `transaction'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:685:in `check_non_connection_error'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:786:in `block in get_db_schema'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:819:in `get_db_schema'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:606:in `set_dataset'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:867:in `inherited'
	from /opt/build/repo/_plugins/geo_generator.rb:7:in `<module:GeoGenerator>'
	from /opt/build/repo/_plugins/geo_generator.rb:1:in `<top (required)>'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:60:in `require'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:60:in `block in require_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:57:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:89:in `block in require_plugin_files'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:87:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:87:in `require_plugin_files'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:21:in `conscientious_require'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:131:in `setup'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:36:in `initialize'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:30:in `new'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:30:in `process'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/exe/jekyll:15:in `<top (required)>'
	from /opt/build/cache/bundle/ruby/3.0.0/bin/jekyll:23:in `load'
	from /opt/build/cache/bundle/ruby/3.0.0/bin/jekyll:23:in `<main>'
	from /opt/buildhome/.rvm/rubies/ruby-3.0.2/bin/ruby_executable_hooks:22:in `eval'
	from /opt/buildhome/.rvm/rubies/ruby-3.0.2/bin/ruby_executable_hooks:22:in `<main>'
/opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `initialize': file is not a database (SQLite3::NotADatabaseException)
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `new'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `prepare'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:336:in `query'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:199:in `block (2 levels) in _execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/logging.rb:38:in `log_connection_yield'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:199:in `block in _execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/connection_pool/threaded.rb:88:in `hold'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/connecting.rb:269:in `synchronize'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:192:in `_execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:139:in `execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:1093:in `execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/adapters/sqlite.rb:325:in `fetch_rows'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:152:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:86:in `columns!'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/dataset/actions.rb:76:in `columns'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:242:in `columns'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:786:in `block (2 levels) in get_db_schema'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:685:in `block in check_non_connection_error'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/transactions.rb:201:in `block in transaction'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/connecting.rb:269:in `synchronize'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/database/transactions.rb:195:in `transaction'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:685:in `check_non_connection_error'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:786:in `block in get_db_schema'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:819:in `get_db_schema'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:606:in `set_dataset'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/sequel-5.54.0/lib/sequel/model/base.rb:867:in `inherited'
	from /opt/build/repo/_plugins/geo_generator.rb:7:in `<module:GeoGenerator>'
	from /opt/build/repo/_plugins/geo_generator.rb:1:in `<top (required)>'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:60:in `require'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:60:in `block in require_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:57:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:89:in `block in require_plugin_files'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:87:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:87:in `require_plugin_files'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:21:in `conscientious_require'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:131:in `setup'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:36:in `initialize'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:30:in `new'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:30:in `process'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
	from /opt/build/cache/bundle/ruby/3.0.0/gems/jekyll-4.2.2/exe/jekyll:15:in `<top (required)>'
	from /opt/build/cache/bundle/ruby/3.0.0/bin/jekyll:23:in `load'
	from /opt/build/cache/bundle/ruby/3.0.0/bin/jekyll:23:in `<main>'
	from /opt/buildhome/.rvm/rubies/ruby-3.0.2/bin/ruby_executable_hooks:22:in `eval'
	from /opt/buildhome/.rvm/rubies/ruby-3.0.2/bin/ruby_executable_hooks:22:in `<main>'
​
4:29:33 PM: (build.command completed in 791ms)
4:29:33 PM: ​
4:29:33 PM: ────────────────────────────────────────────────────────────────
4:29:33 PM:   2. Deploy site                                                
4:29:33 PM: ────────────────────────────────────────────────────────────────
4:29:33 PM: ​
4:29:33 PM: ​
4:29:33 PM: ────────────────────────────────────────────────────────────────
4:29:33 PM:   Configuration error                                           
4:29:33 PM: ────────────────────────────────────────────────────────────────
4:29:33 PM: ​
4:29:33 PM:   Error message
4:29:33 PM:   Deploy did not succeed: Deploy directory '_site' does not exist
4:29:33 PM: ​
4:29:33 PM:   Resolved config
4:29:33 PM:   build:
4:29:33 PM:     command: bundle exec jekyll build; purgecss -c purgecss.config.js
4:29:33 PM:     commandOrigin: ui
4:29:33 PM:     environment:
4:29:33 PM:       - NETLIFY_LFS_ORIGIN_URL
4:29:33 PM:       - NODE_VERSION
4:29:33 PM:       - REVIEW_ID
4:29:33 PM:     publish: /opt/build/repo/_site
4:29:33 PM:     publishOrigin: ui
4:29:34 PM: Caching artifacts
4:29:34 PM: Started saving ruby gems
4:29:34 PM: Finished saving ruby gems
4:29:34 PM: Started saving node modules
4:29:34 PM: Finished saving node modules
4:29:34 PM: Started saving build plugins
4:29:34 PM: Finished saving build plugins
4:29:34 PM: Started saving pip cache
4:29:34 PM: Finished saving pip cache
4:29:34 PM: Started saving emacs cask dependencies
4:29:34 PM: Finished saving emacs cask dependencies
4:29:34 PM: Started saving maven dependencies
4:29:34 PM: Finished saving maven dependencies
4:29:34 PM: Started saving boot dependencies
4:29:34 PM: Finished saving boot dependencies
4:29:34 PM: Started saving rust rustup cache
4:29:34 PM: Finished saving rust rustup cache
4:29:34 PM: Started saving go dependencies
4:29:35 PM: Finished saving go dependencies
4:29:36 PM: Cached ruby version 3.0.2
4:29:36 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:29:36 PM: Creating deploy upload records
4:29:36 PM: Failing build: Failed to build site
4:29:37 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:29:37 PM: Finished processing build request in 2m12.110559069s

hi there, thanks for writing in.

just making sure i understand correctly, you are hoping to poll a database (using sqlite) during your build step and grab some data that you then bake into your pages to deploy a static site?

if thats a correct summary, let me know - i’m going to go ask around a bit!

Yes. We use Jekyll and have a custom page generator plugin. We’d rather use sqlite (via the sequel gem) than a CSV.

Thanks!!!

Hi, @antm. Using SQLite during the build definitely should work. The error above is saying the file used isn’t a database. This could be because the file is corrupted or even because the file is empty. It could also be because you are trying to write to a directory where you do not have permission.

Your repo is private though so I cannot see what file or directory is being used.

One other thing to consider is that the filename used may work for you locally but not at Netlify due to case-sensitivity issues.

Our build system is Linux. Linux will treat database.sqlite and Database.sqlite as two distinct filenames. If you name the file database.sqlite and try to open it as Database.sqlite, this will fail on Linux.

MacOS (and Windows too I think) will treat database.sqlite and Database.sqlite as the same file. So, making sure the Ruby code and the filename on disk match their letter case exactly might fix this.

If that doesn’t fix it or if there are other questions, @antm, please let us know.

1 Like

That’s great news. I found a clue as to what might be the issue for me. My SQLite db is 300+ MB.

  • Netlify Large Media is intended for files up to 100 MB in size.

Hi, @antm. If you are using Large Media the file won’t exist in the build system at all during the build. This is covered in the limitations section of the Large Media documentation, quoted below:

  • Files tracked with Large Media are uploaded directly to the Netlify Large Media storage service on push, completely bypassing the site build. This saves build time, but also means that the files are not available to tools that process asset files during the build, such as Hugo’s image processing or the gatsby-image plugin. Depending on your needs, you may be able to replace this functionality with Netlify’s image transformation service.

If you need to access the file during the build then you cannot use the Large Media feature.

If there are other questions about this, please let us know.