philipp Hanselmann
2009-Oct-01 13:58 UTC
[Puppet Users] Puppet 0.25 - passenger + foreman (webfrontend)
Hi I was trying to installed foreman, but up to know it fails ... (Setup: Redhat Server 5.0 Puppet 0.25 + Passenger, foreman is installed on the same server than Puppet ) I did the following steps: 1.) root@id-lnx-deployment:/opt # git clone git://github.com/ohadlevy/foreman.git foreman Initialized empty Git repository in /opt/foreman/.git/ remote: Counting objects: 3578, done. remote: Compressing objects: 100% (2690/2690), done. remote: Total 3578 (delta 1193), reused 2516 (delta 566) Receiving objects: 100% (3578/3578), 3.29 MiB | 1269 KiB/s, done. Resolving deltas: 100% (1193/1193), done. 2.) root@id-lnx-deployment:/opt # cd foreman 3.) root@id-lnx-deployment:/opt/foreman # git submodule init Submodule ''vendor/plugins/active_scaffold'' (git://github.com/activescaffold/active_scaffold.git) registered for path ''vendor/plugins/active_scaffold'' No submodule mapping found in .gitmodules for path ''vendor/plugins/ruby-net-ldap'' 4.) root@id-lnx-deployment:/opt/foreman # git submodule update Initialized empty Git repository in /opt/foreman/vendor/plugins/active_scaffold/.git/ remote: Counting objects: 8210, done. remote: Compressing objects: 100% (2166/2166), done. remote: Total 8210 (delta 6070), reused 7746 (delta 5647) Receiving objects: 100% (8210/8210), 1016.04 KiB | 614 KiB/s, done. Resolving deltas: 100% (6070/6070), done. Submodule path ''vendor/plugins/active_scaffold'': checked out ''4dcef6d830b3201711ae5b3d2c193a19a31924fd'' No submodule mapping found in .gitmodules for path ''vendor/plugins/ruby-net-ldap'' 5.) RAILS_ENV=production rake db:migrate 6.) rake puppet:migrate:populate_hosts RAILS_ENV=production 7.) root@id-lnx-deployment:/opt/foreman # ./script/server -e production => Booting Mongrel => Rails 2.3.2 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server When I did these steps it looked for me everything was working, but when I finally try to get access to id-lnx-deployment:3000 in my webbrowser I can''t load the page ;-( For me it looks like that http://0.0.0.0:3000 is only accessible locally but not not from outside? And if I try on the server "cd /tmp ; wget http://localhost:3000" I will download successfully a *empty* page? The same empty page I get on my local machine with http://localhost:3000" with an ssh tunnel (ssh -D 3000 root@id-lnx-deployment) ... Questions: 1.) Where can I configure that mongrel is accepting connections from outside? 2.) Why does foreman provide empty pages? Thanks for the help! Philipp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
philipp Hanselmann
2009-Oct-02 07:43 UTC
[Puppet Users] Re: Puppet 0.25 - passenger + foreman (webfrontend)
I found the answer by myself ... mongrel network settings can be changend in /opt/foreman/vendor/rails/railties/lib/commands/server.rb I noticed that our company firewall is blocking Port 3000. Now it is working, I can see the webgui ... Next steps will be to use passenger instead of mongrel philipp Hanselmann wrote:> Hi > > > I was trying to installed foreman, but up to know it fails ... > > (Setup: Redhat Server 5.0 Puppet 0.25 + Passenger, foreman is > installed on the same server than Puppet ) > > I did the following steps: > > > 1.) root@id-lnx-deployment:/opt # git clone > git://github.com/ohadlevy/foreman.git foreman > Initialized empty Git repository in /opt/foreman/.git/ > remote: Counting objects: 3578, done. > remote: Compressing objects: 100% (2690/2690), done. > remote: Total 3578 (delta 1193), reused 2516 (delta 566) > Receiving objects: 100% (3578/3578), 3.29 MiB | 1269 KiB/s, done. > Resolving deltas: 100% (1193/1193), done. > > 2.) root@id-lnx-deployment:/opt # cd foreman > > > 3.) root@id-lnx-deployment:/opt/foreman # git submodule init > Submodule ''vendor/plugins/active_scaffold'' > (git://github.com/activescaffold/active_scaffold.git) registered for > path ''vendor/plugins/active_scaffold'' > No submodule mapping found in .gitmodules for path > ''vendor/plugins/ruby-net-ldap'' > > 4.) root@id-lnx-deployment:/opt/foreman # git submodule update > Initialized empty Git repository in > /opt/foreman/vendor/plugins/active_scaffold/.git/ > remote: Counting objects: 8210, done. > remote: Compressing objects: 100% (2166/2166), done. > remote: Total 8210 (delta 6070), reused 7746 (delta 5647) > Receiving objects: 100% (8210/8210), 1016.04 KiB | 614 KiB/s, done. > Resolving deltas: 100% (6070/6070), done. > Submodule path ''vendor/plugins/active_scaffold'': checked out > ''4dcef6d830b3201711ae5b3d2c193a19a31924fd'' > No submodule mapping found in .gitmodules for path > ''vendor/plugins/ruby-net-ldap'' > > > 5.) > RAILS_ENV=production rake db:migrate > > > 6.) rake puppet:migrate:populate_hosts RAILS_ENV=production > > > 7.) root@id-lnx-deployment:/opt/foreman # ./script/server -e production > => Booting Mongrel > => Rails 2.3.2 application starting on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > > When I did these steps it looked for me everything was working, but > when I finally try to get access to id-lnx-deployment:3000 in my > webbrowser I can''t load the page ;-( > > > For me it looks like that http://0.0.0.0:3000 is only accessible > locally but not not from outside? > > And if I try on the server "cd /tmp ; wget http://localhost:3000" I > will download successfully a *empty* page? > > The same empty page I get on my local machine with > http://localhost:3000" with an ssh tunnel (ssh -D 3000 > root@id-lnx-deployment) ... > > Questions: > 1.) Where can I configure that mongrel is accepting connections from > outside? > 2.) Why does foreman provide empty pages? > > Thanks for the help! > Philipp > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2009-Oct-02 13:54 UTC
[Puppet Users] Re: Puppet 0.25 - passenger + foreman (webfrontend)
On Fri, Oct 2, 2009 at 12:43 AM, philipp Hanselmann < philipp.hanselmann@gmail.com> wrote:> > > I found the answer by myself ... >Great, sorry for the late reply, we were kinda busy here at puppet camp :)> > Next steps will be to use passenger instead of mongrel >That should be really straight forward. cheers Ohad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---