Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

New Contributor

ambari-server start

Using python /usr/bin/python

Starting ambari-server

Ambari Server running with administrator privileges.

Organizing resource files at /var/lib/ambari-server/resources...

Ambari database consistency check started...

Server PID at: /var/run/ambari-server/ambari-server.pid

Server out at: /var/log/ambari-server/ambari-server.out

Server log at: /var/log/ambari-server/ambari-server.log

Waiting for server start............ERROR: Exiting with exit code -1.

REASON: Ambari Server java process has stopped. Please check the logs for more information.

9 REPLIES 9

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

Super Mentor

@Jinc Jose

If you have recently upgraded ambari RPMs then you should run the "ambari-server upgrade" command before attempting to restart it.

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

Super Mentor

@Jinc Jose

If you run the following SQL command on the Ambari DB then you can easily verify if the DB schema was upgraded or not?

select * from metainfo where metainfo_key = 'version';

If you see DB schema version as 2.4.2 which means you might have upgraded the ambari-server binaries (like yum upgrade ambari-server -y) but after that you might not have run the following command before starting the ambari server.

# ambari-server upgrade
# ambari-server start

.

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

New Contributor

While trying to run ambari-server upgrade. I get the following error

ambari-server upgrade -v

Using python /usr/bin/python

Upgrading ambari-server

INFO: Loading properties from /etc/ambari-server/conf/ambari.properties

Traceback (most recent call last):

File "/usr/sbin/ambari-server.py", line 941, in <module>

mainBody()

File "/usr/sbin/ambari-server.py", line 911, in mainBody

main(options, args, parser)

File "/usr/sbin/ambari-server.py", line 863, in main

action_obj.execute()

File "/usr/sbin/ambari-server.py", line 78, in execute

self.fn(*self.args, **self.kwargs)

File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py", line 337, in upgrade

print_info_msg("Upgrade Ambari Server", True)

TypeError: print_info_msg() takes exactly 1 argument (2 given)

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

Super Mentor

@Jinc Jose

The script is failing at line 337 : https://github.com/apache/ambari/blob/release-2.5.0/ambari-server/src/main/python/ambari_server/serv...

That makes me feel that the ambari packages are not upgraded properly. Because the error says:

TypeError: print_info_msg() takes exactly 1 argument (2 given)

In Ambari 2.4.2 it used to take 1 Argument: https://github.com/apache/ambari/blob/release-2.4.2/ambari-common/src/main/python/ambari_commons/log...

But in Ambari 2.5 it takes two arguments: https://github.com/apache/ambari/blob/release-2.5.0/ambari-common/src/main/python/ambari_commons/log...

.

These script can be found in the following files with two arguments in Ambari 2.5:

# grep 'print_info_msg' /usr/lib/ambari-server/lib/ambari_commons/logging_utils.py
def print_info_msg(msg, forced=False):

# grep 'print_info_msg' /usr/lib/ambari-agent/lib/ambari_commons/logging_utils.py
def print_info_msg(msg, forced=False):

# grep 'print_info_msg' /usr/lib/python2.6/site-packages/resource_monitoring/ambari_commons/logging_utils.py
def print_info_msg(msg, forced=False):

Possible Cause may be that you might not have done the yum upgrade successfully.

Can you please retry running the yum upgrade again like:

yum info ambari-agent
yum info ambari-server

yum upgrade ambari-server -y
yum upgrade ambari-agent -y

.

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

New Contributor

yum upgrade ambari-server -y

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirror.eboundhost.com

* epel: s3-mirror-us-east-1.fedoraproject.org

* extras: centos.mirror.constant.com

* updates: mirrors.advancedhosters.com

No packages marked for update

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

New Contributor

yum info ambari-server

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirror.eboundhost.com

* epel: s3-mirror-us-east-1.fedoraproject.org

* extras: centos.mirror.constant.com

* updates: mirrors.advancedhosters.com

Installed Packages

Name : ambari-server

Arch : x86_64

Version : 2.5.0.3

Release : 7

Size : 722 M

Repo : installed

From repo : ambari-2.5.0.3

Summary : Ambari Server

URL : http://www.apache.org

License : (c) Apache Software Foundation

Description : Maven Recipe: RPM Package.

yum info ambari-agent

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirror.eboundhost.com

* epel: s3-mirror-us-east-1.fedoraproject.org

* extras: centos.mirror.constant.com

* updates: mirrors.advancedhosters.com

Installed Packages

Name : ambari-agent

Arch : x86_64

Version : 2.4.2.0

Release : 136

Size : 38 M

Repo : installed

From repo : Updates-ambari-2.4.2.0

Summary : Ambari Agent

URL : http://www.apache.org

License : (c) Apache Software Foundation

Description : Maven Recipe: RPM Package.

Available Packages

Name : ambari-agent

Arch : x86_64

Version : 2.5.0.3

Release : 7

Size : 79 M

Repo : ambari-2.5.0.3

Summary : Ambari Agent

URL : http://www.apache.org

License : (c) Apache Software Foundation

Description : Maven Recipe: RPM Package.

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

Super Mentor

@Jinc Jose

You have not upgraded ambari agent RPMs (it is still old version) and some of the libraries are shared by agents and ambari-server

Installed Packages
Name : ambari-agent
Arch : x86_64
Version : 2.4.2.0
Release : 136
Size : 38 M
Repo : installed

.

Please upgrade ambari agent, then attempt to run "ambari-server upgrade" and then start it.

# yum upgrade ambari-agent -y

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

New Contributor

ambari-server upgrade

Using python /usr/bin/python

Upgrading ambari-server

INFO: Upgrade Ambari Server

INFO: Updating Ambari Server properties in ambari.properties ...

WARNING: Can not find ambari.properties.rpmsave file from previous version, skipping import of settings

INFO: Updating Ambari Server properties in ambari-env.sh ...

INFO: Can not find ambari-env.sh.rpmsave file from previous version, skipping restore of environment settings. ambari-env.sh may not include any user customization.

INFO: Fixing database objects owner

ERROR: Unexpected AttributeError: 'NoneType' object has no attribute 'title'

For more info run ambari-server with -v or --verbose option

Looks like the schema version is updated, but the problem is not resolved.

Highlighted

Re: Error -Current database store version is not compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4.2

New Contributor

@Jinc Jose

Your ambari.properties file might be corrupted. If you have backup of ambari.properties, please replace that with existing file under "/etc/ambari-server/conf" directory and retry "ambari-server upgrade".