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.

Ambari install error Error downloading packages: ambari-server-2.4.2.0-136.x86_64: [Errno 5] [Errno 13] Permission denied

Ambari install error Error downloading packages: ambari-server-2.4.2.0-136.x86_64: [Errno 5] [Errno 13] Permission denied

New Contributor

I am getting the below error while installing ambari.

Error downloading packages: ambari-server-2.4.2.0-136.x86_64: [Errno 5] [Errno 13] Permission denied

[root@ip-10-34-61-166 /]# yum install ambari-server Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos This system is receiving updates from RHN Classic or Red Hat Satellite. Resolving Dependencies --> Running transaction check ---> Package ambari-server.x86_64 0:2.4.2.0-136 will be installed --> Processing Dependency: postgresql-server >= 8.1 for package: ambari-server-2.4.2.0-136.x86_64 --> Running transaction check ---> Package postgresql-server.x86_64 0:9.2.15-1.el7_2 will be installed --> Processing Dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2 for package: postgresql-server-9.2.15-1.el7_2.x86_64 --> Processing Dependency: postgresql(x86-64) = 9.2.15-1.el7_2 for package: postgresql-server-9.2.15-1.el7_2.x86_64 --> Processing Dependency: libpq.so.5()(64bit) for package: postgresql-server-9.2.15-1.el7_2.x86_64 --> Running transaction check ---> Package postgresql.x86_64 0:9.2.15-1.el7_2 will be installed ---> Package postgresql-libs.x86_64 0:9.2.15-1.el7_2 will be installed --> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: ambari-server x86_64 2.4.2.0-136 Updates-ambari-2.4.2.0 645 M Installing for dependencies: postgresql x86_64 9.2.15-1.el7_2 rhel7-x86_64-2016-07 3.0 M postgresql-libs x86_64 9.2.15-1.el7_2 rhel7-x86_64-2016-07 231 k postgresql-server x86_64 9.2.15-1.el7_2 rhel7-x86_64-2016-07 3.8 M

Transaction Summary ===================================================================================================================================================================== Install 1 Package (+3 Dependent packages)

Total download size: 652 M Installed size: 733 M Is this ok [y/d/N]: y Downloading packages: (2/4): postgresql-9.2.15-1.el7_2.x86_64.rpm | 3.0 MB 00:00:01 (3/4): postgresql-libs-9.2.15-1.el7_2.x86_64.rpm | 231 kB 00:00:00 (4/4): postgresql-server-9.2.15-1.el7_2.x86_64.rpm | 3.8 MB 00:00:02

Error downloading packages: ambari-server-2.4.2.0-136.x86_64: [Errno 5] [Errno 13] Permission denied

[root@ip-10-34-61-166 /]#

2 REPLIES 2
Highlighted

Re: Ambari install error Error downloading packages: ambari-server-2.4.2.0-136.x86_64: [Errno 5] [Errno 13] Permission denied

Rising Star

@ jameel ahamed I'm curious about the line in your output that says "This system is receiving updates from RHN Classic or Red Hat Satellite". Is Ambari an allowed package in that system? I've seen something similar when a host was managed by Satellite and Ambari was not an authorized application. Have you verified that Ambari is allowed to be installed on that host? That would be the first thing I would look at, assuming that you've verified that you have permissions to the directory in which you are downloading Ambari.

Re: Ambari install error Error downloading packages: ambari-server-2.4.2.0-136.x86_64: [Errno 5] [Errno 13] Permission denied

New Contributor

Mike many thanks for the response.

I was using AWS EC2 instance. I logged in as root and I did the following steps

1) export http_proxy=<proxy server URL>

2) wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

3) Confirm that the repository is configured by checking the repo list. by typing the command "yum repolist"

4) Install the Ambari bits. This also installs the default PostgreSQL Ambari database. yum install ambari-server

After step 4 I got this error. The server was a fresh instance and nothing was installed on it. I just logged in as Root and then fired the above 4 steps