From: Andreas N. <an...@kl...> - 2003-07-07 18:33:44
|
Hey y'all, here my - admittedly short - tests of OI2Beta01: 0) compilation: no problems inkl. make test 1) Upgrade test beta00 -> beta01 - copied missing log4perl.conf and replaces [% website_dir %] - oi2_manage upgrade --website_dir=/data/oi/oi2test/ PROGRESS: Starting task PROGRESS: Upgrading packages ... this may take a while ... PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base-2.03.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_box-2.02.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_error-2.04.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_group-2.02.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_page-2.05.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_security-2.02.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_template-3.02.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_theme-2.02.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/base_user-2.04.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/full_text-2.03.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/news-2.03.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/lookup-2.01.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/object_activity-2.03.zip PROGRESS: Task complete PROGRESS: Starting task PROGRESS: Finished with installation of /usr/src/OpenInteract-1.99_01/pkg/system_doc-2.01.zip PROGRESS: Task complete PROGRESS: Package upgrade complete Caught error: Can't locate object method "new" via package "OpenInteract::Config::TransferSample" (perhaps you forgot to load "OpenInteract::Config::TransferSample"?) at /usr/lib/perl5/site_perl/5.8.0/OpenInteract2/Manage/Website/Upgrade.pm line 47, <CONF> line 135. at /usr/bin/oi2_manage line 197 [oi2_manage]: Caught exception during task execution. Can't locate object method "new" via package "OpenInteract::Config::TransferSample" (perhaps you forgot to load "OpenInteract::Config::TransferSample"?) at /usr/lib/perl5/site_perl/5.8.0/OpenInteract2/Manage/Website/Upgrade.pm line 47, <CONF> line 135. -> I chose to ignore this for now -> started website with mysql/lwp -> startup ok -> when request comes in: New client attached from: 127.0.0.1 Cannot process template [base_main]: Undefined subroutine &Template::Parser::new_style called at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Template/Parser.pm line 179. daemon: Reaped child with PID [1] - stopped here - 2) Fresh install - oi2_manage create_website runs w/o a problem - used server.ini with lwp and a MySQL DB - did install_sql --package=SYSTEM -> OK - tried to start the daemon -> not OK - here the tail of oi2.log: 20:28:56 INFO OI2.REQUEST OpenInteract2::Request (309) Loaded theme 1 ok, getting values 20:28:57 ERROR OI2.ACTION OpenInteract2::Controller (146) Cannot create controller [main] -- Failure to get factory class for [main]: Factory type [main] is not defined in [OpenInteract2::Controller] 20:28:57 INFO OI2.RESPONSE OpenInteract2::Response::LWP (37) Sending LWP response 20:28:57 INFO OI2.RESPONSE OpenInteract2::Response::LWP (42) Saved session ok 20:28:57 FATAL OI2 Log::Log4perl::Logger (740) Caught error from response: Not a SCALAR reference at /usr/lib/perl5/site_perl/5.8.0/OpenInteract2/Response/LWP.pm line 62. 20:28:57 FATAL OI2 Log::Log4perl::Logger (740) at /usr/bin/oi2_daemon line 161 20:28:57 INFO OI2 main (219) Reaped child with PID [1] - stopped here - I` ll try to find some time to find out what this is, but hints a surely appreciated.. later, Andreas |
From: Chris W. <ch...@cw...> - 2003-07-07 19:17:21
|
Andreas Nolte wrote: > 1) Upgrade test beta00 -> beta01 > - copied missing log4perl.conf and replaces [% website_dir %] > - oi2_manage upgrade --website_dir=/data/oi/oi2test/ > ... > [oi2_manage]: Caught exception during task execution. > Can't locate object method "new" via package > "OpenInteract::Config::TransferSample" (perhaps you forgot to load > "OpenInteract::Config::TransferSample"?) at > /usr/lib/perl5/site_perl/5.8.0/OpenInteract2/Manage/Website/Upgrade.pm > line 47, <CONF> line 135. Whoops! Haven't tested this yet... it looks like it only bailed on the last step, copying the sitewide templates over. It's fixed in CVS. > -> I chose to ignore this for now > -> started website with mysql/lwp > -> startup ok > -> when request comes in: > New client attached from: 127.0.0.1 > Cannot process template [base_main]: Undefined subroutine > &Template::Parser::new_style called at > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Template/Parser.pm line 179. > daemon: Reaped child with PID [1] This is a *weird* TT error. What's strange is that in my TT version (2.09) 'new_style' is defined about 10 lines under where this error was thrown. And OI doesn't have anything to do with TT parsers (plugins, providers and contexts, yes, but no parsers). What TT version are you using? > 2) Fresh install > - oi2_manage create_website runs w/o a problem > - used server.ini with lwp and a MySQL DB > - did install_sql --package=SYSTEM -> OK > - tried to start the daemon -> not OK > - here the tail of oi2.log: > 20:28:56 INFO OI2.REQUEST OpenInteract2::Request (309) Loaded theme 1 > ok, getting values > 20:28:57 ERROR OI2.ACTION OpenInteract2::Controller (146) Cannot create > controller [main] -- Failure to get factory class for [main]: Factory > type [main] is not defined in [OpenInteract2::Controller] You'll need to change your server config. Sorry about not mentioning this in the changelog (future betas will have much more detailed logs). You should have the following entries in the 'content_generator' and 'controller' sections: ======================================== # # Define the different content generators... [content_generator] default = TT [content_generator TT] class = OpenInteract2::ContentGenerator::TT2Process method = process # Sample for Text::Template #[content_generator TextTmpl] #class = OpenInteract2::ContentGenerator::TextTemplate #method = process # Sample for HTML::Template #[content_generator HTMLT] #class = OpenInteract2::ContentGenerator::HtmlTemplate #method = process # # Define the main controller... [controller tt-template] content_generator = TT class = OpenInteract2::Controller::MainTemplate [controller html-template] content_generator = HTMLT class = OpenInteract2::Controller::MainTemplate [controller text-template] content_generator = TextTmpl class = OpenInteract2::Controller::MainTemplate [controller raw] class = OpenInteract2::Controller::Raw # The action table defines ... [action_info default] controller = tt-template content_generator = TT ======================================== Thanks for the report! Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |
From: Andreas N. <an...@kl...> - 2003-07-08 20:31:16
|
> > New client attached from: 127.0.0.1 > > Cannot process template [base_main]: Undefined subroutine > > &Template::Parser::new_style called at > > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Template/Parser.pm line 179. > > daemon: Reaped child with PID [1] > > This is a *weird* TT error. What's strange is that in my TT version > (2.09) 'new_style' is defined about 10 lines under where this > error was thrown. And OI doesn't have anything to do with TT parsers > (plugins, providers and contexts, yes, but no parsers). > > What TT version are you using? I am also using 2.09. I suspect a weired error from having an older style server.ini ( see below ). I do not think it`s worth investigating more. For the fresh install: after updating the server.ini everything works ! later, Andreas |