cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade issues

mxs57
Champ in-the-making
Champ in-the-making
Hi all,

I am currently trying to upgrade our alfresco to the latest version 4.2.f. Our version is 3.4.a, I upgraded it unitl 3.4.e without issues. When I deployed the 4.2.f, I have got some erros or warning as below:

<blockquote>
INFO  [patch.impl.AVMToADMRemoteStorePatch] [AVMToADMRemoteStorePatch3] WARNING: unable to migrate path as site id cannot be found
</blockquote>

<blockquote>
ERROR [patch.impl.AVMToADMRemoteStorePatch] [localhost-startStop-1] AVMToADMRemoteStorePatch: 17 error(s) detected. Last error from entry "sitestore:/alfresco/site-data/components/page.tool.admin-console.xml"
org.alfresco.service.cmr.repository.ContentIOException: 05240090 Failed to copy reader content to writer
</blockquote>

<blockquote>
SEVERE: IOException while loading persisted sessions: java.io.InvalidClassException: org.alfresco.web.bean.dialog.BaseDialogBean; local class incompatible: stream classdesc serialVersionUID = 2069698972533448602, local class serialVersionUID = -5911082208943006605
java.io.InvalidClassException: org.alfresco.web.bean.dialog.BaseDialogBean; local class incompatible: stream classdesc serialVersionUID = 2069698972533448602, local class serialVersionUID = -5911082208943006605
</blockquote>

I followed the method from alfresco documentation, mysql dump, backup of alf_data on restore on new version. When I am trying to access any site on new alfresco I have got the 500 error:
<blockquote>
A server error has occured
</blockquote>

I tried with "java openjdk" and "java sun jdk", it is still not working. Do you have any idea about this issue?

Best regards,
Mxs57.
5 REPLIES 5

abarisone
Star Contributor
Star Contributor
Hi,
this issue sees to be caused by a version mismatch about built classes.
What kind of JDK are you using.
Usually with Alfresco 4.2.f we use JDK 1.7 by Oracle (formerly Sun).
Try with this version and be sure you're actually using it checking your environment variables, or simply by typing with java -version command.

Regards,
Andrea

mxs57
Champ in-the-making
Champ in-the-making
I installed the JDK 1.7 by Oracle, see below the java -version result:
<blockquote>
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
</blockquote>

Thanks,
Mxs57.

abarisone
Star Contributor
Star Contributor
Have you also performed indexes rebuild?
Moreover, did you use the installer for this new installation or simply the Alfresco binaries?
We would need more info…

Regards,
Andrea

mxs57
Champ in-the-making
Champ in-the-making
Hi,

Yes I performed the index rebuild via:

index.recovery.mode=FULL

I didn't use the bin installer, I downloaded the alfresco-community-4.2.f.zip and only copied the alfresco.war and share.war into /usr/share/tomcat/webapps.

During index building I had these following messages:

<blockquote>
2014-06-24 18:18:12,317  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         10 % complete.
2014-06-24 18:18:12,348  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         20 % complete.
2014-06-24 18:18:21,983  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,020  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,020  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,029  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,029  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,029  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:38,401  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         30 % complete.
2014-06-24 18:18:38,419  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         40 % complete.
2014-06-24 18:18:51,956  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         50 % complete.
2014-06-24 18:19:01,306  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         60 % complete.
2014-06-24 18:19:09,834  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         70 % complete.
2014-06-24 18:19:09,862  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         80 % complete.
2014-06-24 18:19:19,990  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         90 % complete.
2014-06-24 18:19:26,170  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         100 % complete.
2014-06-24 18:19:28,589  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1] Index recovery completed.
</blockquote>

Thanks,
Mxs57.

mxs57
Champ in-the-making
Champ in-the-making
Hi,

Yes I performed the indexes rebuild via directive:
<blockquote>
index.recovery.mode=FULL
</blockquote>

When I rebuilt indexes, I had theses following messages:
<blockquote>
2014-06-24 18:18:12,317  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         10 % complete.
2014-06-24 18:18:12,348  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         20 % complete.
2014-06-24 18:18:21,983  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,020  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,020  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,028  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,029  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,029  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:22,029  WARN  [repo.dictionary.DictionaryDAO] [indexTrackerThread3] Type not found: {http://www.alfresco.org/model/website/1.0}article
2014-06-24 18:18:38,401  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         30 % complete.
2014-06-24 18:18:38,419  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         40 % complete.
2014-06-24 18:18:51,956  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         50 % complete.
2014-06-24 18:19:01,306  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         60 % complete.
2014-06-24 18:19:09,834  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         70 % complete.
2014-06-24 18:19:09,862  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         80 % complete.
2014-06-24 18:19:19,990  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         90 % complete.
2014-06-24 18:19:26,170  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1]         100 % complete.
2014-06-24 18:19:28,589  INFO  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1] Index recovery completed.
</blockquote>

I didn't use the bin installer, I just downloaded the alfresco-community-4.2.f.zip, extracted and deployed alfresco.war and share.war into tomcat webapps folder.

Thanks,
Mxs57.