diaspora-install needs utf-8 for postgresql in config

Bug #1906129 reported by Stijn Dumon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diaspora-installer (Ubuntu)
New
Undecided
Unassigned

Bug Description

Caused by:
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.

rake aborted!
ActiveRecord::StatementInvalid: PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.
: CREATE DATABASE "diaspora_production" ENCODING = 'unicode'

after changing encoding to utf8 and adding template" template0 as first parameter
to /usr/share/diaspora/config/database.yml it all started to work ok

postgres: &postgres
+ template: template0
- encoding: unicode
+encoding: utf8

sed -i 's!encoding: unicode!encoding: unicode\n template: template0!' /usr/share/diaspora/config/database.yml

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.