You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2018/08/10 08:18:00 UTC

[jira] [Updated] (AMBARI-24456) Ambari server can not start on latest Amazon Linux 2

     [ https://issues.apache.org/jira/browse/AMBARI-24456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Onischuk updated AMBARI-24456:
-------------------------------------
    Attachment: AMBARI-24456.patch

> Ambari server can not start on latest Amazon Linux 2
> ----------------------------------------------------
>
>                 Key: AMBARI-24456
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24456
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>            Priority: Major
>             Fix For: 2.7.1
>
>         Attachments: AMBARI-24456.patch
>
>
> On latest Amazon Linux 2 ambari-server cannot start with error message:
>     
>     
>     [root@ip-10-0-222-155 cloudbreak]# ambari-server start
>     Using python  /usr/bin/python
>     Starting ambari-server
>     Traceback (most recent call last):
>       File "/usr/sbin/ambari-server.py", line 37, in <module>
>         from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST
>       File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line 30, in <module>
>         from ambari_server.serverConfiguration import decrypt_password_for_alias, get_ambari_properties, get_is_secure, \
>       File "/usr/lib/ambari-server/lib/ambari_server/serverConfiguration.py", line 46, in <module>
>         OS_VERSION = OSCheck().get_os_major_version()
>       File "/usr/lib/ambari-server/lib/ambari_commons/os_check.py", line 322, in get_os_major_version
>         return OSCheck.get_os_version().split('.')[0]
>       File "/usr/lib/ambari-server/lib/ambari_commons/os_check.py", line 301, in get_os_version
>         return OSCheck.get_alias(OSCheck._get_os_type(), OSCheck._get_os_version())[1]
>       File "/usr/lib/ambari-server/lib/ambari_commons/os_check.py", line 313, in _get_os_version
>         raise Exception("Cannot detect os version. Exiting...")
>     Exception: Cannot detect os version. Exiting...
>     
> Additional infos from the machine:
>     
>     
>     [root@ip-10-0-222-155 cloudbreak]# cat /etc/system-release
>     Amazon Linux 2
>     [root@ip-10-0-222-155 cloudbreak]# cat /etc/*release
>     NAME="Amazon Linux"
>     VERSION="2"
>     ID="amzn"
>     ID_LIKE="centos rhel fedora"
>     VERSION_ID="2"
>     PRETTY_NAME="Amazon Linux 2"
>     ANSI_COLOR="0;33"
>     CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
>     HOME_URL="https://amazonlinux.com/"
>     Amazon Linux 2
>     [root@ip-10-0-222-155 cloudbreak]#
>     



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)