Re: [xwiki-users] Migration from 7.0.1 to 8.2.1 issues.

2016-08-09 Thread Thomas Mortagne
> Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Could not 
> select database 'opswiki' : Unknown database 'opswiki'

Looks like XWiki is expecting your wiki database name to be "opswiki".

I can think of two possibilities
* you modified one of "xwiki.db" or "xwiki.db.prefix" properties in
xwiki.cfg file
* you are trying to access a subwiki named "opswiki"

On Tue, Aug 9, 2016 at 6:14 PM,   wrote:
> To migrate my XWiki from 7.0.1 to 8.2.1, I followed those steps :
>
> cd 
> /glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/\r
> tar -jcvf /backup/xwiki.tar.bz2 
> /glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/hibernate.cfg.xml
>  
> /glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/xwiki.cfg
>  
> /glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/xwiki.properties
>  
> /glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/classes/logback.xml
>  
> /glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/observation/*
>
> mysqldump --add-drop-database --all-databases > /backup/xwiki.sql
>
> Then I restore dit back on the next server :
>
> mysql -e "SET FOREIGN_KEY_CHECKS=0;"
> mysql -e "CREATE DATABASE IF NOT EXISTS xwiki DEFAULT CHARACTER SET utf8;"
> mysql xwiki --user=root -p < xwiki.sql
> mysql -e "SET FOREIGN_KEY_CHECKS=1;"
> reboot
>
> I set the right options in the xwiki.cfg but I got this problem after the 
> migration... :(
>
> http://pastebin.com/cS8Th8c4
>
> Anyone can tell me what am I doing wrong ?
> Should I update to an older version before upgrading to 8.2.1 ?
>
> Sebastien
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Migration from 7.0.1 to 8.2.1 issues.

2016-08-09 Thread Sebastien.Boulianne
To migrate my XWiki from 7.0.1 to 8.2.1, I followed those steps :

cd 
/glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/\r
tar -jcvf /backup/xwiki.tar.bz2 
/glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/hibernate.cfg.xml
 
/glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/xwiki.cfg
 
/glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/xwiki.properties
 
/glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/classes/logback.xml
 
/glassfish4/glassfish/domains/domain1/applications/xwiki-enterprise-web-7.0.1/WEB-INF/observation/*

mysqldump --add-drop-database --all-databases > /backup/xwiki.sql

Then I restore dit back on the next server :

mysql -e "SET FOREIGN_KEY_CHECKS=0;"
mysql -e "CREATE DATABASE IF NOT EXISTS xwiki DEFAULT CHARACTER SET utf8;"
mysql xwiki --user=root -p < xwiki.sql
mysql -e "SET FOREIGN_KEY_CHECKS=1;"
reboot

I set the right options in the xwiki.cfg but I got this problem after the 
migration... :(

http://pastebin.com/cS8Th8c4

Anyone can tell me what am I doing wrong ?
Should I update to an older version before upgrading to 8.2.1 ?

Sebastien
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users