Giter Club home page Giter Club logo

Comments (9)

alfondotnet avatar alfondotnet commented on September 26, 2024

I got it working by installing the language pack, so postgres daemon doesn't complain when starting

- name: Install Language packages
  apt: name=language-pack-en update_cache={{ update_apt_cache}} force=yes state=latest
  tags: packages

from ansible-django-stack.

jcalazan avatar jcalazan commented on September 26, 2024

Hmm...haven't seen this before. What version of Ubuntu are you running?

from ansible-django-stack.

alfondotnet avatar alfondotnet commented on September 26, 2024

It happened to me both on 'ubuntu/precise64' and 'ubuntu/trusty64'

from ansible-django-stack.

jcalazan avatar jcalazan commented on September 26, 2024

Weird, I'm on precise64 as well, I'm guessing something changed with the latest version. Will test this out later and probably pin the version as well as you mentioned. Thanks for taking a look into this!

from ansible-django-stack.

alfondotnet avatar alfondotnet commented on September 26, 2024

My problem was finally I think that LC_ALL was unset so pg_createcluster was complaining, but doing apt-get install language-pack-en solves it, but still haven't had the time to deep more into the issue, really loving your stack, has made me the life much easier learning ansible.

from ansible-django-stack.

alfetopito avatar alfetopito commented on September 26, 2024

Hey there.

I'm having the same issue, on ubuntu/trusty64.

Have tried the suggestions by @alfonsoperez , and even added couple of locale-gen. I had locale issues before, and as far as I remember, doing a locale-gen was usually enough to fix it:

- name: Install Language packages
  apt: name=language-pack-en update_cache={{ update_apt_cache}} force=yes state=latest
  tags: packages

- name: Locale (is a b****)
  locale_gen: name={{ item }} state=present
  with_items:
    - en_US  
    - en_US.UTF-8 
    - pt_BR.UTF-8
    - de_DE.UTF-8

- name: Install PostgreSQL
...

But no luck so far.

Any ideas on where to go from here?

Oh and yes, this stack is awesome @jcalazan , tks for your time putting it together :)

from ansible-django-stack.

alfondotnet avatar alfondotnet commented on September 26, 2024

Hi @alfetopito , an user pointed out this in Stack Overflow:

Running this just before vagrant up seems to do it, because vagrant copies locales from your host to the guest, so if they are not en_US you can have this problem

export LANGUAGE=en_US
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_MONETARY="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_PAPER="en_US.UTF-8"
export LC_NAME="en_US.UTF-8"
export LC_ADDRESS="en_US.UTF-8"
export LC_TELEPHONE="en_US.UTF-8"
export LC_MEASUREMENT="en_US.UTF-8"
export LC_IDENTIFICATION="en_US.UTF-8"

http://stackoverflow.com/questions/30546592/is-the-server-running-locally-and-accepting-connections-on-unix-domain-socket

from ansible-django-stack.

alfetopito avatar alfetopito commented on September 26, 2024

@alfonsoperez tks, it actually worked!
Not before I purged the previous install though.

Side note, it sucks.
I mean, this is not a complaint at you or anyone in specific, just at Vagrant and the need for this hack in order to make it work. Damn non US locales...

from ansible-django-stack.

alfondotnet avatar alfondotnet commented on September 26, 2024

Then closing!

from ansible-django-stack.

Related Issues (20)

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.