snoopdave / vagrant-ubuntu-usergrid

Vagrant setup for Usergrid, Tomcat and Cassandra in Virtual Box. I'd be surprised if this still works at all!
Apache License 2.0
20 stars 23 forks source link

vagrant up command always returning errors #9

Open hamz250 opened 8 years ago

hamz250 commented 8 years ago

I followed the instructions but getting the same issue when invoking the "vagrant up " command starting with this error : ug : unable to stat /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java ug: (No such file or directory)

Then finishing with : ug: (7) Failed to connect to localhost port 8080: Connection refused

I verified that there is no process working on the 8080, port but the same issue is still persisting event when trying to destroy an re up the VM .

BrickTop commented 7 years ago

I've had the same issue and noticed that the bootstrap script didn't install the JDK 8 at all. On the VM only the JDK 6 was available. I've installed the JDK 8 manually on the VM using the commands from the bootstrap script:

add-apt-repository -y ppa:openjdk-r/ppa apt-get update apt-get -y install vim curl openjdk-8-jdk

After the JDK 8 has been installed successfully I ran "vagrant provision" on command line and everything worked fine.