Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      OpenProject ID Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Error when installing on Debian 7.1 32bit

Error when installing on Debian 7.1 32bit

Added by William Leverich almost 12 years ago

Hi,

I am attempting to install on Debian 7.1 but am getting an error during the “bundle install —without rmagick” step. It throws the error when attempting to install debug_inspector (0.0.2). I have attached a screen shot of the error.

Any help would be greatly appreciated.

Thanks!!


Replies (9)

RE: Error when installing on Debian 7.1 32bit - Added by Martin Czuchra almost 12 years ago

Hi William,

you need to install build tools on your machine. This link might help;
http://www.cyberciti.biz/faq/debian-linux-install-gnu-gcc-compiler/

Good luck!

RE: Error when installing on Debian 7.1 32bit - Added by William Leverich almost 12 years ago

Thanks!!

That worked great. Was able to get everything installed but when I try and start the server using “ruby rails s”, it seems to crash. I have attached a screenshot.

RE: Error when installing on Debian 7.1 32bit - Added by Martin Czuchra almost 12 years ago

What does your database.yml look like?

RE: Error when installing on Debian 7.1 32bit - Added by William Leverich almost 12 years ago

# MySQL (default setup).

production:
  adapter: mysql2
  database: openproject
  host: localhost
  username: root
  password: 1234
  encoding: utf8

development:
  adapter: mysql2
  database: openproject_development
  host: localhost
  username: root
  password: 1234
  encoding: utf8

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql2
  database: openproject_test
  host: localhost
  username: root
  password: 1234
  encoding: utf8

test_pgsql:
  adapter: postgresql
  encoding: unicode
  database: openproject_test
  pool: 5
  username: openproject
  password:

#test_sqlite3:
  #adapter: sqlite3
  #database: db/test.sqlite3

RE: Error when installing on Debian 7.1 32bit - Added by William Leverich almost 12 years ago

Actually, just noticed it was failing on the rake db:create:all…..

root@ehim:/openproject# rake db:create:all --trace
require 'rails/all'... 0.600s
Bundler.require... 4.800s
** Invoke db:create:all (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create:all
rake aborted!
can't convert Fixnum into String
/var/lib/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect'
/var/lib/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:120:in `rescue in create_database'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:85:in `create_database'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:52:in `block (5 levels) in <top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:184:in `local_database?'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:52:in `block (4 levels) in <top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:38:in `each_value'
/var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:38:in `block (3 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/var/lib/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:create:all
root@ehim:/openproject# 

RE: Error when installing on Debian 7.1 32bit - Added by Martin Czuchra almost 12 years ago

I think this is a yml issue with the password. 1234 is interpreted as a number, not a string. Could you try putting it in double quotes or something? Like this:

development:
adapter: mysql2
database: openproject_development
host: localhost
username: root
password: "1234"
encoding: utf8

RE: Error when installing on Debian 7.1 32bit - Added by Martin Czuchra almost 12 years ago

I also took the liberty to reformat your pasted database.yml and stack trace into pre-blocks.

RE: Error when installing on Debian 7.1 32bit - Added by William Leverich almost 12 years ago

That fixed everything, it’s up and running great now….

Thanks for all your help!!

RE: Error when installing on Debian 7.1 32bit - Added by Martin Czuchra almost 12 years ago

Great. Enjoy!

  • (1 - 9/9)
Loading...