<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Upgrade Ambari Server failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228737#M84864</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/83444/nguyenhieu008.html" nodeid="83444"&gt;@Hieu Nguyen Trung&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Were you able to solve your this error?&lt;/P&gt;&lt;PRE&gt;ValueError: No JSON object could be decoded"&lt;/PRE&gt;&lt;P&gt;I am having the same error in upgrading from 2.6.1.5 to 2.7.3&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2019 23:44:38 GMT</pubDate>
    <dc:creator>mkukreja</dc:creator>
    <dc:date>2019-05-01T23:44:38Z</dc:date>
    <item>
      <title>Upgrade Ambari Server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228734#M84861</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm upgrading ambari server version 2.6 to version 2.7, following this document &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-upgrade-major/content/upgrade_ambari.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-upgrade-major/content/upgrade_ambari.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The tasks work perfectly until step 12. When I run `ambari-server upgrade -v`, it produces this error:&lt;/P&gt;&lt;PRE&gt;INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 1060, in &amp;lt;module&amp;gt;
    mainBody()
  File "/usr/sbin/ambari-server.py", line 1030, in mainBody
    main(options, args, parser)
  File "/usr/sbin/ambari-server.py", line 980, in main
    action_obj.execute()
  File "/usr/sbin/ambari-server.py", line 79, in execute
    self.fn(*self.args, **self.kwargs)
  File "/usr/lib/ambari-server/lib/ambari_server/serverUpgrade.py", line 262, in upgrade
    retcode = run_schema_upgrade(args)
  File "/usr/lib/ambari-server/lib/ambari_server/serverUpgrade.py", line 125, in run_schema_upgrade
    db_title = get_db_type(get_ambari_properties()).title
AttributeError: 'NoneType' object has no attribute 'title'&lt;/PRE&gt;&lt;P&gt;Can anyone help me with this problem? &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 02:30:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228734#M84861</guid>
      <dc:creator>nguyenhieu008</dc:creator>
      <dc:date>2018-11-14T02:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Ambari Server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228735#M84862</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/83444/nguyenhieu008.html" nodeid="83444"&gt;@Hieu Nguyen Trung&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;the exception you have shared seems to be from Apache bug : &lt;A href="https://issues.apache.org/jira/browse/AMBARI-18285" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-18285&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Which is your base version from which you are upgrading ? &lt;/P&gt;&lt;P&gt;Can you revisit the ambari.properties file in /etc/ambari-server/conf/ambari.properties &lt;/P&gt;&lt;P&gt;also compare your ambari.properties with ambari.properties.rpmsave in /etc/ambari-server/conf/&lt;/P&gt;&lt;P&gt;this is my output when i grep for jdbc :&lt;/P&gt;&lt;PRE&gt;[root@asn1 conf]# cat ambari.properties |grep -i jdbc
custom.mysql.jdbc.name=mysql-connector-java.jar
server.jdbc.connection-pool=internal
server.jdbc.database=postgres
server.jdbc.database_name=ambari
server.jdbc.postgres.schema=ambari
server.jdbc.user.name=ambari
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat&lt;/PRE&gt;&lt;P&gt;Please accept this answer if this helped you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:01:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228735#M84862</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-11-14T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Ambari Server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228736#M84863</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/18735/asnaik.html" nodeid="18735"&gt;@Akhil S Naik&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;Thank you so much for your answer. Due to your support, I got out of this trouble but getting into another one.&lt;/P&gt;&lt;P&gt;What I did is that I made a backup of ambari.properties (as mentioned is this document: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-upgrade-major/content/preparing_to_upgrade_ambari.html)" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-upgrade-major/content/preparing_to_upgrade_ambari.html)&lt;/A&gt;. So I copy those following lines from the backup file into the new one:&lt;/P&gt;&lt;PRE&gt;server.jdbc.connection-pool=internal
server.jdbc.database=postgres
server.jdbc.database_name=ambari
server.jdbc.postgres.schema=ambari
server.jdbc.user.name=ambari
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;After that, the upgrade proceeds a little bit further, then produces the following error:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 1060, in &amp;lt;module&amp;gt;
    mainBody()
  File "/usr/sbin/ambari-server.py", line 1030, in mainBody
    main(options, args, parser)
  File "/usr/sbin/ambari-server.py", line 980, in main
    action_obj.execute()
  File "/usr/sbin/ambari-server.py", line 79, in execute
    self.fn(*self.args, **self.kwargs)
  File "/usr/lib/ambari-server/lib/ambari_server/serverUpgrade.py", line 262, in upgrade
    retcode = run_schema_upgrade(args)
  File "/usr/lib/ambari-server/lib/ambari_server/serverUpgrade.py", line 162, in run_schema_upgrade
    upgrade_response = json.loads(stdout)
  File "/usr/lib/ambari-server/lib/ambari_simplejson/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/ambari-server/lib/ambari_simplejson/decoder.py", line 335, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/ambari-server/lib/ambari_simplejson/decoder.py", line 353, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;I see that this problem is some kind of similar to the old one but I cant figure out how to solve it. Can you tell me how I can understand and solve these kinds of problem or how I can investigate and search for solution for it.&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;P/s: For your question, I'm upgrading ambari from version 2.6 to 2.7.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 18:58:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228736#M84863</guid>
      <dc:creator>nguyenhieu008</dc:creator>
      <dc:date>2018-11-19T18:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Ambari Server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228737#M84864</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/83444/nguyenhieu008.html" nodeid="83444"&gt;@Hieu Nguyen Trung&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Were you able to solve your this error?&lt;/P&gt;&lt;PRE&gt;ValueError: No JSON object could be decoded"&lt;/PRE&gt;&lt;P&gt;I am having the same error in upgrading from 2.6.1.5 to 2.7.3&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 23:44:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Upgrade-Ambari-Server-failed/m-p/228737#M84864</guid>
      <dc:creator>mkukreja</dc:creator>
      <dc:date>2019-05-01T23:44:38Z</dc:date>
    </item>
  </channel>
</rss>

