Public bug reported:

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

** Affects: diaspora-installer (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906129

Title:
  diaspora-install needs utf-8 for postgresql in config

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/diaspora-installer/+bug/1906129/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to