Skip to content

"LATIN1" does not match locale "en_US.UTF-8" #270

@noelmcloughlin

Description

@noelmcloughlin

Issue seen on Vagrant Ubuntu 18

[ERROR   ] Command '[u'/usr/bin/psql', u'--no-align', u'--no-readline', u'--no-psqlrc', u'--no-password', u'--dbname', u'postgres', u'-c', u'CREATE DATABASE "db1" WITH OWNER = "localUser" TEMPLATE = template0 LC_COLLATE = \'en_US.UTF-8\' LC_CTYPE = \'en_US.UTF-8\'']' failed with return code: 1
[ERROR   ] stderr: ERROR:  encoding "LATIN1" does not match locale "en_US.UTF-8"
DETAIL:  The chosen LC_CTYPE setting requires encoding "UTF8".
[ERROR   ] retcode: 1
[ERROR   ] Error connecting to Postgresql server
[ERROR   ] Failed to create database db1
[ERROR   ] Command '[u'/usr/bin/psql', u'--no-align', u'--no-readline', u'--no-psqlrc', u'--no-password', u'--dbname', u'postgres', u'-c', u'CREATE DATABASE "db2" WITH TABLESPACE = "my_space" OWNER = "remoteUser" TEMPLATE = template0 LC_COLLATE = \'en_US.UTF-8\' LC_CTYPE = \'en_US.UTF-8\'']' failed with return code: 1
[ERROR   ] stderr: ERROR:  encoding "LATIN1" does not match locale "en_US.UTF-8"
DETAIL:  The chosen LC_CTYPE setting requires encoding "UTF8".
[ERROR   ] retcode: 1
[ERROR   ] Error connecting to Postgresql server
[ERROR   ] Failed to create database db2



        ID: postgres_tablespace-my_space
    Function: postgres_tablespace.present
        Name: my_space
      Result: True
     Comment: Tablespace my_space is already present
     Started: 04:33:02.134758
    Duration: 76.869 ms
     Changes:
----------
          ID: postgres_database-db1
    Function: postgres_database.present
        Name: db1
      Result: False
     Comment: Failed to create database db1
     Started: 04:33:02.213957
    Duration: 193.199 ms
     Changes:
----------
          ID: postgres_database-db2
    Function: postgres_database.present
        Name: db2
      Result: False
     Comment: Failed to create database db2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions