-
Notifications
You must be signed in to change notification settings - Fork 109
Troubleshooting
An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling.
If you are installing on a system that already has v8 installed then you may need to install the libv8 gem manually using your system's current v8 engine. If you're using homebrew to manage your packages you should run 'brew update' and 'brew upgrade' to make sure you have the latest packages
> gem uninstall -a libv8
> gem install libv8 -v '<<VERSION>>' -- --with-system-v8
> bundle install
Example:
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install pg -v '1.8.3'` succeeds before bundling.
If running the suggested gem installation fails as well, you can try to have bundler update that specific gem.
> bundle update pg
Example:
An error occurred while installing pg (0.19.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.19.0'` succeeds before bundling.
You must install the database you want to use before running bundler!
Follow the installation instructions for the database you prefer to use (note that you may need root access to install these dependencies on your server): MySQL Installation PostgreSQL Installation
If Bundler fails on mysql2 but you're not using MySQL or it fails on pg and you're not using PostgreSQL, just comment out the corresponding gem in the Gemfile and then rerun bundler.
I installed the system and migrated my legacy DMPOnline data into the database but none of my users are able to login!
This happens when the 'pepper' key defined in config/initializers/devise.rb does not match the one on your old server. Simply update the pepper and restart the application.
I am getting an undefined method 'devise' on the app/modles/user.rb object when running tests or trying to start the service.
This happens when you have not created a copy of the devise.rb.example initializer file. To correct it copy the file and update its parameters accordingly:
> cp config/initializers/devise.rb.example config/initializers/devise.rb
This could be due to your test database (SQLite) being out of date. The test database uses the data in db/seeds.rb by default but those records will only be inserted if they do not already exist. So, if an update added/removed a field from a table you may not have data for it in your test database.
Try the following to rebuild your test database:
rake db:drop RAILS_ENV=test
rake db:create RAILS_ENV=test
rake db:schema:load RAILS_ENV=test
rake test
Do NOT forget to include the environment specification!!
- Home
- About
- Development roadmap
- Releases
- Themes
- Google Analytics
- Get involved
- Translations
- Developer guide