Project

General

Profile

Installation Problem

Added by Jan Fanslau over 14 years ago

Hi Forum,

first things first:

Ruby version 1.8.6 (i586-linux)
RubyGems version 1.3.5
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Application root /usr/redmine/0.8.4
Environment development
Database adapter mysql

When I run ./dispatch.cgi I get a wonderful html-output, but when i access redmine from the web, I get a file-not-fount-message and the apache-log says: "Premature end of script headers: dispatch.cgi"

I do not know what to do.
What could be the Problem?

best regards
Jan Fanslau


Replies (4)

the first lines of html-output - Added by Jan Fanslau over 14 years ago

Content-Type: text/html; charset=utf-8
Set-Cookie: _session_id=38c572f1d96a9592b1fd6a62dc73d838; path=/
Status: 200 OK
X-Runtime: 0.85325
ETag: "cf5d6fa2b36d54667ca6ab39b995934a"
Cache-Control: private, max-age=0, must-revalidate
Content-Length: 2801

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

RE: Installation Problem - Added by Jan Fanslau over 14 years ago

Hmm nothing happens here? Is it that complicated?

I've tried a lot of things and came my target some milimeters closer... After i've installed passenger i can see the "Application error Rails application failed to start properly"-Site.

the error in my log-file is now:

"Premature end of script headers:"

any suggestions?

Greetz Jan

RE: Installation Problem - Added by Magic Crazy over 14 years ago

I had the same problem, resolved just now.
Dunno if it'll help someone, i hope so ^^
Just installed libfcgi on my server (Ubuntu server edition) :

sudo aptitude install libfcgi libfcgi-dev libfcgi-ruby

then installed fcgi gem :

sudo gem install fcgi

and now, everything works with fcgid =)

RE: Installation Problem - Added by Remo Star over 14 years ago

Jan Fanslau wrote:

Hi Forum,

first things first:

Ruby version 1.8.6 (i586-linux)
RubyGems version 1.3.5
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Application root /usr/redmine/0.8.4
Environment development
Database adapter mysql

When I run ./dispatch.cgi I get a wonderful html-output, but when i access redmine from the web, I get a file-not-fount-message and the apache-log says: "Premature end of script headers: dispatch.cgi"

I do not know what to do.
What could be the Problem?

best regards
Jan Fanslau

I am just starting out on redmine. Some info on what I have installed
so far:

Fedora 11 i386
rails 2.3.4
ruby-1.8.6.369-1.fc11.i586
rubygems-1.3.1-2.fc11.noarch
rubygem-sqlite3-ruby-1.2.4-3.fc11.i586
ruby-glib2-0.19.1-1.fc11.1.i586
ruby-irb-1.8.6.369-1.fc11.i586
ruby-libguestfs-1.0.68-2.fc11.i586
ruby-libs-1.8.6.369-1.fc11.i586
ruby-mode-1.8.6.369-1.fc11.i586
ruby-mysql-2.8-2.fc11.i586
ruby-rdoc-1.8.6.369-1.fc11.i586
ruby-ri-1.8.6.369-1.fc11.i586
ruby-sqlite3-1.2.4-3.fc11.i586
websvn.noarch 0:2.2.1-1.fc11
Database used, and its version: Don't know
Ruby-aware server used: Webrick, Mongrel, Thin, etc: None - I am just starting out.

I have downloaded redmine-0.8.4.tar.gz and I tried to build it.
Since I was not ablt to find any info on how to build it (I googled "how to build redmine", "build redmine", "compile redmine" and none of the
search terms showed me a page of how to build redmine from source tarball.

So, I thought I would try:

rake -f Rakefile

Well, that did not go very far, as the tarball seems to be missing some
files, and seems to need. I also downloaded the svn version. Same problem.

The output of rake f Rakefile
-----------------------------

/usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/enumerations_controller_test.rb" "test/functional/mail_handler_controller_test.rb" "test/functional/issue_categories_controller_test.rb" "test/functional/news_controller_test.rb" "test/functional/issue_relations_controller_test.rb" "test/functional/attachments_controller_test.rb" "test/functional/documents_controller_test.rb" "test/functional/repositories_controller_test.rb" "test/functional/my_controller_test.rb" "test/functional/issues_controller_test.rb" "test/functional/boards_controller_test.rb" "test/functional/trackers_controller_test.rb" "test/functional/application_controller_test.rb" "test/functional/users_controller_test.rb" "test/functional/repositories_mercurial_controller_test.rb" "test/functional/sys_controller_test.rb" "test/functional/queries_controller_test.rb" "test/functional/members_controller_test.rb" "test/functional/roles_controller_test.rb" "test/functional/messages_controller_test.rb" "test/functional/settings_controller_test.rb" "test/functional/timelog_controller_test.rb" "test/functional/watchers_controller_test.rb" "test/functional/custom_fields_controller_test.rb" "test/functional/groups_controller_test.rb" "test/functional/search_controller_test.rb" "test/functional/wiki_controller_test.rb" "test/functional/reports_controller_test.rb" "test/functional/repositories_git_controller_test.rb" "test/functional/journals_controller_test.rb" "test/functional/repositories_bazaar_controller_test.rb" "test/functional/welcome_controller_test.rb" "test/functional/projects_controller_test.rb" "test/functional/repositories_cvs_controller_test.rb" "test/functional/wikis_controller_test.rb" "test/functional/repositories_subversion_controller_test.rb" "test/functional/repositories_darcs_controller_test.rb" "test/functional/workflows_controller_test.rb" "test/functional/admin_controller_test.rb" "test/functional/account_controller_test.rb" "test/functional/versions_controller_test.rb"
(in /sdb3/src/redhat/BUILD/nonrpm/sourcecontrol/redmine)
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:819:in `read': No such file or directory - /sdb3/src/redhat/BUILD/nonrpm/sourcecontrol/redmine/config/database.yml (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:819:in `database_configuration'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:391:in `initialize_database'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:139:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
from /sdb3/src/redhat/BUILD/nonrpm/sourcecontrol/redmine/config/environment.rb:20
from ./test/functional/../test_helper.rb:19:in `require'
from ./test/functional/../test_helper.rb:19
from ./test/functional/enumerations_controller_test.rb:18:in `require'
from ./test/functional/enumerations_controller_test.rb:18
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
/usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/integration/account_test.rb" "test/integration/issues_test.rb" "test/integration/projects_test.rb" "test/integration/admin_test.rb" "test/integration/application_test.rb" "test/integration/lib/redmine/menu_manager_test.rb"
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:819:in `read': No such file or directory - /sdb3/src/redhat/BUILD/nonrpm/sourcecontrol/redmine/config/database.yml (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:819:in `database_configuration'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:391:in `initialize_database'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:139:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
from /sdb3/src/redhat/BUILD/nonrpm/sourcecontrol/redmine/config/environment.rb:20
from ./test/integration/../test_helper.rb:19:in `require'
from ./test/integration/../test_helper.rb:19
from ./test/integration/account_test.rb:18:in `require'
from ./test/integration/account_test.rb:18
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
Errors running test:units, test:functionals, and test:integration!

    (1-4/4)