From lists at ruby-forum.com Sun Nov 2 19:10:26 2008 From: lists at ruby-forum.com (Anthony E.) Date: Mon, 3 Nov 2008 01:10:26 +0100 Subject: [Mongrel] properly restarting mongrel instances In-Reply-To: <4a3752180801211105u12e206ahe81e120b971cfc22@mail.gmail.com> References: <4a3752180801211105u12e206ahe81e120b971cfc22@mail.gmail.com> Message-ID: <31c8b96f99ea324201c63e1dbe1553f7@ruby-forum.com> John Joseph Bachir wrote: > Hi folks. > > Using mongrel_rails and the mongrel_cluster capistrano recipes, I > often encounter a situation where some of the mongrel processes don't > die in time to be restarted. The output of capistrano will tell me > something like "mongrel on port 8001 is already up", but that's only > because capistrano/mongrel_rails failed to take it down in the first > place. > > The solution is to do a full deploy:stop a couple times to make sure > they are all down, and then do a deploy:start. > > Is my problem typical? Is there a solution? Seems like mongrel_rails > and/or the capistrano recipes should wait for the processes to stop > before attempting to restart them. > > Thanks for any insight, > John > > Most of the responses assume that waiting for your mongrels to stop is better than sending them the signal and continuing on with starting a new batch of servers. I don't see a problem with this, unless the old processes finished off any requests in the pipeline start picking up new requests...can anyone verify that a "stop" command to a mongrel cluster will keep the mongrel(s) that were sent the signal from serving new requests? Assuming that is true, then it already would be a "rolling restart", from my understanding. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Nov 10 19:48:29 2008 From: lists at ruby-forum.com (Chandu Chandu) Date: Tue, 11 Nov 2008 01:48:29 +0100 Subject: [Mongrel] Problem Starting Mongrel Message-ID: Hi, I am newbie started learning ruby on rails i had an application which used to run pretty well latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the foloowing errors and a default application runs on port 3000 i have attached its screen shot as an attachement and error which i get in terminal below => Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 Exiting /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in `initialize_without_backlog': Address already in use - bind(2) (Errno::EADDRINUSE) from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in `initialize' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:93:in `new' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:93:in `initialize' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:139:in `new' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:139:in `listener' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `call' from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `initialize' ... 14 levels... from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require' from ./script/server:3 Thanks & Regards Chandu -- Posted via http://www.ruby-forum.com/. From gregbclarke at gmail.com Mon Nov 10 22:11:45 2008 From: gregbclarke at gmail.com (Greg Clarke) Date: Tue, 11 Nov 2008 14:11:45 +1100 Subject: [Mongrel] Problem Starting Mongrel In-Reply-To: References: Message-ID: Chandu Looks to me like your webrick process is still running on port 3000 and mongrel therefore cannot bind to port 3000. I suggest you shutdown webrick first or specify a different port. regards Greg On Tue, Nov 11, 2008 at 11:48 AM, Chandu Chandu wrote: > Hi, I am newbie started learning ruby on rails i had an application > which used to run pretty well > latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the > foloowing errors and a default application runs on port 3000 i have > attached its screen shot as an attachement and error which i get in > terminal below > > => Booting Mongrel (use 'script/server webrick' to force WEBrick) > => Rails application starting on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > Exiting > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in > `initialize_without_backlog': Address already in use - bind(2) > (Errno::EADDRINUSE) > from > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in > `initialize' > from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:93:in > `new' > from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:93:in > `initialize' > from > > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:139:in > `new' > from > > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:139:in > `listener' > from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in > `cloaker_' > from > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in > `call' > from > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in > `initialize' > ... 14 levels... > from > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39 > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require' > from ./script/server:3 > > Thanks & Regards > Chandu > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- regards Greg "It's not about the fish." -- unknown -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Nov 17 21:30:13 2008 From: lists at ruby-forum.com (Alexey Petrushin) Date: Tue, 18 Nov 2008 03:30:13 +0100 Subject: [Mongrel] File Upload without the Temp File Copy Message-ID: <9b59f6a662da260219f2dc3d450fe217@ruby-forum.com> Is it possible to upload file directly into database? Without creation the extra temp file on the disk. Thanks! :) -- Posted via http://www.ruby-forum.com/. From michael.dauria at gmail.com Tue Nov 18 11:04:08 2008 From: michael.dauria at gmail.com (Michael D'Auria) Date: Tue, 18 Nov 2008 11:04:08 -0500 Subject: [Mongrel] File Upload without the Temp File Copy In-Reply-To: <9b59f6a662da260219f2dc3d450fe217@ruby-forum.com> References: <9b59f6a662da260219f2dc3d450fe217@ruby-forum.com> Message-ID: <1907e2ca0811180804u10449290qbffd62f750b61d29@mail.gmail.com> Is there a reason why you are avoiding the filesystem for storage? Michael On 11/17/08, Alexey Petrushin wrote: > Is it possible to upload file directly into database? > Without creation the extra temp file on the disk. > > Thanks! :) > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From lists at ruby-forum.com Tue Nov 18 11:37:31 2008 From: lists at ruby-forum.com (Alexey Petrushin) Date: Tue, 18 Nov 2008 17:37:31 +0100 Subject: [Mongrel] File Upload without the Temp File Copy In-Reply-To: <1907e2ca0811180804u10449290qbffd62f750b61d29@mail.gmail.com> References: <9b59f6a662da260219f2dc3d450fe217@ruby-forum.com> <1907e2ca0811180804u10449290qbffd62f750b61d29@mail.gmail.com> Message-ID: <0fe3f9451cd1594d40e816dede2f652f@ruby-forum.com> Michael D'Auria wrote: > Is there a reason why you are avoiding the filesystem for storage? > > Michael Yes, i'm using abstract storage interface, that can be implemented as local file system, remote file system, distributed file system, database, cache. In this case the temp file is not needed. I can just switch the input stream to it's destination without lost performance on not needed IO operations. -- Posted via http://www.ruby-forum.com/. From stephanwehner at gmail.com Tue Nov 18 12:19:06 2008 From: stephanwehner at gmail.com (Stephan Wehner) Date: Tue, 18 Nov 2008 09:19:06 -0800 Subject: [Mongrel] File Upload without the Temp File Copy In-Reply-To: <0fe3f9451cd1594d40e816dede2f652f@ruby-forum.com> References: <9b59f6a662da260219f2dc3d450fe217@ruby-forum.com> <1907e2ca0811180804u10449290qbffd62f750b61d29@mail.gmail.com> <0fe3f9451cd1594d40e816dede2f652f@ruby-forum.com> Message-ID: On Tue, Nov 18, 2008 at 8:37 AM, Alexey Petrushin wrote: > Michael D'Auria wrote: >> Is there a reason why you are avoiding the filesystem for storage? >> >> Michael > > Yes, i'm using abstract storage interface, that can be implemented as > local file system, remote file system, distributed file system, > database, cache. > > In this case the temp file is not needed. I can just switch the input > stream to it's destination without lost performance on not needed IO > operations. You could look at the Ruby code that produces the temporary files, and change it. It is in method CGI::QueryExtension#read_multipart in cgi.rb (/usr/lib/ruby/1.8/cgi.rb on my machine) Stephan > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- Stephan Wehner -> http://stephan.sugarmotor.org -> http://www.thrackle.org -> http://www.buckmaster.ca -> http://www.trafficlife.com -> http://stephansmap.org -- blog.stephansmap.org -> http://loggingit.com -- blog.loggingit.com From ezmobius at gmail.com Tue Nov 18 12:28:17 2008 From: ezmobius at gmail.com (Ezra Zygmuntowicz) Date: Tue, 18 Nov 2008 09:28:17 -0800 Subject: [Mongrel] File Upload without the Temp File Copy In-Reply-To: References: <9b59f6a662da260219f2dc3d450fe217@ruby-forum.com> <1907e2ca0811180804u10449290qbffd62f750b61d29@mail.gmail.com> <0fe3f9451cd1594d40e816dede2f652f@ruby-forum.com> Message-ID: On Nov 18, 2008, at 9:19 AM, Stephan Wehner wrote: > On Tue, Nov 18, 2008 at 8:37 AM, Alexey Petrushin > wrote: >> Michael D'Auria wrote: >>> Is there a reason why you are avoiding the filesystem for storage? >>> >>> Michael >> >> Yes, i'm using abstract storage interface, that can be implemented as >> local file system, remote file system, distributed file system, >> database, cache. >> >> In this case the temp file is not needed. I can just switch the input >> stream to it's destination without lost performance on not needed IO >> operations. > > You could look at the Ruby code that produces the temporary files, and > change it. > It is in method CGI::QueryExtension#read_multipart in cgi.rb > (/usr/lib/ruby/1.8/cgi.rb on my machine) Mongrel doesn't actually use CGI.rb, thats only rails. You want to look in http_request.rb and patch the code that writes to a tmpfile and have it write to wherever you want: http://mongrel.rubyforge.org/browser/trunk/lib/mongrel/http_request.rb#L47 Cheers- Ezra Zygmuntowicz ez at engineyard.com From lists at ruby-forum.com Fri Nov 21 20:02:51 2008 From: lists at ruby-forum.com (Joe Carroll) Date: Sat, 22 Nov 2008 02:02:51 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> Message-ID: Luis Lavena wrote: > These corrections where merged to trunk and are available under > --disable-fastthread option of configure. > > Also, ruby 1.8.6 ships with these changes, so dependency of fastthread > is only required for ruby < 1.8.6 At what stage in the installation process of which component can I specify this flag? Do I need to specify it when invoking configure before compiling Ruby 1.9.1 from source? And does anyone know if Mongrel will successfully install and run afterwards? And how likely is it that disabling fastthread will break other things? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Nov 22 18:45:11 2008 From: lists at ruby-forum.com (Joe Carroll) Date: Sun, 23 Nov 2008 00:45:11 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> <532a46cbadd41fad634d910181cce128@ruby-forum.com> Message-ID: <328c1f82d9cec5445ce43982c1ebdcca@ruby-forum.com> i've tried downloading mongrel as a tarball and installing via setup.rb, but that doesn't work either: ---> bin <--- bin ---> lib ---> lib/mongrel <--- lib/mongrel <--- lib ---> ext ---> ext/http11 /usr/local/bin/ruby /usr/local/src/mongrel-1.1.5/ext/http11/extconf.rb checking for main() in -lc... yes creating Makefile ---> ext/http11/conftest.dSYM ---> ext/http11/conftest.dSYM/Contents ---> ext/http11/conftest.dSYM/Contents/Resources ---> ext/http11/conftest.dSYM/Contents/Resources/DWARF <--- ext/http11/conftest.dSYM/Contents/Resources/DWARF <--- ext/http11/conftest.dSYM/Contents/Resources <--- ext/http11/conftest.dSYM/Contents <--- ext/http11/conftest.dSYM <--- ext/http11 ---> ext/http11_java ---> ext/http11_java/org ---> ext/http11_java/org/jruby ---> ext/http11_java/org/jruby/mongrel <--- ext/http11_java/org/jruby/mongrel <--- ext/http11_java/org/jruby <--- ext/http11_java/org <--- ext/http11_java <--- ext ---> bin <--- bin ---> lib ---> lib/mongrel <--- lib/mongrel <--- lib ---> ext ---> ext/http11 make gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.5.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/usr/local/src/mongrel-1.1.5/ext/http11 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -D_XOPEN_SOURCE=1 -O2 -g -Wall -Wno-parentheses -fno-common -pipe -fno-common -o http11.o -c http11.c http11.c: In function ?http_field?: http11.c:77: error: ?struct RString? has no member named ?ptr? http11.c:77: error: ?struct RString? has no member named ?len? http11.c:77: warning: left-hand operand of comma expression has no effect http11.c:77: warning: statement with no effect http11.c: In function ?header_done?: http11.c:172: error: ?struct RString? has no member named ?ptr? http11.c:174: error: ?struct RString? has no member named ?ptr? http11.c:176: error: ?struct RString? has no member named ?ptr? http11.c:177: error: ?struct RString? has no member named ?len? http11.c: In function ?HttpParser_execute?: http11.c:298: error: ?struct RString? has no member named ?ptr? http11.c:299: error: ?struct RString? has no member named ?len? make: *** [http11.o] Error 1 ./setup.rb:655:in `command': system("make") failed (RuntimeError) from ./setup.rb:664:in `make' from ./setup.rb:1258:in `setup_dir_ext' from ./setup.rb:1532:in `block in traverse' from ./setup.rb:1549:in `dive_into' from ./setup.rb:1530:in `traverse' from ./setup.rb:1534:in `block (2 levels) in traverse' from ./setup.rb:1533:in `each' from ./setup.rb:1533:in `block in traverse' from ./setup.rb:1549:in `dive_into' from ./setup.rb:1530:in `traverse' from ./setup.rb:1524:in `block in exec_task_traverse' from ./setup.rb:1519:in `each' from ./setup.rb:1519:in `exec_task_traverse' from ./setup.rb:1246:in `exec_setup' from ./setup.rb:996:in `exec_setup' from ./setup.rb:813:in `invoke' from ./setup.rb:773:in `invoke' from ./setup.rb:1578:in `
' -- Posted via http://www.ruby-forum.com/. From richard.mackstar at gmail.com Sat Nov 22 02:23:08 2008 From: richard.mackstar at gmail.com (Richard McIntyre) Date: Sat, 22 Nov 2008 16:23:08 +0900 Subject: [Mongrel] Mongrel cluster processes not starting Message-ID: <2fec85160811212323v70bd3167q100904932cfc8b70@mail.gmail.com> I am starting my mongrel processes with mongrel_rails cluster::start or sudo mongrel_rails cluster::start starting port 8000 starting port 8001 starting port 8002 starting port 8003 and they appear to have started, but they haven't mongrel_rails cluster::status gives me missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8000.pid missing mongrel_rails: port 8000 missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8001.pid missing mongrel_rails: port 8001 missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8002.pid missing mongrel_rails: port 8002 missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8003.pid missing mongrel_rails: port 8003 Why could this be?? I have opened up the permissions so all can access these, I have even tried it at 777 but I get the same results. If I add dummy pids to the directory it notices they are there and gives me errors on start up so it is recognizing this directory, but not bothering to add the pids or start up... Somebody help! Many thanks Richard From lists at ruby-forum.com Sat Nov 22 18:08:16 2008 From: lists at ruby-forum.com (Roger Pack) Date: Sun, 23 Nov 2008 00:08:16 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> Message-ID: <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> > At what stage in the installation process of which component can I > specify this flag? Do I need to specify it when invoking configure > before compiling Ruby 1.9.1 from source? And does anyone know if Mongrel > will successfully install and run afterwards? And how likely is it that > disabling fastthread will break other things? I believe it's gem install something -- --disable-fastthread -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Sun Nov 23 10:17:05 2008 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 23 Nov 2008 13:17:05 -0200 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> Message-ID: <71166b3b0811230717i658b8589nfe41ef3e8fcb1f8f@mail.gmail.com> On Fri, Nov 21, 2008 at 11:02 PM, Joe Carroll wrote: > Luis Lavena wrote: >> These corrections where merged to trunk and are available under >> --disable-fastthread option of configure. >> >> Also, ruby 1.8.6 ships with these changes, so dependency of fastthread >> is only required for ruby < 1.8.6 > > At what stage in the installation process of which component can I > specify this flag? Do I need to specify it when invoking configure > before compiling Ruby 1.9.1 from source? And does anyone know if Mongrel > will successfully install and run afterwards? And how likely is it that > disabling fastthread will break other things? When compiling ruby from source (either 1.8.6 or 1.9) both get fastthread enabled by default, you need to explicitly disable it in case that you don't want it (which I will doubt). So unless you depend on a package made by debian which they decided not to enable that helpful flag, you will not need to worry. Again, modern Ruby no need for fastthread (is built-in in ruby) so mongrel will remove fastthread from the dependency and required if present. That sounds better explanation? -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From evan at cloudbur.st Sat Nov 22 15:03:18 2008 From: evan at cloudbur.st (Evan Weaver) Date: Sat, 22 Nov 2008 12:03:18 -0800 Subject: [Mongrel] problem logging in to mongrel.rubyforge.org? In-Reply-To: <4b3125cc0810300118k1b1477c1t7ecd2abecff3c1da@mail.gmail.com> References: <4b3125cc0810300118k1b1477c1t7ecd2abecff3c1da@mail.gmail.com> Message-ID: It works okay for me... do you get any error? Evan On Thu, Oct 30, 2008 at 12:18 AM, Jeffrey 'jf' Lim wrote: > does anybody have this problem? I've been trying to login to submit a > ticket, but no luck so far... Have done several resets, + retries > already. > > -jf > > -- > In the meantime, here is your PSA: > "It's so hard to write a graphics driver that open-sourcing it would not help." > -- Andrew Fear, Software Product Manager, NVIDIA Corporation > http://kerneltrap.org/node/7228 > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- Evan Weaver From luislavena at gmail.com Mon Nov 24 08:46:24 2008 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 24 Nov 2008 11:46:24 -0200 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> Message-ID: <71166b3b0811240546l1b5b0522gd86f7a5586d73f18@mail.gmail.com> On Sat, Nov 22, 2008 at 9:08 PM, Roger Pack wrote: > >> At what stage in the installation process of which component can I >> specify this flag? Do I need to specify it when invoking configure >> before compiling Ruby 1.9.1 from source? And does anyone know if Mongrel >> will successfully install and run afterwards? And how likely is it that >> disabling fastthread will break other things? > > I believe it's > gem install something -- --disable-fastthread No, is a ruby configure process, not gem installation. Mongrel will no longer mark fastthread as dependency but try to require it if is found. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From lists at ruby-forum.com Sat Nov 22 18:52:29 2008 From: lists at ruby-forum.com (Roger Pack) Date: Sun, 23 Nov 2008 00:52:29 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: <328c1f82d9cec5445ce43982c1ebdcca@ruby-forum.com> References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> <532a46cbadd41fad634d910181cce128@ruby-forum.com> <328c1f82d9cec5445ce43982c1ebdcca@ruby-forum.com> Message-ID: <9b76a3b9ca773c2b8fbe34a399f9bea7@ruby-forum.com> I assume that's the equivalent of using SVN trunk? > tarball -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Nov 22 18:41:03 2008 From: lists at ruby-forum.com (Roger Pack) Date: Sun, 23 Nov 2008 00:41:03 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: <532a46cbadd41fad634d910181cce128@ruby-forum.com> References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> <532a46cbadd41fad634d910181cce128@ruby-forum.com> Message-ID: Hmm looks like that didn't help. I typically just install mongrel from the mongrel SVN into 1.9. -=R -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Nov 22 18:26:26 2008 From: lists at ruby-forum.com (Joe Carroll) Date: Sun, 23 Nov 2008 00:26:26 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> Message-ID: <532a46cbadd41fad634d910181cce128@ruby-forum.com> Roger Pack wrote: > I believe it's > gem install something -- --disable-fastthread nope. that didn't help. but thanks anyway. still getting the same: $ sudo /usr/local/bin/gem install mongrel -- --disable-fastthread Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb install mongrel -- --disable-fastthread creating Makefile make gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.5.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -D_XOPEN_SOURCE=1 -O2 -g -Wall -Wno-parentheses -fno-common -pipe -fno-common -o fastthread.o -c fastthread.c fastthread.c:13:20: error: intern.h: No such file or directory In file included from fastthread.c:14: /usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete fastthread.c:349: error: static declaration of ?rb_mutex_locked_p? follows non-static declaration /usr/local/include/ruby-1.9.1/ruby/intern.h:674: error: previous declaration of ?rb_mutex_locked_p? was here fastthread.c:366: error: static declaration of ?rb_mutex_try_lock? follows non-static declaration /usr/local/include/ruby-1.9.1/ruby/intern.h:675: error: previous declaration of ?rb_mutex_try_lock? was here fastthread.c: In function ?lock_mutex?: fastthread.c:392: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c:392: error: (Each undeclared identifier is reported only once fastthread.c:392: error: for each function it appears in.) fastthread.c: At top level: fastthread.c:406: error: static declaration of ?rb_mutex_lock? follows non-static declaration /usr/local/include/ruby-1.9.1/ruby/intern.h:676: error: previous declaration of ?rb_mutex_lock? was here fastthread.c: In function ?set_critical?: fastthread.c:438: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c: In function ?unlock_mutex?: fastthread.c:447: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c: At top level: fastthread.c:463: error: static declaration of ?rb_mutex_unlock? follows non-static declaration /usr/local/include/ruby-1.9.1/ruby/intern.h:677: error: previous declaration of ?rb_mutex_unlock? was here fastthread.c: In function ?rb_mutex_exclusive_unlock?: fastthread.c:499: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c: At top level: fastthread.c:524: error: static declaration of ?rb_mutex_synchronize? follows non-static declaration /usr/local/include/ruby-1.9.1/ruby/intern.h:679: error: previous declaration of ?rb_mutex_synchronize? was here fastthread.c: In function ?wait_condvar?: fastthread.c:620: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c:626: warning: passing argument 1 of ?rb_ensure? from incompatible pointer type fastthread.c: In function ?rb_condvar_broadcast?: fastthread.c:684: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c: In function ?signal_condvar?: fastthread.c:703: error: ?rb_thread_critical? undeclared (first use in this function) fastthread.c: In function ?rb_queue_marshal_load?: fastthread.c:824: error: ?struct RArray? has no member named ?len? fastthread.c:828: error: ?struct RArray? has no member named ?ptr? fastthread.c:828: error: ?struct RArray? has no member named ?len? fastthread.c: In function ?Init_fastthread?: fastthread.c:1182: error: ?rb_thread_critical? undeclared (first use in this function) make: *** [fastthread.o] Error 1 Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/fastthread-1.0.1 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/fastthread-1.0.1/ext/fastthread/gem_make.ou -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Mon Nov 24 10:46:26 2008 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 24 Nov 2008 13:46:26 -0200 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> <532a46cbadd41fad634d910181cce128@ruby-forum.com> Message-ID: <71166b3b0811240746j7eccaf10ra3c5bdd808f0fc1@mail.gmail.com> On Sat, Nov 22, 2008 at 9:41 PM, Roger Pack wrote: > Hmm looks like that didn't help. > I typically just install mongrel from the mongrel SVN into 1.9. > -=R ? Sorry but I get lost if you cut the whole thread that you reply to. fastthread dependency is not removed right now, is planned. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From luislavena at gmail.com Mon Nov 24 11:00:21 2008 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 24 Nov 2008 14:00:21 -0200 Subject: [Mongrel] Mongrel cluster processes not starting In-Reply-To: <2fec85160811212323v70bd3167q100904932cfc8b70@mail.gmail.com> References: <2fec85160811212323v70bd3167q100904932cfc8b70@mail.gmail.com> Message-ID: <71166b3b0811240800j3a0f41f0ub2beb0b5235b7119@mail.gmail.com> On Sat, Nov 22, 2008 at 5:23 AM, Richard McIntyre wrote: > I am starting my mongrel processes with > > mongrel_rails cluster::start > > or > > sudo mongrel_rails cluster::start > > starting port 8000 > starting port 8001 > starting port 8002 > starting port 8003 > > and they appear to have started, but they haven't > > mongrel_rails cluster::status > > gives me > > missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8000.pid > missing mongrel_rails: port 8000 > > missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8001.pid > missing mongrel_rails: port 8001 > > missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8002.pid > missing mongrel_rails: port 8002 > > missing pid_file: /var/www/railsdeploy/current/tmp/pids/mongrel.8003.pid > missing mongrel_rails: port 8003 > > Why could this be?? I have opened up the permissions so all can access > these, I have even tried it at 777 but I get the same results. > > If I add dummy pids to the directory it notices they are there and > gives me errors on start up so it is recognizing this directory, but > not bothering to add the pids or start up... > > Somebody help! > Did you tried to start just one mongrel? mongrel_rails start and check if your application is not failing for other reasons. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From lists at ruby-forum.com Mon Nov 24 11:21:50 2008 From: lists at ruby-forum.com (Roger Pack) Date: Mon, 24 Nov 2008 17:21:50 +0100 Subject: [Mongrel] mongrel and fastthread on ruby 1.9? In-Reply-To: <71166b3b0811240546l1b5b0522gd86f7a5586d73f18@mail.gmail.com> References: <71166b3b0711180956u4576248bu9ec5c88ce0a94dbf@mail.gmail.com> <31f658c12f395e47f3acf8f42f79129b@ruby-forum.com> <71166b3b0811240546l1b5b0522gd86f7a5586d73f18@mail.gmail.com> Message-ID: <37d8fa2bddb203453c427a345fccbc06@ruby-forum.com> > Mongrel will no longer mark fastthread as dependency but try to > require it if is found. Nice. -=R -- Posted via http://www.ruby-forum.com/. From usenet at laliluna.de Thu Nov 27 17:26:34 2008 From: usenet at laliluna.de (Sebastian Hennebrueder) Date: Thu, 27 Nov 2008 23:26:34 +0100 Subject: [Mongrel] Security Message-ID: <492F1E9A.6000903@laliluna.de> Hello, I just setup my first mongrel server behind a apache proxy. I recognized that a lot of explanation in the wiki and on other external pages configure mod_proxy to connect to a localhost but simple do not configure mongrel to listen only on localhost as well. This leads easily to security issues for unexperienced administrators. sample doc: http://mongrel.rubyforge.org/wiki/Apache My proposal is that for the mod_proxy examples the listening IP is always added. This might encourage to use a local port as default configuration. Best Regards Sebastian Hennebrueder http://www.laliluna.de From usenet at laliluna.de Thu Nov 27 17:20:31 2008 From: usenet at laliluna.de (Sebastian Hennebrueder) Date: Thu, 27 Nov 2008 23:20:31 +0100 Subject: [Mongrel] Security Message-ID: <492F1D2F.2070404@laliluna.de> Hello, I just setup my first mongrel server behind a apache proxy. I recognized that a lot of explanation in the wiki and on other external pages configure mod_proxy to connect to a localhost but simple do not configure mongrel to listen only on localhost as well. This leads easily to security issues for unexperienced administrators. sample doc: http://mongrel.rubyforge.org/wiki/Apache My proposal is that for the mod_proxy examples the listening IP is always added. This might encourage to use a local port as default configuration. Best Regards Sebastian Hennebrueder http://www.laliluna.de