Coder Social home page Coder Social logo

vagrant-ubuntu-usergrid's Introduction

VagrantFile that launches a Usergrid 2.1.0 VM

The VagrantFile in this directory starts a Virtual Machine (VM) that runs the Usergrid Stack and Portal at http://10.1.1.161:8080/portal on your machine.

For local development and testing purposes -- not for production.

It installs and starts Cassandra + ElasticSearch, installs and starts Tomcat, installs and configures Usergrid 2 Stack and Portal to run on Tomcat.

How to launch the VM

  1. Install Vagrant on your computer
  2. Clone the GitHub usergrid-vagrant repo
  3. cd into the usergrid-vagrant directory
  4. Run this command to launch the Vagrant VM with Usergrid: vagrant up
  5. Wait 5-10 minutes for the installation to complete.

How to access the Usergrid Portal

Once the VM launches and completes initialization, you should be able to:

You can also use vagrant ssh to login to the VM and see the Usergrid installation. You'll find Java 1.8, Apache Cassandra, Tomcat and Usegrid installed. Three key parts of the Usergrid installation are:

  1. Usergrid properties file: /usr/share/tomcat7/lib/usergrid-custom.properties
  2. Usergrid WAR file: /var/lib/tomcat7/webapps/ROOT.war
  3. Usergrid Portal: /var/lib/tomcat7/webapps/portal

For more about the Usergrid BaaS and its API, see the official Apache Usergrid Documentation site.

vagrant-ubuntu-usergrid's People

Contributors

mochadwi avatar snoopdave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vagrant-ubuntu-usergrid's Issues

'npm' command not found error

After build the user-grid code, it runs the build.sh file. At the installation, gives a error 'npm command not found'. Virtual machine don't have npm command. After install it manually, build.sh file is working fine.

Troubles getting this to run on macOS Sierra 10.0.3

Struggling to get the latest commit to work on macOS Sierra 10.0.3; spent some time troubleshooting, and eventually found this fork: https://github.com/butuh/usergrid-vagrant which seems to work. Might be worth having it merged back into master?

Here's the error that was throwing โ€” seems none of the services installed successfully.

curl: (7) Failed to connect to localhost port 8080: Connection refused
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

vagrant up command always returning errors

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 .

http://10.1.1.161:8080/portal - connection refused

hi,

i cloned the repo and set it up as instructed

git clone [email protected]:snoopdave/usergrid-vagrant.git
cd usergrid-vagrant/
vagrant up

but after 30-45 mins, i checked the console and it has this error messages at the end (it runs to completion though)
when i open in my browser the http://10.1.1.161:8080/portal
it just says connection refused:

==> ug:  * Starting Tomcat servlet engine tomcat7
==> ug: start-stop-daemon: unable to stat /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java (No such file or directory)
==> ug:    ...done.
==> ug:  
==> ug:  
==> ug: %
==> ug:  
==> ug: T
==> ug: o
==> ug: t
==> ug: a
==> ug: l
==> ug:  
==> ug:  
==> ug:  
==> ug:  
==> ug: %
==> ug:  
==> ug: R
==> ug: e
==> ug: c
==> ug: e
==> ug: i
==> ug: v
==> ug: e
==> ug: d
==> ug:  
==> ug: %
==> ug:  
==> ug: X
==> ug: f
==> ug: e
==> ug: r
==> ug: d
==> ug:  
==> ug:  
==> ug: A
==> ug: v
==> ug: e
==> ug: rage Speed   Time    Time     Time  Current
==> ug:                                  Dload
==> ug:  
==> ug:  
==> ug: U
==> ug: p
==> ug: l
==> ug: o
==> ug: a
==> ug: d   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 8080: Connection refused
==> ug:  
==> ug:  
==> ug: %
==> ug:  
==> ug: T
==> ug: o
==> ug: t
==> ug: a
==> ug: l
==> ug:  
==> ug:  
==> ug:  
==> ug:  
==> ug: %
==> ug:  
==> ug: R
==> ug: e
==> ug: c
==> ug: e
==> ug: i
==> ug: v
==> ug: e
==> ug: d
==> ug:  
==> ug: %
==> ug:  
==> ug: X
==> ug: f
==> ug: e
==> ug: r
==> ug: d
==> ug:  
==> ug:  
==> ug: A
==> ug: v
==> ug: e
==> ug: r
==> ug: a
==> ug: g
==> ug: e
==> ug:  
==> ug: S
==> ug: p
==> ug: e
==> ug: e
==> ug: d
==> ug:  
==> ug:  
==> ug:  
==> ug: T
==> ug: i
==> ug: m
==> ug: e
==> ug:  
==> ug:  
==> ug:  
==> ug:  
==> ug: T
==> ug: ime     Time  Current
==> ug:                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) 
==> ug: Failed to
==> ug:  connect to localhost
==> ug:  port 8080: Connection refused
==> ug:  
==> ug:  
==> ug: %
==> ug:  
==> ug: T
==> ug: o
==> ug: t
==> ug: a
==> ug: l
==> ug:  
==> ug:  
==> ug:  
==> ug:  
==> ug: %
==> ug:  
==> ug: R
==> ug: e
==> ug: c
==> ug: e
==> ug: i
==> ug: v
==> ug: e
==> ug: d
==> ug:  
==> ug: %
==> ug:  
==> ug: X
==> ug: f
==> ug: e
==> ug: r
==> ug: d
==> ug:  
==> ug:  Average Speed   Time    Time     Time  Current
==> ug:                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 8080: Connection refused
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Vagrant box not working

