Sheryl John created OODT-716:
--------------------------------
Summary: Vagrant user on VM unable to start/stop oodt services
Key: OODT-716
URL: https://issues.apache.org/jira/browse/OODT-716
Project: OODT
Issue Type: Test
Reporter: Sheryl John
Priority: Minor
* Not able to stop/start oodt services as vagrant user, but able to do so via
'sudo'.
* With 'sudo', tomcat -opsui service (catalina.sh) throws following:
{code}
vagrant@vagrant:/usr/local/oodt/tomcat$ sudo sh ./bin/catalina.sh start
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
{code}
To reproduce issue:
Follow the README.txt from trunk/vagrant/radix/.
Before the setup instructions, edit the vagrant/provision.sh. Add following
line at the end of the "Setup new RADiX project" section
{code} sudo chown -R vagrant:vagrant ${OODT_DEPLOYMENT_HOME} {code}
{code}
> vagrant up (wait for 15-20 min)
> vagrant ssh
> cd $OODT_DEPLOYMENT_HOME
> ./bin/oodt start
vagrant@vagrant:/usr/local/oodt$ ./bin/oodt: 102: ./bin/oodt: cannot create
/usr/local/oodt/logs/oodt.out: Permission denied
./bin/oodt: 101: ./bin/oodt: cannot create /usr/local/oodt/logs/oodt.out:
Permission denied
./bin/oodt: 100: ./bin/oodt: cannot create /usr/local/oodt/logs/oodt.out:
Permission denied
./bin/oodt: 99: ./bin/oodt: cannot create /usr/local/oodt/logs/oodt.out:
Permission denied
{code}
Above error could be related to vagrant's provisioning as privileged user.
--
This message was sent by Atlassian JIRA
(v6.2#6252)