Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2046

Closed
Open
Created Nov 22, 2012 by Administrator@rootOwner

Gemfile missing sqlite3 ref: upgrade from 3.0 to 3.1 fails

Created by: mkarau

The Gemfile contains a reference to sqlite instead of sqlite3.

Original Gemfile snippet(Fails):

# Supported DBs
gem "sqlite3", group: :sqlite
gem "mysql2", group: :mysql
gem "pg", group: :postgres

This causes the following step in the upgrade to fail.

# Migrate db
sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production

Fails with:

rake aborted!
Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/sqlite3_adapter.rb:3:in `<top (required)>'
....
....

Modified Gemfile snippet (Sucessfully Builds):

# Supported DBs
gem "sqlite3", group: :sqlite3
gem "mysql2", group: :mysql
gem "pg", group: :postgres
Assignee
Assign to
Time tracking