Dancer, Apache & Mason deployment problem
Hi, I'm new to Dancer and having moved from HTML::Mason I'm much impressed, but I'm having deployment problems. This is my apache.conf PerlModule Dancer::Template::Mason2 <VirtualHost *:80> DocumentRoot path_t_app ServerName www.test.new <Location /> SetHandler perl-script PerlHandler Plack::Handler::Apache2 PerlResponseHandler Plack::Handler::Apache2 PerlSetVar psgi_app path_to_app/bin/app.pl </Location> </VirtualHost> Nothing unusual in Apache logs on start up. But when access the site I get: * CODE(0x7f7bdc4aba50) not memoized at /usr/share/perl/5.10/Memoize.pm line 204.* /usr/share/perl/5.10/Memoize.pm around line 204 201 sub flush_cache {202 my $func = _make_cref($_[0], scalar caller);203 my $info = $memotable{$revmemotable{$func}};204 die "$func not memoized" unless defined $info;205 for my $context (qw(S L)) {206 my $cache = $info->{$context};207 if (tied %$cache && ! (tied %$cache)->can('CLEAR')) { Stack main in -e l. 0 main in -e l. 0 Plack::Handler::Apache2 in /usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm l. 86 Plack::Handler::Apache2 in /usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm l. 65 Dancer::Handler in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 102 Dancer::Handler in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 71 Dancer::Handler in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 87 Dancer::Object in /usr/local/share/perl/5.10.1/Dancer/Object.pm l. 15 Dancer::Error in /usr/local/share/perl/5.10.1/Dancer/Error.pm l. 34 Dancer::Error in /usr/local/share/perl/5.10.1/Dancer/Error.pm l. 248 In standalone mode and using apache as local proxy everything works fine. If I remove "PerlModule Dancer::Template::Mason2" from the config, the server starts, the web apage partially renders but I get: "unknown template engine 'mason2', perhaps you need to install Dancer::Template::Mason2? at /usr/local/share/perl/5.10.1/Dancer/Template.pm line 17" I have latest version of Dancer & Mason modules. Does any one understand what I'm doing wrong? Thanks Stephen
Hi Stephen, I'm sorry, but I don't have any experience with Mason. I was wondering if this issue was resolved for you? If so, could you share with us how it was resolved so we could add it to the Deployment document? S. P.S. Props on the activeg.org site. :)
Hi Ta for writing. I'm ignoring the problem for the as it will be a while before I need to deploy for real. I'm just using an apache proxy for the time being. I'm not sure if it is a Mason prob or not. I need to isolate the problem. When I come back to it I am sure to share the answer. I'm more concerned with the error handling at the mo on my other post. On Fri, Jul 8, 2011 at 4:21 PM, sawyer x <xsawyerx@gmail.com> wrote:
Hi Stephen,
I'm sorry, but I don't have any experience with Mason. I was wondering if this issue was resolved for you? If so, could you share with us how it was resolved so we could add it to the Deployment document?
S.
P.S. Props on the activeg.org site. :)
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (2)
-
sawyer x -
Stephen Fenwick-Paul