[ https://issues.apache.org/jira/browse/CLOUDSTACK-8633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14627625#comment-14627625 ]
ASF GitHub Bot commented on CLOUDSTACK-8633: -------------------------------------------- GitHub user sanju1010 opened a pull request: https://github.com/apache/cloudstack/pull/591 CLOUDSTACK-8633: Changing file permissions from 755 to 440 With 0755 permissions on /etc/sudoers.d/cloudstack-management we are getting following error in bringing up CS: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Failed to inject generated public key into systemvm iso sudo: /etc/sudoers.d/cloudstack-management is mode 0755, should be 0440sudo: sorry, you must have a tty to run sudo” So I have changed the permissions to 440. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sanju1010/cloudstack acsfix Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/591.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #591 ---- ---- > Cannot login due to an error in starting 'cloudStackLifeCycle' bean > ------------------------------------------------------------------- > > Key: CLOUDSTACK-8633 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8633 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Affects Versions: 4.6.0 > Reporter: Raja Pullela > Priority: Blocker > > Using Master builds, MS logs shows following error – > “management-server.log:org.springframework.context.ApplicationContextException: > Failed to start bean 'cloudStackLifeCycle'; nested exception is > com.cloud.utils.exception.CloudRuntimeException: Failed to inject generated > public key into systemvm iso sudo: /etc/sudoers.d/cloudstack-management is > mode 0755, should be 0440sudo: sorry, you must have a tty to run sudo” > After modifying the permissions – MS works fine. > Apparently, this is related to a check that was done some time back… > commit 870e1898eb28039fafaaeb8e50a7039f626f912c > https://github.com/apache/cloudstack/commit/870e1898eb28039fafaaeb8e50a7039f626f912c -- This message was sent by Atlassian JIRA (v6.3.4#6332)