Project

General

Profile

Error in Starting Redmine: (Errno::ENOENT)

Added by Kagan Turgut over 14 years ago

I had successfully installed Redmine 0.8.4 on ubuntu 2.6.28-11-generic following these instructions:
http://www.redmine.org/wiki/redmine/RedmineInstall

It worked fine, until we realised we can't attach files in Files tab. After some research, I setup 'Version' for my Project/Settings tab and try to restart the server, thinking it would workaround the issue.

Now: I am getting the following error when i start redmine:
-----------------------------------------------------------------------------------------
root@storm:/srv/www/redmine-0.8.4# ruby script/server webrick e -d production
=> Booting WEBrick...
/srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:309:in `read': No such file or directory - /srv/www/redmine-0.8.4/
config/environments/-d.rb (Errno::ENOENT)
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:309:in `load_environment'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warn
ings'
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:302:in `load_environment'
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:121:in `process'
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:97:in `send'
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:97:in `run'
from /srv/www/redmine-0.8.4/config/environment.rb:20
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/commands/servers/webrick.rb:59
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/commands/server.rb:39
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
----------------------------------------------------------------------------------------

I am new to redmine and ruby and would appreciate some guidance,

Kagan


Replies (2)

RE: Error in Starting Redmine: (Errno::ENOENT) - Added by Andrew Leaf over 14 years ago

Hi Kagan,

Check out this link:

[[http://www.ruby-forum.com/topic/80494]]

It appears that other people have had similar ruby problems.

Good luck,

Andrew

RE: Error in Starting Redmine: (Errno::ENOENT) - Added by Mischa The Evil over 14 years ago

Kagan Turgut wrote:

It worked fine, until we realised we can't attach files in Files tab. After some research, I setup 'Version' for my Project/Settings tab and try to restart the server, thinking it would workaround the issue.

Now: I am getting the following error when i start redmine:

root@storm:/srv/www/redmine-0.8.4# ruby script/server webrick -e -d production
 => Booting WEBrick...
/srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:309:in `read': No such file or directory - /srv/www/redmine-0.8.4/config/environments/-d.rb (Errno::ENOENT)
        from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:309:in `load_environment'
        from /srv/www/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:302:in `load_environment'
        from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:121:in `process'
        from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:97:in `send'
        from /srv/www/redmine-0.8.4/vendor/rails/railties/lib/initializer.rb:97:in `run'
        from /srv/www/redmine-0.8.4/config/environment.rb:20
        [...]
[...]

Andrew Leaf wrote:

Check out this link:

[[http://www.ruby-forum.com/topic/80494]]

It appears that other people have had similar ruby problems.

Andrew Ness: In this case the referenced thread isn't related afaics. The way Kagan is trying to start the server (in this case WEBrick) seems more likely the cause of the error...

Kagan Turgut: You are using faulty syntax in the command used to startup your server. Instead of:

/srv/www/redmine-0.8.4# ruby script/server webrick -e -d production
you should use:
/srv/www/redmine-0.8.4# ruby script/server webrick -d -e production

Seems you've switched the parameters. -d forces the server to start in daemon-mode. -e [environment] forces the server to start in a specific Rails environment (mostly production or development). You were actually trying to start the server in the environment called -d, which is obviously faulty.

Kind regards,

Mischa.

    (1-2/2)