Redmine on remote host

Added by Davide Zipeto over 9 years ago

Hi all,

I am hosting a domain with space and so on and I would like to host also the redmine app on bugs.mysite.com

I read the documentation and I tried to change some config without any successful results. All the time I try to acess redmine I got the

"Application error
Rails application failed to start properly"

error coming up. The server is Slackware 10 with apache installed.

I enable in the public folder the dispatch.fcgi without any success. I tried also to launch webrick but the situation is still the same.

Is there a way to debug what is wrong ? I can keep more info if needed.
Any help greatly appreciate.

Davide

Replies (8)

RE: Redmine on remote host - Added by Davide Zipeto over 9 years ago

forgot to include the about output

About your application's environment
Ruby version              1.8.6 (i686-linux)
RubyGems version          1.1.1
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
Edge Rails revision       unknown
Application root          /nfs/home3/home3/d/dreamingitaly/public_html-webapps/redmine
Environment               development
Database adapter          sqlite3

Should say production.. but I don not know why keep saying development. I obtained this output by issuing

ruby script/about

RE: Redmine on remote host - Added by Jean-Baptiste Barth over 9 years ago

What's the exact command and output/error when you try to start it with webrick ?

RE: Redmine on remote host - Added by Davide Zipeto over 9 years ago

Hi Jean,

when launching webrick I have this

~/public_html-webapps/redmine@15:15:03> ruby script/server -e production
=> Booting WEBrick...
=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2009-02-25 23:15:21] INFO  WEBrick 1.3.1
[2009-02-25 23:15:21] INFO  ruby 1.8.6 (2008-03-03) [i686-linux]
[2009-02-25 23:15:21] INFO  WEBrick::HTTPServer#start: pid=772 port=3000

Which seems to be just perfect. Now I am not an expert of webrick and I do not understand how it will integrate with Apache. As far as I understood webrick is a webserver that is opening a port 3000 to accept incoming http. Do I have to enable port forwarding ? When I try to access the port:3000 on the remote server is giving back a "Network Timeout" response. Do I have to ask to forward the port 3000 ?

I know that one day everything will be clear to me...

Regards,
Davide

RE: Redmine on remote host - Added by Davide Zipeto over 9 years ago

I have a quesiton:

DO I have to use webrick ? It is possible to just launch redmine just by enabling the cgi / fastcgi ?

RE: Redmine on remote host - Added by Jean-Baptiste Barth over 9 years ago

There are many ways to run rails applications... You can run Redmine with Fastcgi behind Apache, or have an Apache plugin (called mod_rails / passenger), or have a specific application server (such as webrick (for tests?), mongrel, thin,..). I'm not an expert in configuring FastCGI, so I cannot help you on that point.

I thought you had an error such as "Rails application failed to start properly" with Webrick too, I misunderstood you...

RE: Redmine on remote host - Added by Artem Konoplin over 9 years ago

What you see when you type:

lynx localhost:3000

I have a same problem when trying to start Redmine via FastCGI. Now I think to try this http://ubuntuforums.org/showthread.php?t=674598

RE: Redmine on remote host - Added by Davide Zipeto over 9 years ago

I discovered at the end that the port 3000 was not open. At the moment I will try to make it work with webrick and then switch to fastcgi asap.

I have a question: since I am not root on the server, I installed the sqllite library under a folder on my home in myapps/gems/

When I launch webrick and try to acess the page, I got this error

MissingSourceFile (no such file to load -- sqlite3):

And when I ask for a list of installed gems, I got this

~/public_html-webapps/redmine@01:41:32> gem list

*** LOCAL GEMS ***

actionmailer (1.0.1)
actionpack (1.9.1)
actionwebservice (0.8.1)
activerecord (1.11.1)
activesupport (1.1.1)
fcgi (0.8.6.1)
mysql (2.7, 2.6, 2.5.1)
postgres-pr (0.4.0)
rails (0.13.1)
rake (0.8.1, 0.7.2)
rubygems-update (1.1.1)

It seems that the sqlite is not appearing in this list (I guess this is the gems installed by the root). As you may have guess I am do not know much about ruby, but so far I managed to install sqlite in my local folder easily.

Q: How do I install sqlite3-ruby on linux (CentOS) as a non-root user?
A:
    * install SQLite3 from source
      ./configure —prefix=/path/to/my/apps
      make
      make install
    * install sqlite3-ruby gem
      gem install sqlite3-ruby — —with-opt-include=/path/to/my/apps/include —with-opt-lib=/path/to/my/apps/lib

and then added the default data to it (which is already a good step!).

Is there a way to launch webrick and tell it to use libraries on my local folder ?

RE: Redmine on remote host - Added by Davide Zipeto over 9 years ago

HI All...

I made it !!!

I just added this 2 lines to my .profile and the sqlite gem can now be found

GEM_PATH=$HOME/myapps/gems:/usr/local/lib/ruby/gems/1.8
export GEM_PATH

Next step will be start use the fastcgi, but at the moment I am still happy with webrick.

Thank you all for the suggestion you gave me.

(1-8/8)