After db_upgrade.sh Control Panel->Server Admin still shows 7.1.0 GA1

Mark Clarke, modified 6 Years ago. Regular Member Posts: 107 Join Date: 3/3/12 Recent Posts

Hi all,

 

I downloaded the liferay tools for 7.1.0 GA3 copied them over to the liferay directory, edited the config files and ran the upgrade script. There was a error about the eliasticsearch6 directory not being writable but the script completed and everything looks. I have pasted the error below in case it is relevant.

When I log into liferay the version still says 7.1.0 GA1 instead of 7.1.0 GA3. Is this normal or have I done something wrong?

 

java.lang.IllegalStateException: failed to obtain node locks, tried [[/var/lib/liferay/data/elasticsearch6/indices/LiferayElasticsearchCluster]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without incre<br> asing [node.max_local_storage_nodes] (was [1])?<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.elasticsearch.env.NodeEnvironment.&lt;init&gt;(NodeEnvironment.java:244)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.elasticsearch.node.Node.&lt;init&gt;(Node.java:263)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.liferay.portal.search.elasticsearch6.internal.connection.EmbeddedElasticsearchNode.&lt;init&gt;(EmbeddedElasticsearchNode.java:48)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.liferay.portal.search.elasticsearch6.internal.connection.EmbeddedElasticsearchNode.lambda$newInstance$0(EmbeddedElasticsearchNode.java:41)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.liferay.portal.search.elasticsearch6.internal.connection.PluginJarConflictCheckSuppression.execute(PluginJarConflictCheckSuppression.java:39)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.liferay.portal.search.elasticsearch6.internal.connection.EmbeddedElasticsearchNode.newInstance(EmbeddedElasticsearchNode.java:40)

 

thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Mark Clarke:
 

I downloaded the liferay tools for 7.1.0 GA3 copied them over to the liferay directory, edited the config files and ran the upgrade script. There was a error about the eliasticsearch6 directory not being writable but the script completed and everything looks. I have pasted the error below in case it is relevant.

When I log into liferay the version still says 7.1.0 GA1 instead of 7.1.0 GA3. Is this normal or have I done something wrong?

I guess "copying over" the existing installation is the problem: I assume that there were jar files which are now left over from the previous version, as well as some from the new version. Also the OSGi state folder might not reflect what you actually have.

The version string on the HelloWorld portlet might come from the OSGi state folder, but it's most likely not your only problem. I'd unzip a clean version in an empty folder and start that one on the new database.

 

thumbnail
David H Nebinger, modified 6 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts

Actually, I don't think the script changes the reported version.

The only real source of what you have is the output from the patching tool's "info" command.

thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts

Hi Mark,

 

As Olaf and David have already pointed out, download the upgrade tool is not enough, that tool has to point to the  7.1.0 GA3 resourcers (portal-iml.jar, portal-service.jar, osgi modules, other jars, etc.)

 

Please, do that to be able to upgrade your 7.1.0 GA1 database to 7.1.0 GA3

 

I hope it helps.

 

Mark Clarke, modified 6 Years ago. Regular Member Posts: 107 Join Date: 3/3/12 Recent Posts

Thanks all. I thought the update script would download the new version of liferay as part of its process. I have replaced the war file and lib/ext directories with the new dependencies and reran the update script. It all looks good now.