Error when trying to start Webrick on Ubuntu 14.04 - ruby-on-rails-4

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.

Related

Failed to fetch manifest with key Deploying to beanstalk with new application version

I'm just started having issues today with deploying a new version of my application to amazon eclastic beanstalk. I've been able to previously successfully applications to this server with no problems, but today i started encountering this error inside of /var/log/eb-commandprocessor.log
[2019-03-28T19:41:08.048Z] WARN [2639] : Failed to fetch manifest with key resources/environments/e-ckucpxbbk5/_runtime/versions/manifest_1553802024849 from elasticbeanstalk-us-west-2-981331869848, reason: Access Denied. Retrying after 1.5171911696026408 seconds.
[2019-03-28T19:41:09.565Z] INFO [2639] : Loading manifest from bucket 'elasticbeanstalk-us-west-2-981331869848' using computed S3 key 'resources/environments/e-ckucpxbbk5/_runtime/versions/manifest_1553802024849'.
[2019-03-28T19:41:09.572Z] WARN [2639] : Failed to fetch manifest with key resources/environments/e-ckucpxbbk5/_runtime/versions/manifest_1553802024849 from elasticbeanstalk-us-west-2-981331869848, reason: Access Denied. Retrying after 6.869582456562737 seconds.
[2019-03-28T19:41:16.442Z] INFO [2639] : Loading manifest from bucket 'elasticbeanstalk-us-west-2-981331869848' using computed S3 key 'resources/environments/e-ckucpxbbk5/_runtime/versions/manifest_1553802024849'.
[2019-03-28T19:41:16.559Z] WARN [2639] : Failed to fetch manifest with key resources/environments/e-ckucpxbbk5/_runtime/versions/manifest_1553802024849 from elasticbeanstalk-us-west-2-981331869848, reason: Access Denied.
[2019-03-28T19:41:16.560Z] ERROR [2639] : Failed to fetch manifest with key resources/environments/e-ckucpxbbk5/_runtime/versions/manifest_1553802024849 from elasticbeanstalk-us-west-2-981331869848, reason: Access Denied. (ElasticBeanstalk::ManifestDownloadError)
at /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/manifest.rb:147:in `rescue in fetch'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/manifest.rb:100:in `fetch'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/manifest.rb:57:in `update_cache'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/command.rb:58:in `load'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/command-processor.rb:134:in `load_command'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/command-processor.rb:66:in `execute!'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/bin/command-processor:45:in `<top (required)>'
from /opt/elasticbeanstalk/lib/ruby/bin/command-processor:23:in `load'
from /opt/elasticbeanstalk/lib/ruby/bin/command-processor:23:in `<main>'
caused by: Access Denied (Aws::S3::Errors::AccessDenied)
at /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/aws-sdk-core/plugins/s3_sse_cpk.rb:18:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/aws-sdk-core/plugins/s3_accelerate.rb:33:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/seahorse/client/plugins/response_target.rb:21:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/seahorse/client/request.rb:70:in `send_request'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.3.0/lib/seahorse/client/base.rb:207:in `block (2 levels) in define_operation_methods'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.3.0/lib/aws-sdk-resources/request.rb:24:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.3.0/lib/aws-sdk-resources/operations.rb:41:in `call'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.3.0/lib/aws-sdk-resources/operation_methods.rb:19:in `block in add_operation'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/manifest.rb:126:in `fetch'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/manifest.rb:57:in `update_cache'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/command.rb:58:in `load'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/command-processor.rb:134:in `load_command'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/lib/elasticbeanstalk/command-processor.rb:66:in `execute!'
from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.2.0/gems/beanstalk-core-2.12/bin/command-processor:45:in `<top (required)>'
from /opt/elasticbeanstalk/lib/ruby/bin/command-processor:23:in `load'
from /opt/elasticbeanstalk/lib/ruby/bin/command-processor:23:in `<main>'
I'm not really sure what has changed, I have not adjusted any security groups related to this application and I can successfully upload the zip file via the beanstalk web GUI. It just seems to fail to deploy with that error log.

Rails server not working showing "TCPServer Error: Only one usage of each socket address (protocol/network address/port) is normally permitted."

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

Travis CI: The command "bundle exec rake" exited with 1

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.

Can't start Rails4 server when rails is installed under a user directory

=> 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.

Unable to restart Redmine Server after installing plugin

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