Re: [xwiki-users] Problem Migrating Database from XWiki Ent 3.5.1 to 4.1.3 for MSSQL
Hi, You do not need to enable additional logging if you are using our default configuration. If currently you do not get an info logging saying Running storage schema updates and migrations at some point, and your database is declared Database XXX needs migration(s), it could not be safely used!, it simply means that you have not enable migration. Migration are disabled by default, and, in our distributions, we active them initially by having the following line uncommented in xwiki.cfg: xwiki.store.migration=1 Reading the xwiki.cfg you have pasted, I do not see that one, so you have to add it back. Apart from that, you just need that the store and migration components are properly setup, which is the default, and the subject of my previous message. Regarding schema changes, you are right, all changes concern the size of IDs in many tables (the changes depends on the source DB), to afford a 64bits number for all documents and objects IDs. If you compare the hibernate mapping, this is what you will see. But, on an existing database, you need a migration procedure that will alter the existing ID columns to change their type. To do so, most DB engines will also require that no contraints are exists on these columns, so we potentially need to remove them first and recreate them later. And the last but not the least, we also migrate all IDs to use the new size and scheme, which will ensure better unique identification, our goal in this operation. On Thu, Aug 2, 2012 at 10:17 PM, rheim651 rob.h...@mckesson.com wrote: Denis, I have reviewed my xwiki.cfg file and revised it according to what you requested ( http://pastebin.com/ACFyDT87 Xwiki Cfg ) Unfortunately, I still get the same error. Is there a way to enable additional logging to try and determine where it is failiing on the migration? If I need to manually adjust some things on the database side I'm fine with that. As it stands, right now I'm also attempting to reverse-engineer the database schema changes between 3.5 and 4.1.3. Initially it looks like it's converting Primary Keys on 20 tables to use NUMERIC(19,0) instead of INT. Are there any other schema changes besides that I should also be aware of? Denis Gervalle-2 wrote Hi, I have written most of the migration manager stuffs and the major migration of 4.x, and from what I see, your configuration currently prevent any migrations to be executed. You should carefully investigate your xwiki.cfg file for migration configuration. From what you copy paste, I see twice the xwiki.store.migration.databases parameters, I suggest you remove both, the default being all now. Also check there is no xwiki.store.hibernate.updateschema, the default is good. Also check that you do not have any xwiki.store.migration=0. Finally, xwiki.store.main.hint should not be defined or be hibernate, and the same is true for xwiki.store.versioning.hint, xwiki.store.recyclebin.hint and xwiki.store.migration.manager.hint. If you do not find the issue, please send me your xwiki.cfg, and I will have a look at it. Finally, I should bring your attention to the fact that MSSQL is not officially supported and that the migration has never been tested on that DBMS. However, we have done our best so it is as database agnostic as possible. It may simply work or not. Do not hesitate to share your experience, I will do my best to help, but I cannot promise success. Regards, -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-Migrating-Database-from-XWiki-Ent-3-5-1-to-4-1-3-for-MSSQL-tp7580579p7580699.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] how to get number of all pages while exporting
Hi, I need to tune the footer(pdffooter.vm) when exporting to PDf to smth like page N of M , where M is the total number of pages of the output document. Could somebody give me a hint? Thanks, Elena. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem Migrating Database from XWiki Ent 3.5.1 to 4.1.3 for MSSQL
Okay, here is an Update: Using the xwiki.cfg file I posted to pastebin, I modified xwiki.store.migration=1 After restarting the server I am still getting the exact same error message in the browser. Looking at the DATABASECHANGELOG from inside the target database, the Liquibase executions get as far as removing the Foreign Keys. It seems to fail when attempting to change the datatype on the Primary Key for xwikiobjects. In the stdout file I am now seeing the following liquibase error when attempting to change the datatype on the Primary Key for xwikiobjects to BIGINT. 2012-08-03 08:21:00,691 [http://10.43.30.38:9080/xwiki/bin/view/Main/] ERROR c.x.x.s.m.liquibase- Change Set liquibase.xml::R4-009::dgervalle failed. Error: Error executing SQL ALTER TABLE [dbo].[xwikiobjects] ALTER COLUMN [XWO_ID] BIGINT: The object 'PK__xwikiobj__6F7E67F86383C8BA' is dependent on column 'XWO_ID'. I believe the reason for this error is that on SQL Server the Primary Key constraint should to be dropped first before you can change the datatype. (At least that's what I found in my script testing). Would it be possible to see the liquibase changelogs for this migration? I'm not sure where in the package this information is stored. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-Migrating-Database-from-XWiki-Ent-3-5-1-to-4-1-3-for-MSSQL-tp7580579p7580704.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] (no subject)
___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem Migrating Database from XWiki Ent 3.5.1 to 4.1.3 for MSSQL
Hi, At least, you have progressed, you achieved the configuration so that the migration was tried, but has failed. Your diagnosis about what happened seems to me quite right. We drop only FK constraints, and we do not care about any PK constraints, since our supported databases are not affected by this. Hopelessly, I cannot provide you with the liquibase changelogs, since these are generated on the fly for R4XWIKI6990, depending on the source databases. Basically, it does dropForeignKeyConstraint for all FK found in the hibernate mapping table concerned by the ID changes, then modifyDataType to BIGINT for those IDs which have to be enlarged, and finally it addForeignKeyConstraint back with an onUpdate=CASCADE (except for Oracle where it use initiallyDeferred=true). The above is probably not helping much. Since MSSQL is unsupported, you are on a little bit on your own with this, and I could only suggest some tricky ideas that may absolutely not work. Here is what you may try: 1) from a fresh DB, launch the migration, it will fail but will have dropped the FK and it should not try again. This is your current state. You may check it does not try again by restarting the wiki again, and ensure that it fails at the same point. 2) manually drop the PK constraints for all table having such definition for an IDs that has his datatype changed. Enlarged IDs are all those that are related to objects, and statistics. 3) Restart the wiki, it should hopefully go further, and may probably fail when we try to put FK constraints back. 4) manually recreate the PK constraints for all drop you have made. 5) Restart the wiki again, and cross fingers ! If you are lucky, it will terminate liquibase updates, and start the data migration. Once again, these are only suggestions, and your chances for success are honestly quite low. Anyway, please let me know the outcome. If it does not work and you are willing to collaborate and could provide needed inputs and testing supports, I will try to find some time to work with you on improving our migration procedure. Contact me in private regarding this last point. Regards, On Fri, Aug 3, 2012 at 3:31 PM, rheim651 rob.h...@mckesson.com wrote: Okay, here is an Update: Using the xwiki.cfg file I posted to pastebin, I modified xwiki.store.migration=1 After restarting the server I am still getting the exact same error message in the browser. Looking at the DATABASECHANGELOG from inside the target database, the Liquibase executions get as far as removing the Foreign Keys. It seems to fail when attempting to change the datatype on the Primary Key for xwikiobjects. In the stdout file I am now seeing the following liquibase error when attempting to change the datatype on the Primary Key for xwikiobjects to BIGINT. 2012-08-03 08:21:00,691 [http://10.43.30.38:9080/xwiki/bin/view/Main/] ERROR c.x.x.s.m.liquibase- Change Set liquibase.xml::R4-009::dgervalle failed. Error: Error executing SQL ALTER TABLE [dbo].[xwikiobjects] ALTER COLUMN [XWO_ID] BIGINT: The object 'PK__xwikiobj__6F7E67F86383C8BA' is dependent on column 'XWO_ID'. I believe the reason for this error is that on SQL Server the Primary Key constraint should to be dropped first before you can change the datatype. (At least that's what I found in my script testing). Would it be possible to see the liquibase changelogs for this migration? I'm not sure where in the package this information is stored. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-Migrating-Database-from-XWiki-Ent-3-5-1-to-4-1-3-for-MSSQL-tp7580579p7580704.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [ANN] XWiki Enterprise and XWiki Enterprise Manager 4.2 Milestone 1 released
On Tue, Jul 31, 2012 at 5:37 PM, Arioch arioch...@gmail.com wrote: Well, may we have Office import/export encoding features to be fixed in 4.2 ? Done. You asked for patches, why having 0 Java experience, i made them, code changes are in Jira. I tried to build it at home, while having 0 experience with maven, jdk, deployments methods and such. It turned out, XWiki cannot be developed on Windows as of now. I did all i could. You have the code that hopefully would resolve XWIKI-6377 and XWIKI-8007 once and forever. But i can not test it. And i think to apply and compile those changes woult take you much less time than for me to learn Java enough to make them. -- View this message in context: http://xwiki.475771.n2.nabble.com/ANN-XWiki-Enterprise-and-XWiki-Enterprise-Manager-4-2-Milestone-1-released-tp7580634p7580640.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] failed restarts
Hello dear XWikiers, one of the issues of XWiki which keeps coming up since many many versions are failed restarts. They manifest themselves as a web-application that misses something I could never identify and starts triggering lack of authorizations. They tend to fairly randomly. Rather more rarely on fast machines. About 5% of the times on our T2000. However, since i am in a clustered situation, it happens considerably more frequently, almost 90%. How can I debug these? I see nothing suspicious in the console and the web line manifests itself as follows: thanks for hints. Paul paul$ wget -O - http://current.dev.curriki.org/xwiki/bin/view/Main/About --2012-08-03 18:20:23-- http://current.dev.curriki.org/xwiki/bin/view/Main/About Résolution de current.dev.curriki.org (current.dev.curriki.org)... 63.241.108.237 Connexion vers current.dev.curriki.org (current.dev.curriki.org)|63.241.108.237|:80...connecté. requête HTTP transmise, en attente de la réponse...401 Authorization Required ÉCHEC d'autorisation. Brouwer:~ paul$ wget -O - http://dev-current-app:8080/xwiki/bin/view/Main/About--2012-08-03 18:20:37-- http://dev-current-app:8080/xwiki/bin/view/Main/About Résolution de dev-current-app (dev-current-app)... 63.241.108.241 Connexion vers dev-current-app (dev-current-app)|63.241.108.241|:8080...connecté. requête HTTP transmise, en attente de la réponse...302 Moved Temporarily Emplacement: http://dev-current-app:8080/xwiki/bin/login/XWiki/XWikiLogin;jsessionid=d49dda515731d6760c003c0e724f.dev-current-app?srid=6Oux3uLIxredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FAbout%3Fsrid%3D6Oux3uLI [suivant] --2012-08-03 18:20:39-- http://dev-current-app:8080/xwiki/bin/login/XWiki/XWikiLogin;jsessionid=d49dda515731d6760c003c0e724f.dev-current-app?srid=6Oux3uLIxredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FAbout%3Fsrid%3D6Oux3uLI Réutilisation de la connexion existante vers dev-current-app:8080. requête HTTP transmise, en attente de la réponse...401 Unauthorized ÉCHEC d'autorisation. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users