When running scripts/vagrant/vagrant-deploy.sh the openelis.war file is created fine but the next step fails in the vagrant-deploy step of the ant build process. Here’s the stack: vagrant-deploy: [echo] Deploying OpenElis.war to Vagrant Tomcat [exec] +++ dirname /opt/bahmni-lab/etc/OpenElis/scripts/vagrant/vagrant-deploy.sh [exec] ++ cd /opt/bahmni-lab/etc/OpenElis/scripts/vagrant [exec] ++ pwd [exec] + PATH_OF_CURRENT_SCRIPT=/opt/bahmni-lab/etc/OpenElis/scripts/vagrant [exec] + source /opt/bahmni-lab/etc/OpenElis/scripts/vagrant/vagrant_functions.sh [exec] ++ MACHINE_IP=192.168.33.10 [exec] ++ KEY_FILE=/root/.vagrant.d/insecure_private_key [exec] ++ TIMEOUT=’-o ConnectTimeout=5’ [exec] + TEMP_ELIS_WAR_FOLDER=/tmp/deploy_openelis [exec] + CWD=/opt/bahmni-lab/etc/OpenElis [exec] + SCRIPTS_DIR=/opt/bahmni-lab/etc/OpenElis/scripts/vagrant [exec] + run_in_vagrant -f /opt/bahmni-lab/etc/OpenElis/scripts/vagrant/setup_environment.sh [exec] + ‘[’ -f == -c ‘]’ [exec] + ‘[’ -f == -f ‘]’ [exec] + ssh vagrant@192.168.33.10 -i /root/.vagrant.d/insecure_private_key -o ConnectTimeout=5 [exec] Pseudo-terminal will not be allocated because stdin is not a terminal. [exec] + scp_to_vagrant openelis/dist/openelis.war /tmp/deploy_openelis [exec] + scp -i /root/.vagrant.d/insecure_private_key -o ConnectTimeout=5 openelis/dist/openelis.war vagrant@192.168.33.10:/tmp/deploy_openelis [exec] + run_in_vagrant -f /opt/bahmni-lab/etc/OpenElis/scripts/vagrant/deploy_elis_war.sh [exec] + ‘[’ -f == -c ‘]’ [exec] + ‘[’ -f == -f ‘]’ [exec] + ssh vagrant@192.168.33.10 -i /root/.vagrant.d/insecure_private_key -o ConnectTimeout=5 [exec] Pseudo-terminal will not be allocated because stdin is not a terminal. [exec] cp: cannot create regular file `/home/bahmni/apache-tomcat-8.0.12/webapps/openelis.war’: Permission denied
There’s no folder apache-tomcat-8.0.12/webapps at /home/bahmni
Kindly help. Thanks