Comments (9)
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.
Hmm...haven't seen this before. What version of Ubuntu are you running?
from ansible-django-stack.
It happened to me both on 'ubuntu/precise64' and 'ubuntu/trusty64'
from ansible-django-stack.
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.
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.
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.
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"
from ansible-django-stack.
@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.
Then closing!
from ansible-django-stack.
Related Issues (20)
- TravisCI check no longer showing up on PR's in GitHub. HOT 2
- SSL certificates not updating HOT 1
- Switch to log-level info as the default gunicorn log level
- Gunicorn script file is part of the `deploy` tag, but will never be re-read by Supervisor during a deployment
- Use of maintenance_off / maintenance_on files HOT 9
- Install deadsnakes team new Python Versions PPA fails HOT 1
- RabbitMQ vars and version control HOT 4
- VPS Setup: With or Without Vagrant? HOT 2
- Is the NGINX block for 500.html necessary? HOT 2
- Celery loglevel has to be in capital letters HOT 1
- Use new sample Django project HOT 3
- Remove memcached role HOT 1
- Remove security role? HOT 2
- Add a variable to define PostgreSQL version HOT 2
- Bintray has been deprecated HOT 1
- 'db_name' is undefined\ HOT 8
- Is the current "Upgrade pip" task actually doing anything? HOT 1
- What are previous users of this repo using to deploy Django? HOT 5
- 'db_name' is undefined error in Vagrant up /roles/db/tasks/main.yml task HOT 6
- Make sure branches are up to date before merging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-django-stack.