• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I have:

  • Installed Dakar Beta 1
  • Gone through the new configure to remove all problems
  • Extracted Dakar Beta 2, and run the UpgradeTwiki script to upgrade

I get many failed patches, and a few other errors. The full log of the UpgradeTwiki script's output is pasted below.

My directory structure:

  • /export/httpd/twiki -- my Dakar Beta 1 install
  • /export/src/distro -- my unpacked Dakar Beta 2 distro

WORKAROUND: Don't do this.


host:/export/src/distro# ./UpgradeTwiki /export/httpd/twiki/bin/setlib.cfg /export/src/new_twiki/

Loaded TWiki version: Thu, 29 Sep 2005 build 6683 UpgradeTWiki called with: (), oldCfgFile = (/export/httpd/twiki/bin/setlib.cfg), newCfgFile = (/export/src/distro/bin/setlib.cfg), outputDir = (/export/src/new_twiki/)

This script will help you upgrade an existing 'Cairo' (TWiki2004090*) installation to the latest 'Dakar' release. If you need to upgrade an earlier release, you should upgrade to 'Cairo' first.

(It will also upgrade an existing Dakar beta to a more recent release)

The script works by examining the differences between a new 'Dakar' distribution and an existing 'Cairo' installation, and creating a new 'Dakar' installation that reflects your local customisations as closely as possible.

Checklist: - This script should be run in the directory where you unpacked the new 'Dakar' distribution. - The argument to the script is the path to a target directory where it will create the new installation (not the same as where you unpacked the new distribution, nor where your existing TWiki installation is) - You need enough disk space available to the target directory to copy your entire existing TWiki installation, including data and pub directories.

Notes: - The target directory does not have to be web-accessible. - The paths specified in the configuration for your existing installation will be used in the target directory. - Once you are done, you can rename the target directory as you want. - You will be prompted to enter the path to your existing installation. - I will not touch any files in your existing TWiki installation or in the distribution. Only the target directory will be written to.

Hit to continue:

Here's what's about to happen:

1) I'm going to create a new TWiki in /export/src/new_twiki/ based on this new distribution 2) I'm going to create new config files to match the configuration of your existing installation. 3) I'm going to take a copy of your existing topics and merge in the new topic files from the release. 4) I'm going to tell you what you need to do next!

Creating the /export/src/new_twiki directory structure... AUTHORS bin COPYING COPYRIGHT DakarReleaseNotes.html index.html lib LICENSE locale pub pub-htaccess.txt readme.txt robots.txt root-htaccess.txt subdir-htaccess.txt templates TWikiDocumentation.html TWikiHistory.html twiki_httpd_conf.txt TWiki_installer.pl UpgradeTwiki Now generating new LocalLib.cfg from settings in old setlib.cfg...

/export/httpd/twiki/lib is a Dakar TWiki

Merging your existing twiki (/export/src/new_twiki) with new release twiki ...

Couldn't see a .htaccess in /export/httpd/twiki/bin/ ... so I didn't try to help in that respect

doAllDakarUpgrades done.


/export/src/distro/data/ , /export/httpd/twiki/data , /export/src/new_twiki//data/

...new upgraded data will be put in /export/src/new_twiki//data/ there will be no changes made to either the source data directory or /export/src/distro/data/.

This progam will attempt to use the rcs versioning information to upgrade the contents of your distributed topics in /export/httpd/twiki/data to the content in /export/src/distro/data/.

Output: For each file that has no versioning information in your existing twiki a v will be printed For each file that has no changes from the previous release a c will be printed For each file that has no changes made in your existing release, a u will be printed For each file where no commonality could be found, your existing one is used, and a C will be printed For each file that has changes and a patch is generated a p will be printed For each file that is new in the NewReleaseDataDir a + will be printed When the script has attempted to patch the /export/src/distro/data/, *.rej files will contain the failed merges although many of these rejected chages will be discardable, please check them to see if your configuration is still ok

...checking existing files from /export/httpd/twiki/data

