Giter VIP home page Giter VIP logo

decide-madrid-vagrant's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gootyfer

decide-madrid-vagrant's Issues

phantomjs is required for running tests

How to install node and phantomjs

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
source ~/.bashrc
nvm install 4.2.2
nvm use default 4.2.2
npm install phantomjs -g

bundle install not working

Bundle install it's not able to download gems because dns resolution fails

change /etc/resolv.conf to an another ip

Failed provision step,

When running 'vagrant up' the process end failing with:

 __________________________________________________________
< TASK: consul | configure postresql auth for vagrant user >
 ----------------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


failed: [default] => {"changed": true, "item": "", "rc": 2}
stdout: psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


FATAL: all hosts have already failed -- aborting
 ____________
< PLAY RECAP >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


           to retry, use: --limit @/home/user/decidemadrid.retry

default                    : ok=13   changed=11   unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Trying to run 'psql' on the vagrant machine gets the following error:

$ vagrant ssh

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Dec 10 13:05:24 2015 from 10.0.2.2
vagrant@debian-jessie:~$ psql
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_PAPER = "es_ES.UTF-8",
    LC_ADDRESS = "es_ES.UTF-8",
    LC_MONETARY = "es_ES.UTF-8",
    LC_NUMERIC = "es_ES.UTF-8",
    LC_TELEPHONE = "es_ES.UTF-8",
    LC_IDENTIFICATION = "es_ES.UTF-8",
    LC_MEASUREMENT = "es_ES.UTF-8",
    LC_TIME = "es_ES.UTF-8",
    LC_NAME = "es_ES.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

This maybe it's related to http://stackoverflow.com/questions/17712700/postgres-locale-error that solves setting the locale on the machine

Note: I have PostgreSQL running on my local machine.

Task: add gpg keyserver [ERROR] [FIX]

Vagrant Error: OpenGPG

Error: 
"TASK: [rvm | add gpg keyserver] *********************************************** 
failed: [default] => {"changed": true, "cmd": "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3", "delta": "0:00:00.664421", "end": "2015-12-10 12:06:38.533313", "rc": 2, "start": "2015-12-10 12:06:37.868892", "warnings": []}
stderr: gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
stdout: ?: keys.gnupg.net: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Success

FATAL: all hosts have already failed -- aborting"

Fixing the error

  • Enter in you vagrant: vagrant ssh
  • Execute the next commands:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
exit
  • Edit the main.yml, locate at ansible/roles/rvm/tasks/. Before edit the your main.yml, that must look like this:
---
- name: add gpg keyserver 
  shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  sudo: false

- name: download rvm and install ruby
  shell: \curl -sSL https://get.rvm.io |  bash -s stable --ruby
  sudo: false

- name: Installing addtional packages ( nodejs... ) 
  apt: pkg={{ item }} state=present
  with_items:
    - nodejs
  • Remove the task named add gpg keyserver and the 3 following lines. After edit main.yml, that must look like this:
---
- name: download rvm and install ruby
  shell: \curl -sSL https://get.rvm.io |  bash -s stable --ruby
  sudo: false

- name: Installing addtional packages ( nodejs... ) 
  apt: pkg={{ item }} state=present
  with_items:
    - nodejs
  • Now execute vagrant provision and should finish configuring the vagrant machine.

change src strategy

Remove src submodule and add it as a clone
Adds an upstream remote when clone is done

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.