You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Dmytro Sen <ds...@hortonworks.com> on 2015/03/20 19:41:02 UTC

Review Request 32320: Permission denied on .hash file when starting ambari server as non root user on ubuntu

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32320/
-----------------------------------------------------------

Review request for Ambari, Andrew Onischuk and Mahadev Konar.


Bugs: AMBARI-10165
    https://issues.apache.org/jira/browse/AMBARI-10165


Repository: ambari


Description
-------

Created a non root user 'ambari' during ambari-server setup on Ubuntu. then
su - ambari -s /bin/sh
/usr/sbin/ambari-server start throws the below error on each service.
/usr/sbin/ambari-server start
Using python  /usr/bin/python2.7
Starting ambari-server
Unable to check PostgreSQL server status when starting without root privileges.
Please do not forget to start PostgreSQL server.
Organizing resource files at /var/lib/ambari-server/resources...
ERROR: Exiting with exit code -1. 
REASON: Can not organize resource files at /var/lib/ambari-server/resources: Can not read file /var/lib/ambari-server/resources/common-services/SLIDER/0.60.0.2.2/package/.hash : [Errno 13] Permission denied: '/var/lib/ambari-server/resources/common-services/SLIDER/0.60.0.2.2/package/.hash'
This is working fine on centos6


Diffs
-----

  ambari-agent/src/main/python/ambari_agent/FileCache.py 3946b46 
  ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py 5d01e3e 

Diff: https://reviews.apache.org/r/32320/diff/


Testing
-------

Ran 237 tests in 8.330s

OK
----------------------------------------------------------------------
Total run:625
Total errors:0
Total failures:0
OK


Thanks,

Dmytro Sen


Re: Review Request 32320: Permission denied on .hash file when starting ambari server as non root user on ubuntu

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32320/#review77257
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On March 20, 2015, 6:41 p.m., Dmytro Sen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32320/
> -----------------------------------------------------------
> 
> (Updated March 20, 2015, 6:41 p.m.)
> 
> 
> Review request for Ambari, Andrew Onischuk and Mahadev Konar.
> 
> 
> Bugs: AMBARI-10165
>     https://issues.apache.org/jira/browse/AMBARI-10165
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Created a non root user 'ambari' during ambari-server setup on Ubuntu. then
> su - ambari -s /bin/sh
> /usr/sbin/ambari-server start throws the below error on each service.
> /usr/sbin/ambari-server start
> Using python  /usr/bin/python2.7
> Starting ambari-server
> Unable to check PostgreSQL server status when starting without root privileges.
> Please do not forget to start PostgreSQL server.
> Organizing resource files at /var/lib/ambari-server/resources...
> ERROR: Exiting with exit code -1. 
> REASON: Can not organize resource files at /var/lib/ambari-server/resources: Can not read file /var/lib/ambari-server/resources/common-services/SLIDER/0.60.0.2.2/package/.hash : [Errno 13] Permission denied: '/var/lib/ambari-server/resources/common-services/SLIDER/0.60.0.2.2/package/.hash'
> This is working fine on centos6
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/python/ambari_agent/FileCache.py 3946b46 
>   ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py 5d01e3e 
> 
> Diff: https://reviews.apache.org/r/32320/diff/
> 
> 
> Testing
> -------
> 
> Ran 237 tests in 8.330s
> 
> OK
> ----------------------------------------------------------------------
> Total run:625
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Dmytro Sen
> 
>