Hi,
The 4.x migration is large and has turned out to be particularly painful.
We are evaluating how to improve it.
Do you have any messages regarding the migration in your catalina.out log file?
I suspect it is trying to do the migration but failing for some reason.
If you can paste any relevant information to a pastebin or in a reply, I will
take a look and see if I can diagnose your issue.
Thanks,
Caleb
On 07/27/2012 06:46 PM, rheim651 wrote:
I am attempting to clone an existing XWiki Enterprise
3.5.1 installation to
test out how to upgrade to 4.1.3.
When attempting to load the main page, I receive the following error:
message com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not
initialize main XWiki context Wrapped Exception: Error number 3202 in 3:
Exception while reading document [name = [XWikiPreferences], type =
[DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name =
[xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number
3301 in 3: Exception while switching to database xwiki Wrapped Exception:
Database xwiki needs migration(s), it could not be safely used!
description The server encountered an internal error
(com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize
main XWiki context Wrapped Exception: Error number 3202 in 3: Exception
while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent
= [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI],
parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception
while switching to database xwiki Wrapped Exception: Database xwiki needs
migration(s), it could not be safely used!) that prevented it from
fulfilling this request.
I have tried a couple of different configurations in the xwiki.cfg. Here is
my current configuration.
xwiki.store.migration=1
#-# Whether to exit after migration. Useful when a server should handle
migrations for a large database, without going
#-# live afterwards.
# xwiki.store.migration.exitAfterEnd=0
#-# Indicate the list of databases to migrate.
#-# to upgrade all wikis database set xwiki.store.migration.databases=all
#-# to upgrade just some wikis databases set
xwiki.store.migration.databases=xwiki,wiki1,wiki2
#-# Note: the main wiki is always migrated whatever the configuration.
#-# [Since 3.3M1] default to migrate all databases
xwiki.store.migration.databases=all
I'm using the following environment which is almost exactly the same as our
current running environment (3.5.1):
-Windows Server 2008 R2 Standard
-Apache-Tomcat 7.0.29 (x64)
-JDK 1.7.0_05 (x64)
-Microsoft SQL Server JDBC Driver (rev 3)
-Microsoft SQL Server 2008 R2
The database is a restored copy of our running 3.5.1 xwiki instance. The
user account has full permissions to modify the schema.
Any ideas on why the migration isn't happening?
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Problem-Migrating-Database-from-XWiki-Ent…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users