<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Check to make sure you have glibc-i18n installed.  Sounds like you’re missing the locale<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#0066A1">Max DiOrio<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:9.5pt;line-height:115%;font-family:"Arial",sans-serif">Global Systems Administrator<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com]
<b>On Behalf Of </b>Felipe Westfields<br>
<b>Sent:</b> Friday, February 2, 2018 9:00 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] Database error when installing Space-Walk 2.7<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Interesting - LC_ALL *was* originally blank - here's what I got from running that export command a few times (notice how the error messages change)<br>
<br>
[root@spacewalk ~]# export LC_ALL=en-us.UTF8<br>
-bash: warning: setlocale: LC_ALL: cannot change locale (en-us.UTF8): No such file or directory<br>
-bash: warning: setlocale: LC_ALL: cannot change locale (en-us.UTF8)<br>
[root@spacewalk ~]# <br>
[root@spacewalk ~]# export LC_ALL=en-us.UTF8<br>
-bash: warning: setlocale: LC_ALL: cannot change locale (en-us.UTF8)<br>
-bash: warning: setlocale: LC_ALL: cannot change locale (en-us.UTF8)<br>
[root@spacewalk ~]# locale<br>
locale: Cannot set LC_CTYPE to default locale: No such file or directory<br>
locale: Cannot set LC_MESSAGES to default locale: No such file or directory<br>
locale: Cannot set LC_ALL to default locale: No such file or directory                                                                                                                              
<br>
LANG=en_US.UTF-8                                                                                                                                                                                    
<br>
LC_CTYPE="en-us.UTF8"                                                                                                                                                                               
<br>
LC_NUMERIC="en-us.UTF8"                                                                                                                                                                             
<br>
LC_TIME="en-us.UTF8"                                                                                                                                                                                
<br>
LC_COLLATE="en-us.UTF8"                                                                                                                                                                             
<br>
LC_MONETARY="en-us.UTF8"                                                                                                                                                                            
<br>
LC_MESSAGES="en-us.UTF8"                                                                                                                                                                            
<br>
LC_PAPER="en-us.UTF8"                                                                                                                                                                               
<br>
LC_NAME="en-us.UTF8"                                                                                                                                                                                
<br>
LC_ADDRESS="en-us.UTF8"                                                                                                                                                                             
<br>
LC_TELEPHONE="en-us.UTF8"                                                                                                                                                                           
<br>
LC_MEASUREMENT="en-us.UTF8"                                                                                                                                                                         
<br>
LC_IDENTIFICATION="en-us.UTF8"                                                                                                                                                                      
<br>
LC_ALL=en-us.UTF8                                                                                                                                                                                   
<br>
[root@spacewalk ~]# export LC_ALL="en-us.UTF8"                                                                                                                                                      
<br>
-bash: warning: setlocale: LC_ALL: cannot change locale (en-us.UTF8)                                                                                                                                
<br>
-bash: warning: setlocale: LC_ALL: cannot change locale (en-us.UTF8)                                                                                                                                
<br>
[root@spacewalk ~]# locale<br>
locale: Cannot set LC_CTYPE to default locale: No such file or directory                                                                                                                            
<br>
locale: Cannot set LC_MESSAGES to default locale: No such file or directory                                                                                                                         
<br>
locale: Cannot set LC_ALL to default locale: No such file or directory                                                                                                                              
<br>
LANG=en_US.UTF-8                                                                                                                                                                                    
<br>
LC_CTYPE="en-us.UTF8"<br>
LC_NUMERIC="en-us.UTF8"<br>
LC_TIME="en-us.UTF8"<br>
LC_COLLATE="en-us.UTF8"<br>
LC_MONETARY="en-us.UTF8"<br>
LC_MESSAGES="en-us.UTF8"<br>
LC_PAPER="en-us.UTF8"<br>
LC_NAME="en-us.UTF8"<br>
LC_ADDRESS="en-us.UTF8"<br>
LC_TELEPHONE="en-us.UTF8"<br>
LC_MEASUREMENT="en-us.UTF8"<br>
LC_IDENTIFICATION="en-us.UTF8"<br>
LC_ALL=en-us.UTF8<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Feb 2, 2018 at 6:12 AM, DiOrio, Max <<a href="mailto:Max.DiOrio@ieeeglobalspec.com" target="_blank">Max.DiOrio@ieeeglobalspec.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#1F497D">Oh, you will need to uninstall and reinstall postgres for it to use the new locale
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#1F497D"><o:p> </o:p></span></p>
</div>
<div id="m_2624626311643339781signature-x">
<p class="MsoNormal"><span style="font-size:12.0pt;color:#1F497D">Sent from <a href="http://www.9folders.com/" target="_blank">
<span style="color:#009BDF;text-decoration:none">Nine</span></a><o:p></o:p></span></p>
</div>
</div>
<div id="m_2624626311643339781quoted_header">
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#E1E1E1" align="center">
</div>
<div>
<p class="MsoNormal"><b>From:</b> Felipe Westfields <<a href="mailto:felipe.westfields@gmail.com" target="_blank">felipe.westfields@gmail.com</a>><br>
<b>Sent:</b> Thursday, February 1, 2018 10:55 PM<br>
<b>To:</b> <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
<b>Subject:</b> [Spacewalk-list] Database error when installing Space-Walk 2.7<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm installing Spacewalk on CentOS 7, Spacewalk 2.7, following the instructions on this page:<br>
<br>
<a href="https://github.com/spacewalkproject/spacewalk/wiki/HowToInstall" target="_blank">https://github.com/spacewalkproject/spacewalk/wiki/HowToInstall</a><o:p></o:p></p>
</div>
<p class="MsoNormal">I install the the necessary repos, all seems well. I run this line:<br>
<br>
pacewalk-setup-postgresql create --db spacewalk --user dbadmin --password password --address *<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">And this is the error that comes up. I ran through the install instructions twice  and gotten the same error both times.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Redirecting to /bin/systemctl start postgresql.service<br>
createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)<br>
HINT:  Use the same encoding as in the template database, or use template0 as template.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">What do I need to do to get past this error?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">FW<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>