You are here: Foswiki>Tasks Web>Item4758 (17 Nov 2009, MichaelDaum)Edit Attach

Item4758: YetAnotherDBCacheContrib fails to create a subweb cache

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: YetAnotherDBCacheContrib
Branches:
Reported By: TWiki:Main.FrankSpangenberg
Waiting For: TWiki:Main/ThomasWeigert
Last Change By: MichaelDaum
TWiki:Plugins.YetAnotherDBCacheContrib fails to create a subweb cache.

Example

Web: Thesis

Subweb: Project

Topic: ThesisProject

Plugin: TWiki:Plugins.YetAnotherXpTrackerPlugin

Error message:

During save of ThesisProject an error was found by the version control system. Please notify your TWiki administrator.

=Can't create file /home/httpd/twiki/pub/_work_areas/DBCacheContrib/Thesis/Project_stamp - No such file or directory at /usr/share/perl/5.8/CGI/Carp.pm line 314 
CGI::Carp::realdie('Can\'t create file /home/httpd/twiki/pub/_work_areas/DBCacheC...') called at /usr/share/perl/5.8/CGI/Carp.pm line 385 CGI::Carp::die('Can\'t create file 
/home/httpd/twiki/pub/_work_areas/DBCacheC...') called at /home/httpd/twiki/lib/TWiki/Func.pm line 1997 TWiki::Func::saveFile('/home/httpd/twiki/pub/_work_areas/DBCacheContrib/Thesis/Proje...', 
'ThesisProject') called at /home/httpd/twiki/lib/TWiki/Contrib/DBCacheContrib.pm line 100 TWiki::Contrib::DBCacheContrib::invalidate('TWiki::Plugins::XpTrackerPlugin::WebDB', 'Thesis/Project', 
'ThesisProject') called at /home/httpd/twiki/lib/TWiki/Plugins/XpTrackerPlugin/Functions.pm line 1948 TWiki::Plugins::XpTrackerPlugin::Functions::xpCacheInvalidate('Thesis/Project', 'ThesisProject') 
called at /home/httpd/twiki/lib/TWiki/Plugins/XpTrackerPlugin.pm line 198 TWiki::Plugins::XpTrackerPlugin::afterSaveHandler('%META:TOPICINFO{author="FrankSpangenberg" date="1191312606" f...', 
'ThesisProject', 'Thesis/Project', '', 'TWiki::Meta=HASH(0x85594cc)') called at /home/httpd/twiki/lib/TWiki/Plugin.pm line 245 TWiki::Plugin::invoke('TWiki::Plugin=HASH(0x8d0d280)', 'afterSaveHandler', 
'%META:TOPICINFO{author="FrankSpangenberg" date="1191312606" f...', 'ThesisProject', 'Thesis/Project', '', 'TWiki::Meta=HASH(0x85594cc)') called at /home/httpd/twiki/lib/TWiki/Plugins.pm line 333 
TWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x88cde6c)', 'afterSaveHandler', '%META:TOPICINFO{author="FrankSpangenberg" date="1191312606" f...', 'ThesisProject', 'Thesis/Project', '', 
'TWiki::Meta=HASH(0x85594cc)') called at /home/httpd/twiki/lib/TWiki/Plugins.pm line 663 TWiki::Plugins::afterSaveHandler('TWiki::Plugins=HASH(0x88cde6c)', 
'%META:TOPICINFO{author="FrankSpangenberg" date="1191312606" f...', 'ThesisProject', 'Thesis/Project', '', 'TWiki::Meta=HASH(0x85594cc)') called at /home/httpd/twiki/lib/TWiki/Store.pm line 893 
TWiki::Store::saveTopic('TWiki::Store=HASH(0x88cdfd4)', 'TWiki::User=HASH(0x89c2178)', 'Thesis/Project', 'ThesisProject', '---+ Thesis Project\x{a}\x{a}---++ Time schedule\x{a}%TIMELINE{ "htt...', 
'TWiki::Meta=HASH(0x8e0da54)', 'HASH(0x8e0da6c)') called at /home/httpd/twiki/lib/TWiki/UI/Save.pm line 530 TWiki::UI::Save::__ANON__() called at /home/httpd/twiki/lib/CPAN/lib//Error.pm line 379 
eval {...} called at /home/httpd/twiki/lib/CPAN/lib//Error.pm line 371 Error::subs::try('CODE(0x86319c0)', 'HASH(0x8e0dbe0)') called at /home/httpd/twiki/lib/TWiki/UI/Save.pm line 538 
TWiki::UI::Save::save('TWiki=HASH(0x82ffcd4)') called at /home/httpd/twiki/lib/TWiki/UI.pm line 159 TWiki::UI::__ANON__() called at /home/httpd/twiki/lib/CPAN/lib//Error.pm line 379 eval {...} called at 
/home/httpd/twiki/lib/CPAN/lib//Error.pm line 371 Error::subs::try('CODE(0x8150364)', 'HASH(0x8e0d6d0)') called at /home/httpd/twiki/lib/TWiki/UI.pm line 199 TWiki::UI::run('CODE(0x88b7bd4)', 'save', 1) 
called =

Go back in your browser and save your changes locally.

Workaround

Create for each web a folder in pub/_work_areas/DBCacheContrib/ with the appropriate owner/group (e.g. www-data).

-- TWiki:Main/FrankSpangenberg - 02 Oct 2007

Yes, I guess this would happen. The plugin was created before the subweb feature and I have never used that feature. But you are correct, this must be fixed.

-- ThomasWeigert - 03 Oct 2007
Topic revision: r3 - 17 Nov 2009, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy