From luislavena at gmail.com Sat Aug 1 23:08:59 2009 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 2 Aug 2009 00:08:59 -0300 Subject: [Mongrel] mongrel_service on Win2003 In-Reply-To: <82abf2570907290903p1bf514aalef6da4b36bbcaaf3@mail.gmail.com> References: <82abf2570907270738n783a6b51v8e46dc8c9b7530d1@mail.gmail.com> <71166b3b0907270911y7be66394tf4170d3a7572ee76@mail.gmail.com> <4A6DFE70.6050309@gmail.com> <71166b3b0907271443l77cda66dweae735d279f0d881@mail.gmail.com> <82abf2570907280132l5d68751au5f7a948c2c5cde93@mail.gmail.com> <82abf2570907290903p1bf514aalef6da4b36bbcaaf3@mail.gmail.com> Message-ID: <71166b3b0908012008g10af62a0g3127f4160cd13e64@mail.gmail.com> On Wed, Jul 29, 2009 at 1:03 PM, Darren Syzling wrote: > 2009/7/28 Darren Syzling : >> >> Clearly I'm missing something and mongrel_service is encountering some >> lack of permission since as I said adding the service account to the >> administrators group the app works fine. >> >> Is our server tied down - yes could be pretty tightly, ipsec rules >> etc. It does have Kaspersky. I may have to grab the code for >> mongrel_service and attempt to instrument it to see how far it gets. >> >> Unless there's any further debugging steps I can try? >> >> Thanks >> Darren >> > > After posting yesterday I also came across this thread which looks > very similar to the situation I'm encountering: > http://www.ruby-forum.com/topic/155315. I wonder if this was issue was > resolved? > I believe it was. Can you check and supply the output of servicefb.log? Apologize for the detail but work has been hectic lately. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From dsyzling at gmail.com Sun Aug 2 16:11:09 2009 From: dsyzling at gmail.com (Darren Syzling) Date: Sun, 02 Aug 2009 21:11:09 +0100 Subject: [Mongrel] mongrel_service on Win2003 In-Reply-To: <71166b3b0908012008g10af62a0g3127f4160cd13e64@mail.gmail.com> References: <82abf2570907270738n783a6b51v8e46dc8c9b7530d1@mail.gmail.com> <71166b3b0907270911y7be66394tf4170d3a7572ee76@mail.gmail.com> <4A6DFE70.6050309@gmail.com> <71166b3b0907271443l77cda66dweae735d279f0d881@mail.gmail.com> <82abf2570907280132l5d68751au5f7a948c2c5cde93@mail.gmail.com> <82abf2570907290903p1bf514aalef6da4b36bbcaaf3@mail.gmail.com> <71166b3b0908012008g10af62a0g3127f4160cd13e64@mail.gmail.com> Message-ID: <4A75F2DD.7090000@gmail.com> Luis Lavena wrote: > I believe it was. > > Can you check and supply the output of servicefb.log? > > I'm not sure 0.3.4 which I'm running logs messages to this log, the thread quoted claimed you had to drop back to 0.3.3? When I experience this issue I don't get any log written at all. > Apologize for the detail but work has been hectic lately. > No problem, in the meantime I pulled the code myself and simply set the default RunCode to be RunAsService if it couldn't detect the run context, as opposed to RunAsUnknown. This at least cured the problem and allowed me to start the service as a non admin account. So specifically what I mean is: --- ServiceFB_Utils.bas (revision 1037) +++ ServiceFB_Utils.bas (working copy) @@ -112,7 +112,11 @@ else '# ok, the first paramenter in the commandline didn't work, '# report back so we could send the banner! - result = RunAsUnknown + '# DS Fix - OpenProcess on a parent to check for services.exe name does not work + '# when using a non admin account, so here we assume that the user wants to run + '# as a last ditch attempt to decide the mode we run in. + '#result = RunAsUnknown + result = RunAsService end if end if This was only a local hack to get it up and running on my side. I didn't debug too much further but presume OpenProcess on the parent is a privileged operation - so the check to see if the parent is 'services.exe' fails and then it can't detect the runmode. If you want me to absolutely confirm this I can. Let me know how you want to move forward. Regards Darren From lists at ruby-forum.com Tue Aug 18 15:18:02 2009 From: lists at ruby-forum.com (Tiberiu Motoc) Date: Tue, 18 Aug 2009 21:18:02 +0200 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: <4A4384D3.3030204@jhu.edu> References: <71166b3b0906250519y68c00193l8c47e9e136b70809@mail.gmail.com> <4A4384D3.3030204@jhu.edu> Message-ID: It sure helped me. Thanks, Tiberiu -- Posted via http://www.ruby-forum.com/. From bornboulder77 at gmail.com Fri Aug 21 14:09:58 2009 From: bornboulder77 at gmail.com (Bjorn Boulder) Date: Fri, 21 Aug 2009 11:09:58 -0700 Subject: [Mongrel] Mongrel and mimetype? Message-ID: Dear Mongrel People, lighttpd allows me to assign a mimetype to a file which ends with a specific suffix. For example if I have a file named, "helloworld.manifest", and I serve it using lighttpd, I can declare its mimetype with the following declaration in lighttpd.conf: mimetype.assign = ( ".manifest" => "text/cache-manifest", ".css" => "text/css", ".gif" => "image/gif", ".htm" => "text/html", ".html" => "text/html", ".jpeg" => "image/jpeg", ".jpg" => "image/jpeg", ".js" => "text/javascript", ".png" => "image/png", ".swf" => "application/x-shockwave-flash", ".txt" => "text/plain" ) With Mongrel, how do I declare the mimetype of "helloworld.manifest" ? -moi From bornboulder77 at gmail.com Fri Aug 21 15:35:20 2009 From: bornboulder77 at gmail.com (Bjorn Boulder) Date: Fri, 21 Aug 2009 12:35:20 -0700 Subject: [Mongrel] Mongrel and mimetype? In-Reply-To: References: Message-ID: Easy answer: Read this: http://mongrel.rubyforge.org/wiki/HOWTO Write that: --- .manifest: text/cache-manifest .css: text/css .gif: image/gif .htm: text/html .html: text/html .jpeg: image/jpeg .jpg: image/jpeg .js: text/javascript .png: image/png .swf: application/x-shockwave-flash .txt: text/plain Run this: cd rails_root mongrel_rails start -m config/mime.yaml -b On 8/21/09, Bjorn Boulder wrote: > Dear Mongrel People, > > lighttpd allows me to assign a mimetype to a file which ends with a > specific suffix. > > For example if I have a file named, "helloworld.manifest", and I serve > it using lighttpd, > I can declare its mimetype with the following declaration in lighttpd.conf: > > mimetype.assign = ( > ".manifest" => "text/cache-manifest", > ".css" => "text/css", > ".gif" => "image/gif", > ".htm" => "text/html", > ".html" => "text/html", > ".jpeg" => "image/jpeg", > ".jpg" => "image/jpeg", > ".js" => "text/javascript", > ".png" => "image/png", > ".swf" => "application/x-shockwave-flash", > ".txt" => "text/plain" > ) > > With Mongrel, how do I declare the mimetype of "helloworld.manifest" ? > > -moi >