[Catalyst] Problem with Catalyst-Runtime 5.7004 FastCGI
Hello! I just upgraded Catalyst-Runtime to 5.7004, and I encounter a serious problem when using my application with the FastCGI engine. The appplication initializes correctly, but when it gets a requests it begins executing it (I see int he log it restores session data, etc...) but then it dies with: [Tue Nov 07 18:05:07 2006] [error] [client 81.174.16.226] FastCGI: server /u/www/san/San/script/san_fastcgi.pl stderr: [error] Caught exception in engine Can't locate object method FILENO via package FCGI::Stream at /usr/lib64/perl5/5.8.8/x86_64-linux/IO/Handle.pm line 380. which leads (of course) to an Internal Server Error in the browser. Rolling back to 5.7003 fixed the thing, so I'm sticking with that version for now. However, I'm reporting. ,) Thanks, Michele. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [Announce] Catalyst-Runtime 5.7004
Marcello Romani wrote: Hi, I think I found a dependency problem. The test scripts related to fastcgi require File::Slurp even when they whould be skipped. In fact, after installing File::Slurp those tests were corectly skipped and the installation of the entire module was successfull. In short, File::Slurp should be a requirement only if one enables fastcgi tests. Thanks, lighttpd tests have been fixed in trunk. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Problem with Catalyst-Runtime 5.7004 FastCGI
Michele Beltrame wrote: Hello! I just upgraded Catalyst-Runtime to 5.7004, and I encounter a serious problem when using my application with the FastCGI engine. The appplication initializes correctly, but when it gets a requests it begins executing it (I see int he log it restores session data, etc...) but then it dies with: [Tue Nov 07 18:05:07 2006] [error] [client 81.174.16.226] FastCGI: server /u/www/san/San/script/san_fastcgi.pl stderr: [error] Caught exception in engine Can't locate object method FILENO via package FCGI::Stream at /usr/lib64/perl5/5.8.8/x86_64-linux/IO/Handle.pm line 380. which leads (of course) to an Internal Server Error in the browser. Rolling back to 5.7003 fixed the thing, so I'm sticking with that version for now. However, I'm reporting. ,) I just fixed this in trunk, it will be in 5.7005 which I think we'll release very soon. Sorry about this. Workaround is to remove all references to *STDOUT-opened() in Engine.pm and Engine::CGI, see this diff for reference: http://dev.catalyst.perl.org/changeset/5441 ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] [Announce] Catalyst 5.7005
As you might have seen on the lists earlier today, there was a problem introduced into the fastcgi engine in the last release. This release fixes that, as well as re-adding the installation instructions, which were removed from the previous release. 5.7005 2006-11-07 19:37:35 - Fixed lighttpd tests to be properly skipped. - Moved IE workarounds to exist only in the HTTP engine. - Added installation instructions (from Catalyst-Manual dist) -- With regardsMarcus Ramberg ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] FastCgiExternalServer and Remote static content
On Tue, 2006-11-07 at 13:31 -0800, Andrew Peebles wrote: Want to run apache on bare machine inside DMZ. Want to run MyApp on second machine, outside the DMZ. Will use FastCgiExternalServer to accomplish this. MyApp's static content is on second machine, not visible on apache machine's file systems. Seems Catalyst::Plugin::Static is the only solution. Am trying to get that to work and anticipate success ... however, is there something I am missing? Is there another way to do this? If performance is what you're concerned about, you should either find a way to get the static content onto the apache machine (rsync, NFS) or use mod_cache to cache it, avoiding trips to the other machine for the static stuff. - Perrin ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::P::Session::Store::DBIC
Daniel Westermann-Clark wrote: On 2006-11-07 11:03:43 +1000, Ivan Wills wrote: I'm trying to use C::P::Session::Store::DBIC for storing my sessions but I am getting an error due to it apparently using the wrong DBIC module. Here is a example error: [error] Caught exception in engine DBIx::Class::ResultSet::find_or_create(): Error executing 'SELECT me.member_role_timestamp, me.member_id, me.role_id FROM member_role me WHERE ( me.session_id = ? )': ERROR: column me.session_id does not exist It looks like the session and authentication configuration is getting mixed up somehow. Check that the $c-config-{session}{dbic_class} value corresponds to your session table class and not your user-role mapping class. The $c-config-{session}{dbic_class} points to the DBIC model App::Model::DB as per the documentation (and pointing it to the session class App::Schema::Session causes a runtime error). Is there some way to tell C::P::S::Store::DBIC the correct table to use? Ivan Wills ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Anyone got a nice form generator for dbix::class objects?
Josef Karthauser wrote: I'm in a twisty maze of passages all alike. :) Having just started playing with Catalyst, I'm trying to work out the best way to implement an editing facility for DBIx::Class::RecordSet objects. I think you mean ResultSet ;) Ideally instead of coding a widget within a controller I'd like to control the layout within the templates. This means that I need to be able to call something like: [% record.editboxfor($column) % or some such thing. Is this a sensible thing to do? Has anyone got any nice recipies to solve this? Good places to start would be the docs for either DBIx::Class::WebForm or (as most people seem to prefer at present) HTML::Widget. Catalyst::Manual::Tutorial is definitely worth a read too, as it covers the same sort of thing you're doing. If you're using a decent view like Template Toolkit, you will be able to manipulate forms from either Controller or View as you see fit. HTH ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::P::Session::Store::DBIC
On 2006-11-08 08:16:22 +1000, Ivan Wills wrote: The $c-config-{session}{dbic_class} points to the DBIC model App::Model::DB as per the documentation (and pointing it to the session class App::Schema::Session causes a runtime error). Is there some way to tell C::P::S::Store::DBIC the correct table to use? In this case, dbic_class should be DB::Session. This corresponds to what you pass to $c-model to access the session resultset. -- Daniel Westermann-Clark ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::P::Session::Store::DBIC
Daniel Westermann-Clark wrote: On 2006-11-08 08:16:22 +1000, Ivan Wills wrote: The $c-config-{session}{dbic_class} points to the DBIC model App::Model::DB as per the documentation (and pointing it to the session class App::Schema::Session causes a runtime error). Is there some way to tell C::P::S::Store::DBIC the correct table to use? In this case, dbic_class should be DB::Session. This corresponds to what you pass to $c-model to access the session resultset. Thanks that worked, but I'm not sure what it means as there is not Module DB::Session that I have created is this some magic of DBIx::Class? Ivan Wills ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] catalyst can be reloaded automatically in Apache?
Hi, There is a "-r" argument can make catalyst reload the modules automatically when some modules were changed. How to make catalyst can automatically reload in Apache? Thanks Mao Dengfeng ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] catalyst can be reloaded automatically in Apache?
There is (apparently) an option or addon for mod_perl to make this happen, but it's not recommended for production machines (obviously). It also adds some additional overhead. http://perl.apache.org/docs/2.0/api/Apache2/Reload.html That's the one! Mao DengFeng-e13751 wrote: Hi, There is a -r argument can make catalyst reload the modules automatically when some modules were changed. How to make catalyst can automatically reload in Apache? Thanks Mao Dengfeng ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] New C::P::Session::Store::DBIC Question
Hi, Is it possible to tell C::P::Session::Store::DBIC (or in fact any Session::Store plugin) to express the session expiry time as a time stamp (particularly with a time zone) ranther than as an integer. There are several reasons why I would like to do this, one is it is easier when looking in the database to see when the expiry time will occur, also it makes the expiry time more portable if you move you application between servers in different timezones and finally it may be a reglatory requirement for future projects that my company is looking at working. Thanks Ivan Wills ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] catalyst can be reloaded automatically in Apache?
On Tuesday 07 November 2006 20:05, Lee Standen wrote: There is (apparently) an option or addon for mod_perl to make this happen, but it's not recommended for production machines (obviously). It also adds some additional overhead. I doubt that's going to work with Catalyst. When Catalyst restarts, it examines all modules under M/ V/ and C/ to attempt to associate actions with URIs (among other things). If you just reload the modules out from under it, changes aren't going to fully take effect. In some cases, I could see it working. In others, I would expect massive breakage. Not recommended. You should be using the dev server for development. There's no advantage to using Apache in this case, it only complicates things unnecessarily. If you're seeing large differences between the dev server and Apache, please file a bug report so we can fix the dev server. Thanks. Regards, Jonathan Rockway -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)-config(name = do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ;$;]-[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;-setup; pgpp3Om6ZZidv.pgp Description: PGP signature ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/