cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] No data after migration (index recovery suspic...

nicolasraoul
Star Contributor
Star Contributor
Hello all,

I am trying to migrate from Alfresco 2.2 to Alfresco 2.3 (yes, old stuff).
Problem: After the migration procedure, Alfresco doesn't contain my files, it only contains the same files as a out-of-the-box Alfresco.

Here is how I did the migration:
1) Copy alf_data from Alfresco 2.2 (25 gigabytes)
2) On another machine, run the Alfresco 2.3 Linux installer.
3) Start and stop Alfresco once to uncompress the WAR
4) Set index.recovery.mode=FULL
5) Replace the default alf_data with the one from Alfresco 2.2
6) Start Alfresco
7) Expected files are not present

No errors in the log, but the index recovery is too fast to believe, 10 seconds for 25 gigabytes of data:

18:57:47,449 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file /home/nico/programs/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-All_Statements-8031383953610910443.sql.
18:58:14,465 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] Index recovery started: 1 transactions.
18:58:14,466 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    100 % complete.
18:58:14,466 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    200 % complete.
18:58:14,466 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    300 % complete.
18:58:14,467 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    400 % complete.
18:58:14,470 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    500 % complete.
18:58:24,238 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] Index recovery completed.
18:58:24,450 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Creating time limited trial license
18:58:26,059 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
18:58:26,059 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
18:58:26,107 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …

I followed the wiki, but am I missing something?
Thanks a lot!
Nicolas Raoul
3 REPLIES 3

bnmaxim
Champ in-the-making
Champ in-the-making
Hello Nicolas,

did you change the database reference in 2.3 to point to the db used by 2.2 as well? Cause changing only the dir.root can't actually work.

http://wiki.alfresco.com/wiki/Database_Configuration

Regards

Max

mrogers
Star Contributor
Star Contributor
And please make sure you have everything backed up.

nicolasraoul
Star Contributor
Star Contributor
bnmaxim, thanks a lot for pointing out what I had forgotten!
Nicolas