Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Proposed Architecture for Single Instance

Image Removed

Current Architectures as of 14-Dec-2017

Image Removed

Image Removed

Image Removed

Proposed Architectures

Image Removed

...

192.168.100.48

...

141.142.209.83

...

192.168.100.50

...

141.142.209.92

...

192.168.100.49

...

141.142.209.91

...

192.168.100.42

...

141.142.211.207

...

192.168.100.43

...

141.142.211.213

...

192.168.100.44

...

141.142.211.215

...

192.168.100.78

...

141.142.208.171

...

192.168.100.36

...

141.142.210.210

...

192.168.100.75

...

141.142.210.122

...

192.168.100.77

...

141.142.208.162

...

192.168.100.85

...

141.142.208.172

...

192.168.100.28

...

141.142.209.176

Development Timeline

DateNew Piece NameDevelopmentIPAction (normal letter = commands, italics = description)Notes
171020gltg-postgres

141.142.209.176



171025


Install Postgres and postgis

create/import database

create medici role and grant priviledges


  • As Ubuntu user:
  • sudo apt-get update
  • sudo apt-get install postgresql postgresql-contrib
  • sudo apt-get install postgresql-9.5-postgis-2.2

  • sudo -u postgres createuser --interactive
    • medici
    • superuser?: n
    • create dbs?: n
    • create new roles?: n
  • sudo -u postgres createdb geostream

  • sudo -u postgres psql -d geostream -c 'GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO medici;'

  • sudo -u postgres psql -d geostream -c 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO medici;'

  • copy over small db from local (change role of db to medici)

  • sudo -u postgres psql geostream < geostream_one_greon.sql

  • /etc/postgresql/9.5/main/postgres.conf add

    • listen_addresses = '*'
  • /etc/postgresql/9.5/main/pg_hba.conf add 
    • host     all   all   0.0.0.0/0   md5

171026
login remotely
  • create user gltgdev and grant permissions
    • createuser gltgdev
    • ALTER USER gltgdev WITH ENCRYPTED PASSWORD 'password';
    • psql -h 141.142.209.176 -U gltgdev -d geostream

  • connect gltg-dev to gltg-postgres

    • in custom.conf (yay, it works)

      • postgres.user="gltgdev"

      • postgres.host="141.142.209.176"

      • postgres.password="*****"


171108
fixing for gltg-clowder-dev
  • sudo -u postgres createuser --interactive (add clowder)

    • sudo -u postgres psql -d geostream -c 'GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO clowder;'

    • sudo -u postgres psql -d geostream -c 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO clowder;'


171026gltg-mongo-(1,2,3)
  • 141.142.209.172
  • 141.142.209.173
  • 141.142.209.174


171026
dump, copy, restore
  • on gltg-dev
    • sudo mongodump --out /home/marcuss/backup/test_mongo_dump/test1

  • scp to target server

  • on gltg-mongo-1

    • sudo /var/lib/mongodb-mms-automation/mongodb-linux-x86_64-3.4.9/bin/mongorestore -d gltg --drop /home/ubuntu/test1/gltg

171027 - remember to use primary mongo shell

opening mongo shell gives warnings:

171102 - checked with rob - he's fixing stuff


171102gltg-clowder-devcreated
  • 141.142.210.210


171103
create user clowder and dirs
  • adduser clowder
  • create dirs
    • sudo su clowder; mkdir cache clowder
    • chmod 755 cache/ clowder/

    • sudo chown :users cache clowder



171103
install java
  • sudo apt-get install default-jre


171103
startup
  • copy /lib/systemd/system/clowder-service from gltg-dev
  • not sure about - paticularly dmongouppate and dpostgresupdate:
    • ExecStart=/home/clowder/clowder/bin/clowder -DMONGOUPDATE=1 -DPOSTGRESUPDATE=1 -Dhttp.port=9001 -Dhttp.netty.maxInitialLineLength=8192 -Dapplication.context=/clowder/

171103
build
  • copy update_clowder.sh from gltg-dev
  • run script by hand (line by line in shell)
failed to connect to mongo at

Connecting to : mongodb://127.0.0.1:27017/clowder which makes sense as there is no local mongo - need to set custom connection to gltg-mongo-(1,2,3)

171103
add custom
  • made sure all clowder directory permissions are consistent with gltg-dev
  • use ips install of domain names
  • ./clowder -DMONGOUPDATE=1 -Dhttp.port=9001 -DPOSTGRESUPDATE=1 -Dhttp.netty.maxInitialLineLength=8192 -Dapplication.context=/clowder/

runs at http://141.142.210.210:9001/

seems not connected correctly to mongo

171108


now able to login with copied over user in mongo and view sensors in clowder using systemd
171102gltg-geodashboard-devcreated
  • 141.142.210.220


171107


  • adduser clowder
  • copy script 'update-geodashboard.sh' from gltg-dev and do in command line
  • sudo apt-get install default-jre
  • run geodashboard
  • runs but not connected to clowder

gltg-bastion
  • 141.142.209.19


171109


  • installed nginx
  • played with config for proxy
    • able to redirect to clowder - but no styling
    • not able to set paths right yet

...