processing directory (creating /export/src/new_twiki//data/)

processing directory (creating /export/src/new_twiki//data//Sandbox) uuuuuuuuuu^[[5~u processing directory (creating /export/src/new_twiki//data//_default) u /export/src/distro/data//_default/WebTopicList.txt: p uu /export/src/distro/data//_default/WebHome.txt: p

/export/src/distro/data//_default/WebLeftBar.txt: p uu /export/src/distro/data//_default/WebRss.txt: p

/export/src/distro/data//_default/WebIndex.txt: p u processing directory (creating /export/src/new_twiki//data//Trash) uuuu /export/src/distro/data//Trash/WebHome.txt: p uuuuuu processing directory (creating /export/src/new_twiki//data//TWiki) u /export/src/distro/data//TWiki/TWikiVariablesAtoM.txt: p uu No common versions for /export/httpd/twiki/data/TWiki/TWikiStoreRcsFileDotPm.txt: C uuu /export/src/distro/data//TWiki/WebSearchAdvanced.txt: p uuuuuuuuuu /export/src/distro/data//TWiki/TWikiPreferences.txt: p uu No common versions for /export/httpd/twiki/data/TWiki/TWikiUISearchDotPm.txt: C uuu /export/src/distro/data//TWiki/EditTablePlugin.txt: p u /export/src/distro/data//TWiki/WebTopicList.txt: p u /export/src/distro/data//TWiki/WebLeftBarExample.txt: p

No common versions for /export/httpd/twiki/data/TWiki/SourceCode.txt: C uu /export/src/distro/data//TWiki/TWikiHistory.txt: p u /export/src/distro/data//TWiki/TextFormattingRules.txt: p uuuuuuuuuuuuuuuu /export/src/distro/data//TWiki/WebTopBar.txt: p uuuuuu No common versions for /export/httpd/twiki/data/TWiki/TWikiStoreDotPm.txt: C u /export/src/distro/data//TWiki/WebSearch.txt: p uuuuuuuuuuuuuuuuuuuuuuuuuuuu No common versions for /export/httpd/twiki/data/TWiki/TWikiUIRDiffDotPm.txt: C uu /export/src/distro/data//TWiki/WebHome.txt: p u No common versions for /export/httpd/twiki/data/TWiki/TWikiUIManageDotPm.txt: C

/export/src/distro/data//TWiki/WebLeftBar.txt: p u /export/src/distro/data//TWiki/NewUserTemplate.txt: p uuuuu No common versions for /export/httpd/twiki/data/TWiki/TWiki.txt: C uuuuuuuuu No common versions for /export/httpd/twiki/data/TWiki/RegistrationApprovals.txt: C u No common versions for /export/httpd/twiki/data/TWiki/TWikiScripts.txt: C uuu /export/src/distro/data//TWiki/TWikiInstallationGuide.txt: p uuu /export/src/distro/data//TWiki/TWikiUserAuthentication.txt: p uu /export/src/distro/data//TWiki/TablePlugin.txt: p uuuuu /export/src/distro/data//TWiki/WebTopicViewTemplate.txt: p uuuuu No common versions for /export/httpd/twiki/data/TWiki/JSCalendarContrib.txt: C uuuu No common versions for /export/httpd/twiki/data/TWiki/TWikiDotPm.txt: C uuuuuuuuuuuuuuu No common versions for /export/httpd/twiki/data/TWiki/WebLeftBarLogin.txt: C uuuuuuuu /export/src/distro/data//TWiki/TWikiVariablesNtoZ.txt: p uuuu /export/src/distro/data//TWiki/WebIndex.txt: p uuuuuuuu /export/src/distro/data//TWiki/WebTopicNonWikiTemplate.txt: p uuuu /export/src/distro/data//TWiki/TWikiUpgradeGuide.txt: p uuuuuuuuuuuuu /export/src/distro/data//TWiki/TWikiForms.txt: p

/export/src/distro/data//TWiki/PatternSkinCss.txt: p uuuuu No common versions for /export/httpd/twiki/data/TWiki/DakarReleaseNotes.txt: C u No common versions for /export/httpd/twiki/data/TWiki/WebLeftBarWebsList.txt: C u No common versions for /export/httpd/twiki/data/TWiki/TWikiTemplatesDotPm.txt: C uu processing directory (creating /export/src/new_twiki//data//Main) uuuuuu /export/src/distro/data//Main/TWikiUsers.txt: p uuuuuu /export/src/distro/data//Main/WebLeftBar.txt: p uu No common versions for /export/httpd/twiki/data/Main/UserViewTemplate.txt: C uuuu No common versions for /export/httpd/twiki/data/Main/PatternSkinUserViewTemplate.txt: C uuuuuu /export/src/distro/data//Main/TWikiGroupTemplate.txt: p

... checking for new files in /export/src/distro/data/ processing directory /export/src/distro/data

processing directory /export/src/distro/data/Main ++ processing directory /export/src/distro/data/TWiki ++++ processing directory /export/src/distro/data/Trash

processing directory /export/src/distro/data/_default

processing directory /export/src/distro/data/Sandbox

Patching topics (manually check the rejected patch (.rej) files) Patch rejected: ./_default/WebTopicList.txt.rej Patch rejected: ./_default/WebHome.txt.rej Patch rejected: ./_default/WebLeftBar.txt.rej Patch rejected: ./_default/WebRss.txt.rej Patch rejected: ./_default/WebIndex.txt.rej Patch rejected: ./Trash/WebHome.txt.rej Patch rejected: ./TWiki/TWikiVariablesAtoM.txt.rej Patch rejected: ./TWiki/WebSearchAdvanced.txt.rej Patch rejected: ./TWiki/TWikiPreferences.txt.rej Patch rejected: ./TWiki/EditTablePlugin.txt.rej Patch rejected: ./TWiki/WebTopicList.txt.rej Patch rejected: ./TWiki/WebLeftBarExample.txt.rej Patch rejected: ./TWiki/TWikiHistory.txt.rej Patch rejected: ./TWiki/TextFormattingRules.txt.rej Patch rejected: ./TWiki/WebTopBar.txt.rej Patch rejected: ./TWiki/WebSearch.txt.rej Patch rejected: ./TWiki/WebHome.txt.rej Patch rejected: ./TWiki/WebLeftBar.txt.rej Patch rejected: ./TWiki/NewUserTemplate.txt.rej Patch rejected: ./TWiki/TWikiInstallationGuide.txt.rej Patch rejected: ./TWiki/TWikiUserAuthentication.txt.rej Patch rejected: ./TWiki/TablePlugin.txt.rej Patch rejected: ./TWiki/TWikiVariablesNtoZ.txt.rej Patch rejected: ./TWiki/WebIndex.txt.rej Patch rejected: ./TWiki/TWikiUpgradeGuide.txt.rej Patch rejected: ./TWiki/TWikiForms.txt.rej Patch rejected: ./TWiki/PatternSkinCss.txt.rej Patch rejected: ./Main/TWikiUsers.txt.rej Patch rejected: ./Main/WebLeftBar.txt.rej Patch rejected: ./Main/TWikiGroupTemplate.txt.rej

Now I'm giving everyone write access to /export/src/new_twiki//data/, so your web server user can access them.


/export/src/distro/pub/ , /export/httpd/twiki/pub , /export/src/new_twiki//pub/

...new upgraded data will be put in /export/src/new_twiki//pub/ there will be no changes made to either the source data directory or /export/src/distro/pub/.

This progam will attempt to use the rcs versioning information to upgrade the contents of your distributed topics in /export/httpd/twiki/pub to the content in /export/src/distro/pub/.

Output: For each file that has no versioning information in your existing twiki a v will be printed For each file that has no changes from the previous release a c will be printed For each file that has no changes made in your existing release, a u will be printed For each file where no commonality could be found, your existing one is used, and a C will be printed For each file that has changes and a patch is generated a p will be printed For each file that is new in the NewReleaseDataDir a + will be printed When the script has attempted to patch the /export/src/distro/pub/, *.rej files will contain the failed merges although many of these rejected chages will be discardable, please check them to see if your configuration is still ok

...checking existing files from /export/httpd/twiki/pub

processing directory (creating /export/src/new_twiki//pub/)

processing directory (creating /export/src/new_twiki//pub//Sandbox)

processing directory (creating /export/src/new_twiki//pub//Sandbox/WebPreferences)

processing directory (creating /export/src/new_twiki//pub//_default)

processing directory (creating /export/src/new_twiki//pub//_default/WebPreferences)

processing directory (creating /export/src/new_twiki//pub//Trash)

processing directory (creating /export/src/new_twiki//pub//Trash/WebPreferences)

processing directory (creating /export/src/new_twiki//pub//TWiki)

processing directory (creating /export/src/new_twiki//pub//TWiki/EditTablePlugin) cuccucccccccccccccccccccccccccuuuucuuc processing directory (creating /export/src/new_twiki//pub//TWiki/WindowsInstallCookbook) u processing directory (creating /export/src/new_twiki//pub//TWiki/WebPreferences)

processing directory (creating /export/src/new_twiki//pub//TWiki/ATasteOfTWiki) uuuu processing directory (creating /export/src/new_twiki//pub//TWiki/FileAttachment) uu processing directory (creating /export/src/new_twiki//pub//TWiki/PatternSkin)

/export/src/distro/pub//TWiki/PatternSkin/style.css: p uu /export/src/distro/pub//TWiki/PatternSkin/layout.css: p u processing directory (creating /export/src/new_twiki//pub//TWiki/PlainSkin) uu processing directory (creating /export/src/new_twiki//pub//TWiki/PatternSkinCss) u processing directory (creating /export/src/new_twiki//pub//TWiki/PreviewBackground) uuuu processing directory (creating /export/src/new_twiki//pub//TWiki/PatternSkinCustomization) u processing directory (creating /export/src/new_twiki//pub//TWiki/PrintSkin) uu processing directory (creating /export/src/new_twiki//pub//TWiki/PatternSkinPalette) uuuu processing directory (creating /export/src/new_twiki//pub//TWiki/TWikiLogos)

processing directory (creating /export/src/new_twiki//pub//TWiki/JSCalendarContrib)

processing directory (creating /export/src/new_twiki//pub//TWiki/JSCalendarContrib/lang)

processing directory (creating /export/src/new_twiki//pub//TWiki/JSCalendarContrib/doc)

processing directory (creating /export/src/new_twiki//pub//TWiki/JSCalendarContrib/doc/html)

processing directory (creating /export/src/new_twiki//pub//TWiki/TWikiDocGraphics) uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuvuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu processing directory (creating /export/src/new_twiki//pub//TWiki/ClassicSkin) uu processing directory (creating /export/src/new_twiki//pub//TWiki/TWikiDocGraphicsPattern) v processing directory (creating /export/src/new_twiki//pub//TWiki/TWikiTemplates) u processing directory (creating /export/src/new_twiki//pub//TWiki/SmiliesPlugin) uuuuuuuuuuuuuu processing directory (creating /export/src/new_twiki//pub//TWiki/TablePlugin) uuu processing directory (creating /export/src/new_twiki//pub//TWiki/TWiki)

processing directory (creating /export/src/new_twiki//pub//TWiki/WabiSabi) u processing directory (creating /export/src/new_twiki//pub//Main)

processing directory (creating /export/src/new_twiki//pub//Main/WebPreferences)

processing directory (creating /export/src/new_twiki//pub//Main/TWikiContributor)

processing directory (creating /export/src/new_twiki//pub//icn) uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

... checking for new files in /export/src/distro/pub/ processing directory /export/src/distro/pub

processing directory /export/src/distro/pub/icn

processing directory /export/src/distro/pub/Main

processing directory /export/src/distro/pub/Main/TWikiContributor

processing directory /export/src/distro/pub/Main/WebPreferences

processing directory /export/src/distro/pub/TWiki

processing directory /export/src/distro/pub/TWiki/WabiSabi

processing directory /export/src/distro/pub/TWiki/TWiki

processing directory /export/src/distro/pub/TWiki/TablePlugin

processing directory /export/src/distro/pub/TWiki/SmiliesPlugin

processing directory /export/src/distro/pub/TWiki/TWikiTemplates

processing directory /export/src/distro/pub/TWiki/TWikiDocGraphicsPattern

processing directory /export/src/distro/pub/TWiki/ClassicSkin

processing directory /export/src/distro/pub/TWiki/TWikiDocGraphics

processing directory /export/src/distro/pub/TWiki/JSCalendarContrib

processing directory /export/src/distro/pub/TWiki/JSCalendarContrib/doc

processing directory /export/src/distro/pub/TWiki/JSCalendarContrib/doc/html

processing directory /export/src/distro/pub/TWiki/JSCalendarContrib/lang

processing directory /export/src/distro/pub/TWiki/TWikiLogos

processing directory /export/src/distro/pub/TWiki/PatternSkinPalette

processing directory /export/src/distro/pub/TWiki/PrintSkin

processing directory /export/src/distro/pub/TWiki/PatternSkinCustomization

processing directory /export/src/distro/pub/TWiki/PreviewBackground

processing directory /export/src/distro/pub/TWiki/PatternSkinCss

processing directory /export/src/distro/pub/TWiki/PlainSkin

processing directory /export/src/distro/pub/TWiki/PatternSkin

processing directory /export/src/distro/pub/TWiki/FileAttachment

processing directory /export/src/distro/pub/TWiki/ATasteOfTWiki

processing directory /export/src/distro/pub/TWiki/WebPreferences

processing directory /export/src/distro/pub/TWiki/WindowsInstallCookbook

processing directory /export/src/distro/pub/TWiki/EditTablePlugin

processing directory /export/src/distro/pub/Trash

processing directory /export/src/distro/pub/Trash/WebPreferences

processing directory /export/src/distro/pub/_default

processing directory /export/src/distro/pub/_default/WebPreferences

processing directory /export/src/distro/pub/Sandbox

processing directory /export/src/distro/pub/Sandbox/WebPreferences

Patching topics (manually check the rejected patch (.rej) files)=================================================================== RCS file: /export/src/new_twiki//pub//TWiki/PatternSkin/style.css,v retrieving revision 1.9 diff -r1.9 /export/src/new_twiki//pub//TWiki/PatternSkin/style.css /export/src/new_twiki//pub//TWiki/PatternSkin/style.css,v --> /export/src/new_twiki//pub//TWiki/PatternSkin/style.css revision 1.9 (locked) done =============================================================== RCS file: /export/src/new_twiki//pub//TWiki/PatternSkin/layout.css,v retrieving revision 1.3 diff -r1.3 /export/src/new_twiki//pub//TWiki/PatternSkin/layout.css /export/src/new_twiki//pub//TWiki/PatternSkin/layout.css,v --> /export/src/new_twiki//pub//TWiki/PatternSkin/layout.css revision 1.3 (locked) done

Patch rejected: ./TWiki/PatternSkin/style.css.rej Patch rejected: ./TWiki/PatternSkin/layout.css.rej

Now I'm giving everyone write access to /export/src/new_twiki//pub/, so your web server user can access them. Use of uninitialized value in concatenation (.) or string at /export/src/distro/lib/TWiki/Upgrade/UpgradeToDakar.pm line 176, line 1. Use of uninitialized value in concatenation (.) or string at /export/src/distro/lib/TWiki/Upgrade/UpgradeToDakar.pm line 176, line 1. Use of uninitialized value in concatenation (.) or string at /export/src/distro/lib/TWiki/Upgrade/UpgradeToDakar.pm line 176, line 1. Use of uninitialized value in concatenation (.) or string at /export/src/distro/lib/TWiki/Upgrade/UpgradeToDakar.pm line 176, line 1. Use of uninitialized value in concatenation (.) or string at /export/src/distro/lib/TWiki/Upgrade/UpgradeToDakar.pm line 176, line 1. Use of uninitialized value in concatenation (.) or string at /export/src/distro/lib/TWiki/Upgrade/UpgradeToDakar.pm line 176, line 1.

OK, I'm finished. Now you need to

1. Check the files listed above (if any) who's patches were rejected.

For these files, you'll want to check the .rej file (in the same directory as the file) and see whether there are changes in there that you need to make manually.

2. Check the files listed above that have 'no common versions' - in those cases, your new install will still work, but you need to be aware the topic file that is in place is your old one... no changes from the new release have been included. You will have to merge in the new version manually.

3. Check the new LocalLib.cfg and LocalSite.cfg to make sure they correctly reflect any local customisations you previously did in setlib.cfg and TWiki.cfg.

4. Setup authentication for the new TWiki

If you are using htaccess, then check the diffs above make sense. If you are using some other method, you'll need to figure out what you need to do (sorry!)

5. Set the permissions appropriately for the new TWiki.

I have given pub and data global read and write access, so your new TWiki will work, but you SHOULD configure tighter security.

6. Re-install plugins you were using

7. Copy over any custom templates you put in the original templates directory

8. Archive your old installation

9. Move the newly created twiki directory (/export/src/new_twiki/) to the place where your previous version was.

10. Rearrange sub-directories the way you like them, if needed. (some sites have bin in a very different place to the rest, for example)

11. Use your browser to check the whole thing: visit the 'configure' script, which I am guessing is at:

/configure

make sure there are no unwarranted warnings,

and finally: visit TWikiPreferences, which I'm guessing is at:

/view/TWiki/TWikiPreferences

It should be working.

12. Enjoy!


This is probably due to the fact that the beta reflects the changes since Cairo and not the changes since the last beta.

Sven is investigating. Because there's a workround, I don;t see this as urgent. If we spread the betas out more, it might be.

CC

sorry - i never saw this bug report, and worse, i've not got time for this anymore, deffering in the hope someone cares for upgrade when edin* happens

-- SD

Undeferred, post Dakar CC

discarded as theoretically all of the RC* sites have already upgraded to a proper release -- WN

ItemTemplate
Summary Upgrade from Dakar b1->b2 using UpgradeTwiki has too many rejected patches
ReportedBy JoanTouzet
SVN Range

AppliesTo Engine
Component BuildScripts
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease major
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatgz rejected.tar.gz r0 manage 63.8 K 2005-10-03 - 00:37 JoanTouzet tarball of .rej files
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-04-27 - WillNorris
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback