Hi All, Alright, this release is getting closer. It''s nearly complete except the docs on my site aren''t written yet. There is however a full README with RDoc documentation and several packages including a gem release. Please check out the latest release at: * Announcement: http://www.zedshaw.com/ * README and RDoc: http://www.zedshaw.com/projects/scgi_rails/rdoc/index.html * gem, tar.bz2, tar.gz, zip: http://www.zedshaw.com/downloads/scgi_rails/ * apache1-mod_scgi-1.7a-win32.zip http://www.zedshaw.com/downloads/scgi_rails/apache1-mod_scgi-1.7a-win32.zip * apache2-mod_scgi-1.7a-win32.zip http://www.zedshaw.com/downloads/scgi_rails/apache2-mod_scgi-1.7a-win32.zip The win32 mod_scgi modules are courtesy Curt Hibbs and they include the soon to be released AJAX fix for SCGI on Apache. == Introduction SCGI is an alternative to FastCGI. This release features several nice features from the previous (0.4.0) release: * Most functionality is generalized into the scgi.rb file so that other frameworks can benefit from SCGI. This includes the DRb control code too. * There is a new command scgi_cluster that works like scgi_ctrl but manages a cluster of SCGI processors for you. * A few minor source changes and clean-ups, but no major bugs found so far. * All classes are documented with RDoc and the README is complete. * A packaged RubyGem for people to install (let me know if it works for you). * All DRb control methods are also available through POSIX signals. * You can disable POSIX, DRb or both control methods. * New connections during shutdown or any connections over the maxconns setting are redirected quickly to /busy.html (you need to make this). == Instructions Read through the README for instructions. It''s pretty simple, but the win32 support is a little limited at the moment. Will be improving that over the next few point releases. == Examples Configure 5 processors to run on ports starting at 9999. Then start them all up. Finally restart them gracefully just for fun.> scgi_cluster config -c 5 > scgi_cluster start > scgi_cluster restartMonitor your cluster to watch it work.> scgi_cluster monitorFun stuff. Please test this out for me and send me your feedback. Zed A. Shaw http://www.zedshaw.com/
Actually, I totally forgot. The big bug that was fixed is the problem where shutdown didn''t really start the shutdown. This now works. On Mon, 17 Oct 2005 02:06:59 -0400 "Zed A. Shaw" <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote:> Hi All, > > Alright, this release is getting closer. It''s nearly complete except > the docs on my site aren''t written yet. There is however a full > README with RDoc documentation and several packages including a gem > release. ><snip>
I think there may be a few files missing from the downloads. The setup.rb and lib directory appear to be missing. This is for all of the different type of downloads of 0.4.1. Thanks for creating an awesome product. Looking forward to getting this version running ;) -Jonathan On Oct 16, 2005, at 11:22 PM, Zed A. Shaw wrote:> Actually, I totally forgot. The big bug that was fixed is the problem > where shutdown didn''t really start the shutdown. This now works. > > On Mon, 17 Oct 2005 02:06:59 -0400 > "Zed A. Shaw" <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote: > > >> Hi All, >> >> Alright, this release is getting closer. It''s nearly complete except >> the docs on my site aren''t written yet. There is however a full >> README with RDoc documentation and several packages including a gem >> release. >> >> > <snip> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Zed A. Shaw
2005-Oct-17 13:29 UTC
FIXED Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
Alright, the packaging of gems in Rake seems to have changed. I fixed it up so now all the files are packaged. Thanks for catching this. I didn''t change the version numbers, so please go get the 0.4.1 version again if you got a bad package: http://www.zedshaw.com/downloads/scgi_rails/ Zed A. Shaw http://www.zedshaw.com/ On Mon, 17 Oct 2005 02:06:59 -0400 "Zed A. Shaw" <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote:> Hi All, > > Alright, this release is getting closer. It''s nearly complete except > the docs on my site aren''t written yet. There is however a full > README with RDoc documentation and several packages including a gem > release.<snip>
Maximilian Schulz
2005-Oct-17 14:30 UTC
Re: FIXED Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
Hi, It seems i am still doing something wrong. I reinstalled the stuff via gem. but then all my problems began. I was getting errors about missing permission for ''exec''. so i ran the setup.rb by hand ( i hope this was right). but now, when i start the server everything seems to work, except the fact that i am getting the following error for every request send to the server (from log/scgi.log): [ERR][17756] calling Dispatcher.dispatch: uninitialized constant Dispatcher [ERR][17756] /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/ lib/active_support/dependencies.rb:186:in `const_missing'' /usr/local/bin/scgi_service:13:in `process_request'' /usr/local/bin/scgi_service:11:in `synchronize'' /usr/local/bin/scgi_service:11:in `process_request'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:284:in `read_header'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:243:in `handle_client'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:219:in `initialize'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:219:in `new'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:219:in `handle_client'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:179:in `listen'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:177:in `initialize'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:177:in `new'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:177:in `listen'' /usr/local/lib/ruby/site_ruby/1.8/scgi.rb:405:in `run'' /usr/local/bin/scgi_service:55 As i am quite new to ruby, rails and scgi i hope someone could help me. max On 17.10.2005, at 15:29, Zed A. Shaw wrote:> Alright, the packaging of gems in Rake seems to have changed. I fixed > it up so now all the files are packaged. Thanks for catching this. > > I didn''t change the version numbers, so please go get the 0.4.1 > version again if you got a bad package: > > http://www.zedshaw.com/downloads/scgi_rails/ > > Zed A. Shaw > http://www.zedshaw.com/ > > On Mon, 17 Oct 2005 02:06:59 -0400 > "Zed A. Shaw" <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote: > > >> Hi All, >> >> Alright, this release is getting closer. It''s nearly complete except >> the docs on my site aren''t written yet. There is however a full >> README with RDoc documentation and several packages including a gem >> release. >> > <snip> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Zed A. Shaw
2005-Oct-17 14:30 UTC
Gem Problems Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
Hi Everyone, It looks like the RubyGem doesn''t work since the script files are not installed with the right execute permissions. I''ll be fixing this up later today or tonight, but until then just stick to the source distributions. Zed A. Shaw http://www.zedshaw.com/
Zed Shaw
2005-Oct-17 18:10 UTC
Re: FIXED Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
Hi Max, Are you by chance running on OSX in development mode? This message seems to only happen in that situation. First off, make sure you remove the gem using "gem uninstall scgi_rails". Then make sure you''re in production mode. It''s supposed to default to production, but just to be sure use the "-e production" option in your scgi_rails config command. If you do all that and it''s still broke then let me know the system, web server, and version of Ruby your using. Thanks. Zed A. Shaw http://www.zedshaw.com/ On Mon, Oct 17, 2005 at 04:30:27PM +0200, Maximilian Schulz wrote:> Hi, > It seems i am still doing something wrong. I reinstalled the stuff > via gem. but then all my problems began. I was getting errors about > missing permission for ''exec''. so i ran the setup.rb by hand ( i hope > this was right). but now, when i start the server everything seems to > work, except the fact that i am getting the following error for every > request send to the server (from log/scgi.log): > > [ERR][17756] calling Dispatcher.dispatch: uninitialized constant > Dispatcher > [ERR][17756] /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/ > lib/active_support/dependencies.rb:186:in `const_missing''<snip>> > As i am quite new to ruby, rails and scgi i hope someone could help me. > > max > > On 17.10.2005, at 15:29, Zed A. Shaw wrote: >
Denny Reiter
2005-Oct-17 18:18 UTC
Re: FIXED Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
On Mon, Oct 17, 2005 at 11:10:04AM -0700, Zed Shaw wrote:> Hi Max, > > Are you by chance running on OSX in development mode? This message > seems to only happen in that situation. >I''m having this happen using FreeBSD 4.11 and development mode also, by the way. Switching to production mode does work as expected though. Denny Reiter
zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org
2005-Oct-17 18:39 UTC
Re: FIXED Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
Yeah, something''s up with the class how Dispatcher loads classes and how SCGI uses threads. It seems to not be an issue in production since the classes are only loaded once, but I''ll have to hammer this down before I bless it for production use. It''s also interesting that the BSD type OS seem to hit the problem very consistently. I''m wondering why that would be. Zed A. Shaw http://www.zedshaw.com/> On Mon, Oct 17, 2005 at 11:10:04AM -0700, Zed Shaw wrote: >> Hi Max, >> >> Are you by chance running on OSX in development mode? This message >> seems to only happen in that situation. >> > > I''m having this happen using FreeBSD 4.11 and development mode also, > by the way. Switching to production mode does work as expected > though. > > Denny Reiter > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Maximilian Schulz
2005-Oct-17 18:53 UTC
Re: FIXED Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
On 17.10.2005, at 20:10, Zed Shaw wrote:> Hi Max, > > Are you by chance running on OSX in development mode? This message > seems to only happen in that situation.OS X - No (although i work with it ;) ) development mode - Yes As you suggested and Denny confirmed, switching to production mode solved the problem. and regarding the system, i am running a installation of suse 9.1 on the server where i was testing. And thank you for the quick help. Max
Zed, I was a BIG fan of the previous approach for clustering, w/ all children listening on the same port. This made it a lot easier to deal with the lighttpd config, because I could increase (or decrease) the # of children without having to worry about keeping the # in sync w/ the lighttpd config. Is that approach gone-for-good? Or are you planning on bring that back? thanks, Michael> Configure 5 processors to run on ports starting at 9999. Then start > them all up. Finally restart them gracefully just for fun. > >>scgi_cluster config -c 5 >>scgi_cluster start >>scgi_cluster restart
zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org
2005-Oct-17 22:20 UTC
Re: [ANN] SCGI Rails Runner 0.4.1 (getting closer)
I took it out for now until I can figure out some stability issues. It''s actually supported, just not directly implemented in the current code. Zed A. Shaw http://www.zedshaw.com/> Zed, > > I was a BIG fan of the previous approach for clustering, w/ all children > listening on the same port. This made it a lot easier to deal with the > lighttpd config, because I could increase (or decrease) the # of > children without having to worry about keeping the # in sync w/ the > lighttpd config. > > Is that approach gone-for-good? Or are you planning on bring that back? > > thanks, > Michael > >> Configure 5 processors to run on ports starting at 9999. Then start >> them all up. Finally restart them gracefully just for fun. >> >>>scgi_cluster config -c 5 >>>scgi_cluster start >>>scgi_cluster restart > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org wrote:> I took it out for now until I can figure out some stability issues. It''s > actually supported, just not directly implemented in the current code.Does that mean I can extend one of the scripts to get back that functionality? The approach has been stable on our platform (Debian).