SID-01213: Issues with migrating wiki to other domain
| Status: |
Answered |
TWiki version: |
4.3.1 |
Perl version: |
5.10.1-8ubuntu2.1 |
| Category: |
CategoryDeployment |
Server OS: |
2.6.32-32-server Ubuntu 10.04.2 LTS |
Last update: |
14 years ago |
We're in the process of setting up another DR site and a requirement of this is that the wiki (currently using twiki on twiki.domain) is also available on twiki.dr.domain.
The twiki directory was tarred up and copied to the new box, but we're having some trouble actually getting it to work. What was done regarding the config was (I think) changing all the url paths in
LocalSite.cfg. Which didn't work...
(should it just have been add the extra url into
PermittedRedirectHostUrls ?)
The error log gives me a number of these entries: | 2011-06-23 - 12:30 | Plugins: could not fully register
EditTablePlugin, no plugin topic | 2011-06-23 - 12:30 | Plugins: could not fully register
HeadlinesPlugin, no plugin topic | 2011-06-23 - 12:30 | Plugins: could not fully register
InterwikiPlugin, no plugin topic which I haven't been able to find an answer for.
All file permissions match the previous installation, apache works fine and mod_perl looks ok also. The output I was getting was a 200 from apache with a long error about Assert.pm
Assertion failed! at /var/www/twiki/lib/Assert.pm line 61 Assert::ASSERT('') called at /var/www/twiki/lib/TWiki/Store.pm line 1333 TWiki::Store::topicExists('TWiki::Store=HASH(0x7f531e802b90)', 'Main', 'Main.InternalVacancies') called at /var/www/twiki/lib/TWiki/Prefs/PrefsCache.pm line 157 TWiki::Prefs::PrefsCache::loadPrefsFromTopic('TWiki::Prefs::PrefsCache=HASH(0x7f531f6cdf08)', 'Main', 'Main.InternalVacancies', undef) called at /var/www/twiki/lib/TWiki/Prefs/PrefsCache.pm line 88 TWiki::Prefs::PrefsCache::new('TWiki::Prefs::PrefsCache', 'TWiki::Prefs=HASH(0x7f531ede29f8)', undef, 'TOPIC', 'Main', 'Main.InternalVacancies') called at /var/www/twiki/lib/TWiki/Prefs.pm line 300 TWiki::Prefs::getTopicPreferencesValue('TWiki::Prefs=HASH(0x7f531ede29f8)', 'ALLOWTOPICVIEW', 'Main', 'Main.InternalVacancies') called at /var/www/twiki/lib/TWiki/Access.pm line 125 TWiki::Access::checkAccessPermission('TWiki::Access=HASH(0x7f531ee3f680)', 'VIEW', 'BaseUserMapping_666', undef, undef, 'Main.InternalVacancies', 'Main') called at /var/www/twiki/lib/TWiki.pm line 1976 TWiki::_TOC('TWiki=HASH(0x7f531e802fe0)', '<link rel="stylesheet" type="text/css" href="https://twiki.dr...', 'WebHome', 'Main', '"Main.InternalVacancies" depth="3"') called at /var/www/twiki/lib/TWiki.pm line 2937 TWiki::handleCommonTags('TWiki=HASH(0x7f531e802fe0)', '<link rel="stylesheet" type="text/css" href="https://www.twiki.org/p/pub/Support/SID-01213/home...', 'Main', 'WebHome', 'TWiki::Meta=HASH(0x7f531ee3e8b8)') called at /var/www/twiki/lib/TWiki/UI/View.pm line 392 TWiki::UI::View::_prepare('<link rel="stylesheet" type="text/css" href="https://www.twiki.org/p/pub/Support/SID-01213/home...', 'TWiki=HASH(0x7f531e802fe0)', 'Main', 'WebHome', 'TWiki::Meta=HASH(0x7f531ee3e8b8)', 0) called at /var/www/twiki/lib/TWiki/UI/View.pm line 373 TWiki::UI::View::view('TWiki=HASH(0x7f531e802fe0)') called at /var/www/twiki/lib/TWiki/UI.pm line 166 TWiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 416 eval {...} called at /usr/share/perl5/Error.pm line 408 Error::subs::try('CODE(0x7f531e1b4528)', 'HASH(0x7f531ee3f320)') called at /var/www/twiki/lib/TWiki/UI.pm line 204 TWiki::UI::run('CODE(0x7f531e7a7a50)', 'view', 1) called at /var/www/twiki/bin/view line 32
ModPerl::ROOT::ModPerl::Registry::var_www_twiki_bin_view::handler('Apache2::RequestRec=SCALAR(0x7f531ddf3a60)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204 eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7f531dfc3570)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f531dfc3570)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f531ddf3a60)') called at -e line 0 eval {...} called at -e line 0.
Which after adding use diagnostics; into bin/view gives me a more useful error message of: Software error:
Use of uninitialized value $TWiki::Plugins::ObjectPlugin::objectPluginDefUseEMBED in string eq at /var/www/twiki/lib/TWiki/Plugins/ObjectPlugin.pm line 69.
I've tried disabling all the plugins from the config file, also moving the plugin directory out of the way, but that hasn't helped.
Is there something obvious we've missed? or what should I be searching for to fix the problem?...
Thanks, Sean.
ok. I've got a slightly different approach :)
I re-copied all of /var/ww/twiki to the new machine and edited
LocalSite.cfg:
$TWiki::cfg{DefaultUrlHost}
$TWiki::cfg{ScriptUrlPath}
$TWiki::cfg{PubUrlPath}
to point to the DR URL.
Now, it mostly works...
The issue is, that while most of the links function correctly, some are still referencing the live site and so won't work if that is down...
So, what I want is to rewrite the content of the page to replace /twiki.domain/twiki.dr.domain/
I've used mod_ext_filter in apache to pipe the content through sed, but all I get back from a normal browser is what looks like binary data.
Although this could be something to do with the ssl as viewing the page via elinks (text-based browser) from a terminal it looks fine!
What with perl being perl, is it possible to add a content rewrite into twiki itself?
That way we could just rsync the content to keep it up to date should it be required...
--
SeanMeacher - 2011-06-23
Discussion and Answer
Look into
GlobalReplacePlugin.
--
PeterThoeny - 2011-07-30
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-09-08
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.