I have installed Redmine server from Bitnami, version 1.3.2. I'm trying to install the latest XLS Export plugin from Redmine's website. I'm following the steps of Remove plugin folder, put the plugin in the folder, run rake, then restart the server. My issue is when I restart the Redmine server it doesn't come back online.
Here's a copy of the log from Redmine. When I was looking at it, I didn't see anything why the server wouldn't restart
** Daemonized, any open files are closed. Look at tmp/pids/mongrel.3001.pid and log/mongrel.3001.log for info.
** Starting Mongrel listening at 0.0.0.0:3001
** Starting Rails with production environment...
** Mounting Rails at /redmine...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload (without restart). It might not work well.
** Mongrel 1.1.5 available at 0.0.0.0:3001
** Writing PID file to tmp/pids/mongrel.3001.pid
sh: darcs: command not found
sh: hg: command not found
sh: bzr: command not found
** TERM signal received.
** Daemonized, any open files are closed. Look at tmp/pids/mongrel.3001.pid and log/mongrel.3001.log for info.
** Starting Mongrel listening at 0.0.0.0:3001
** Starting Rails with production environment...
** Mounting Rails at /redmine...
/Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport- 2.3.14/lib/active_support/dependencies.rb:443:in `load_missing_constant': Object is not missing constant User! (ArgumentError)
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:124:in `send'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:124:in `const_missing'
from /Applications/redmine-1.3.2-1/apps/redmine/app/models/project.rb:30
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:451:in `load_missing_constant'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:463:in `load_missing_constant'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:122:in `const_missing'
from /Applications/redmine-1.3.2-1/apps/redmine/app/models/query.rb:137
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /Applications/redmine-1.3.2-1/apps/redmine/vendor/plugins/redmine_xls_export/lib/xls_export.rb:2
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /Applications/redmine-1.3.2-1/apps/redmine/vendor/plugins/redmine_xls_export/init.rb:5:in `evaluate_init_rb'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin.rb:158:in `evaluate_init_rb'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin.rb:154:in `evaluate_init_rb'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin.rb:48:in `load'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin/loader.rb:38:in `load_plugins'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin/loader.rb:37:in `each'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin/loader.rb:37:in `load_plugins'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:369:in `load_plugins'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:165:in `process'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
from /Applications/redmine-1.3.2-1/apps/redmine/config/environment.rb:24
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
from /Applications/redmine-1.3.2-1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
from /Applications/redmine-1.3.2-1/ruby/bin/mongrel_rails:19:in `load'
from /Applications/redmine-1.3.2-1/ruby/bin/mongrel_rails:19
(sudo) gem install spreadsheet
make sure that you have install spreadsheet gem successfully.
gem list | grep spreadsheet
If not installed then install it.
(sudo) gem install spreadsheet
Related
RuntimeError with the rails console, rails server works as expected.
I'm using a Mac OSX SL
ruby version ruby 2.2.3p136 (2015-06-17 revision 50924) [i386-darwin10.0]
rails version Rails 4.2.2
If I use bundle console with require_relative 'config/environment.rb' it normally works
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/application.rb:351:in `initialize!': Application has been already initialized. (RuntimeError)
from /users/mario/Sites/store4/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/application.rb:328:in `require_environment!'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:67:in `console'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /users/mario/Sites/store4/bin/rails:8:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `block in load'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
Open your terminal and move to your project directory and run this.
rails console
or if you are already in your project run the same command from there.
iMac-di-Mario:store4 mario$ pwd /Users/mario/Sites/store4 $ rails console
My server was working fine until this happened. Please help me out on this.
I don't know why this error is coming.
=> Booting WEBrick
=> Rails 4.1.8 application starting in development on http://127.0.0.1:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2015-05-25 16:36:06] INFO WEBrick 1.3.1
[2015-05-25 16:36:06] INFO ruby 2.0.0 (2014-11-13) [i386-mingw32]
[2015-05-25 16:36:06] WARN TCPServer Error: Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2)
Uncaught exception: Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2)
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/utils.rb:85:in `initialize'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/utils.rb:85:in `new'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/utils.rb:85:in `block in create_listeners'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/utils.rb:82:in `each'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/utils.rb:82:in `create_listeners'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/server.rb:132:in `listen'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/server.rb:113:in `initialize'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:45:in `initialize'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.5.3/lib/rack/handler/webrick.rb:11:in `new'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.5.3/lib/rack/handler/webrick.rb:11:in `run'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.5.3/lib/rack/server.rb:264:in `start'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.8/lib/rails/commands/server.rb:69:in `start'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:81:in `block in server'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `tap'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `server'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
C:/NEW/newcharityapp5/bin/rails:4:in `require'
C:/NEW/newcharityapp5/bin/rails:4:in `<top (required)>'
Try running WEBrick on other port
Try this in your terminal
rails server -p 3001
This will help
I am having a problem with my Travis build where the build fails with the error The command "bundle exec rake" exited with 1. Here is the build log from Travis. Here is a link to the GitHub repo.
I've tried adding require 'bundler' to my Rakefile as suggested by this question, but that didn't have any effect. I have no problems running bundle exec rake on my local machine and all tests are passing locally.
Here is the backtrace from Travis:
/home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in `rescue in connect': FATAL: role "app" does not exist (ActiveRecord::NoDatabaseError)
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `connect'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:436:in `new_connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:446:in `checkout_new_connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout'
from /home/travis/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'
from /home/travis/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:565:in `retrieve_connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:87:in `connection'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/migration.rb:854:in `needs_migration?'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/migration.rb:397:in `load_schema_if_pending!'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/migration.rb:412:in `block in maintain_test_schema!'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/migration.rb:640:in `suppress_messages'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/migration.rb:417:in `method_missing'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/migration.rb:412:in `maintain_test_schema!'
from /home/travis/build/danielbonnell/app/spec/rails_helper.rb:25:in `<top (required)>'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration.rb:1181:in `block in requires='
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration.rb:1181:in `each'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration.rb:1181:in `requires='
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration_options.rb:110:in `block in process_options_into'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration_options.rb:109:in `each'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration_options.rb:109:in `process_options_into'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/configuration_options.rb:22:in `configure'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:96:in `setup'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:85:in `run'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:70:in `run'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:38:in `invoke'
from /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/exe/rspec:4:in `<main>'
/home/travis/.rvm/rubies/ruby-2.0.0-p598/bin/ruby -I/home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/lib:/home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-support-3.2.2/lib /home/travis/build/danielbonnell/app/vendor/bundle/ruby/2.0.0/gems/rspec-core-3.2.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
The command "bundle exec rake" exited with 1.
Any insight is greatly appreciated.
It turns out the problem was related to the username for the test database in my database.yml file. I opted to not set the username for the test database after looking at this SO question. The build is finally passing. Hopefully this helps someone in the future.
this is the output I get when using the 'rails server'
the page does also not load when trying to access it through Google Chrome, this is on a virtual machine
=> Booting WEBrick
=> Rails 4.1.7 application starting in development on http: //0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:250:in `mkdir': Permission denied # dir_s_mkdir - /home/ubuntu/tracks/tmp (Errno::EACCES)
from /home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:250:in `fu_mkdir'
from /home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:224:in `block (2 levels) in mkdir_p'
from /home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:222:in `reverse_each'
from /home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:222:in `block in mkdir_p'
from /home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:208:in `each'
from /home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:208:in `mkdir_p'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/server.rb:125:in `block in create_tmp_directories'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/server.rb:124:in `each'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/server.rb:124:in `create_tmp_directories'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/server.rb:66:in `start'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:76:in `server'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/railties-4.1.7/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:10:in `require'
from bin/rails:10:in `<main>'
The user you're using to start webrick does not have rights to create a directory under the /home/ubuntu/tracks folder.
Make sure you are either ubuntu or a user that has the same rights as ubuntu.
You can also simply do:
sudo su
su ubuntu
And your shell will be ubuntu.
=> Booting WEBrick
=> Rails 4.0.2 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Rails Error: Unable to access log file. Please ensure that /home/joey/joeyhu.info/log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
Exiting
/home/joey/.rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/server.rb:332:in `initialize': Permission denied # rb_sysopen - /home/joey/joeyhu.info/tmp/pids/server.pid (Errno::EACCES)
from /home/joey/.rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/server.rb:332:in `open'
from /home/joey/.rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/server.rb:332:in `write_pid'
from /home/joey/.rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/server.rb:254:in `start'
from /home/joey/.rvm/gems/ruby-2.1.2/gems/railties-4.0.2/lib/rails/commands/server.rb:84:in `start'
from /home/joey/.rvm/gems/ruby-2.1.2/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top (required)>'
from /home/joey/.rvm/gems/ruby-2.1.2/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap'
from /home/joey/.rvm/gems/ruby-2.1.2/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I am getting an error when try to start rails server. I have a Ubuntu 13.10 on DigitalOcean and installed Rails and Ruby as a user(not with sudo). When I install rails with sudo, I didn't have this issue. How can I fix this?
The error is clear
Unable to access log file. Please ensure that sure /home/joey/joeyhu.info/log/development.log exists
Make the directory accessible using chmod on all folders and files.