Error start here

==> ug: Err http://archive.ubuntu.com trusty InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty-updates InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty-backports InRelease
==> ug:
==> ug: Err http://security.ubuntu.com trusty-security InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Err http://archive.ubuntu.com trusty-updates Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Err http://security.ubuntu.com trusty-security Release.gpg
==> ug: Could not resolve 'security.ubuntu.com'
==> ug: Err http://archive.ubuntu.com trusty-backports Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Reading package lists...
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
==> ug:
==> ug: W: Some index files failed to download. They have been ignored, or old ones used instead.
==> ug: Cannot add PPA: 'ppa:openjdk-r/ppa'.
==> ug: Please check that the PPA name or format is correct.
==> ug: Err http://archive.ubuntu.com trusty InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty-updates InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty-backports InRelease
==> ug:
==> ug: Err http://security.ubuntu.com trusty-security InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Err http://archive.ubuntu.com trusty-updates Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Err http://security.ubuntu.com trusty-security Release.gpg
==> ug: Could not resolve 'security.ubuntu.com'
==> ug: Err http://archive.ubuntu.com trusty-backports Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Reading package lists...
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
==> ug:
==> ug: W: Some index files failed to download. They have been ignored, or old ones used instead.
==> ug: Reading package lists...
==> ug: Building dependency tree...
==> ug: Reading state information...
==> ug: E
==> ug: :
==> ug: Unable to locate package openjdk-8-jdk
==> ug: update-alternatives: error:
==> ug: alternative path /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java doesn't exist
==> ug: update-alternatives: error:
==> ug: no alternatives for java
==> ug: /vagrant /home/vagrant
==> ug:
==> ug: --------------------------------------------------------------------------
==> ug: Installing Cassandra
==> ug: --------------------------------------------------------------------------
==> ug:
^C==> ug: Waiting for cleanup before exiting...
fkurbanov โŽ‡ master U:2 ~/Desktop/usergrid-vagrant 2 ==> ug: Err http://archive.ubuntu.com trusty InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty-updates InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty-backports InRelease
==> ug:
==> ug: Err http://security.ubuntu.com trusty-security InRelease
==> ug:
==> ug: Err http://www.apache.org 12x InRelease
==> ug:
==> ug: Err http://archive.ubuntu.com trusty Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Err http://archive.ubuntu.com trusty-updates Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Err http://security.ubuntu.com trusty-security Release.gpg
==> ug: Could not resolve 'security.ubuntu.com'
==> ug: Err http://www.apache.org 12x Release.gpg
==> ug: Could not resolve 'www.apache.org'
==> ug: Err http://archive.ubuntu.com trusty-backports Release.gpg
==> ug: Could not resolve 'archive.ubuntu.com'
==> ug: Reading package lists...
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://www.apache.org/dist/cassandra/debian/dists/12x/InRelease
==> ug: W
==> ug: :
==> ug: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'archive.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
==> ug:
==> ug: W: Failed to fetch http://www.apache.org/dist/cassandra/debian/dists/12x/Release.gpg Could not resolve 'www.apache.org'
==> ug:
==> ug: W: Some index files failed to download. They have been ignored, or old ones used instead.

Deployment on LAN

I have changed Vagrantfile and replace "10.1.1.161" to "192.168.1.8" to deploy on LAN, but it doesn't work. usergrid protal is still running at 10.1.1.161 but it is not able to make requests , it can't even login.
I want to deploy it on LAN, at 192.168.1.8:8080, please guide me how can i do this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.