{"action":"created","issue":{"url":"https://api.github.com/repos/caktus/margarita/issues/46","labels_url":"https://api.github.com/repos/caktus/margarita/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/caktus/margarita/issues/46/comments","events_url":"https://api.github.com/repos/caktus/margarita/issues/46/events","html_url":"https://github.com/caktus/margarita/issues/46","id":89551836,"number":46,"title":"Salt 2015.5.0 Compatibility - Potential Data Loss","user":{"login":"mlavin","id":149057,"avatar_url":"https://avatars.githubusercontent.com/u/149057?v=3","gravatar_id":"","url":"https://api.github.com/users/mlavin","html_url":"https://github.com/mlavin","followers_url":"https://api.github.com/users/mlavin/followers","following_url":"https://api.github.com/users/mlavin/following{/other_user}","gists_url":"https://api.github.com/users/mlavin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlavin/subscriptions","organizations_url":"https://api.github.com/users/mlavin/orgs","repos_url":"https://api.github.com/users/mlavin/repos","events_url":"https://api.github.com/users/mlavin/events{/privacy}","received_events_url":"https://api.github.com/users/mlavin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caktus/margarita/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T12:22:38Z","updated_at":"2015-06-19T20:33:32Z","closed_at":null,"body":"There is a critical issue related to 2015.5.0. See https://github.com/caktus/django-project-template/issues/163 and https://github.com/caktus/django-project-template/pull/160. The use of\r\n`psql -U postgres template1 -c 'SHOW SERVER_ENCODING' | grep \"UTF8\"` in `/var/lib/postgresql/configure_utf-8.sh` is not compatible with the change to the `cmd` module. In the worst case this can cause an existing cluster to be dropped. This needs an immediate fix and a better way to manage the cluster encoding. Dropping the cluster and rebuilding at any point just doesn't seem reasonable."},"comment":{"url":"https://api.github.com/repos/caktus/margarita/issues/comments/113633401","html_url":"https://github.com/caktus/margarita/issues/46#issuecomment-113633401","issue_url":"https://api.github.com/repos/caktus/margarita/issues/46","id":113633401,"user":{"login":"vkurup","id":4413,"avatar_url":"https://avatars.githubusercontent.com/u/4413?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurup","html_url":"https://github.com/vkurup","followers_url":"https://api.github.com/users/vkurup/followers","following_url":"https://api.github.com/users/vkurup/following{/other_user}","gists_url":"https://api.github.com/users/vkurup/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurup/subscriptions","organizations_url":"https://api.github.com/users/vkurup/orgs","repos_url":"https://api.github.com/users/vkurup/repos","events_url":"https://api.github.com/users/vkurup/events{/privacy}","received_events_url":"https://api.github.com/users/vkurup/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T20:33:32Z","updated_at":"2015-06-19T20:33:32Z","body":"I just did a `vagrant up` (after commenting out the salt provisioning in the Vagrantfile to make the box as 'fresh' as possible):\r\n\r\n```\r\nvkurup@caktus014:~/dev/testdpt(master) $ vagrant ssh\r\n\r\nvagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get update\r\nvagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install postgresql postgresql-contrib\r\nvagrant@vagrant-ubuntu-trusty-64:~$ sudo -u postgres createdb vinod\r\nvagrant@vagrant-ubuntu-trusty-64:~$ sudo -u postgres psql -l\r\n                                  List of databases\r\n   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   \r\n-----------+----------+----------+-------------+-------------+-----------------------\r\n postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \r\n template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +\r\n           |          |          |             |             | postgres=CTc/postgres\r\n template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +\r\n           |          |          |             |             | postgres=CTc/postgres\r\n vinod     | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \r\n(4 rows)\r\n```\r\n\r\nSo, at least on Ubuntu 14.04, the encoding seems to get set correctly."}}