Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
It appears when we create the foreman, gutterball and candlepin databases we might be using the default postgresql encoding for the db's vs explicitly forcing UTF8. This is causing issues during errata input:
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
/opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
caused by: (ActiveRecord::StatementInvalid) PGError: ERROR: character with byte sequence 0xe2 0x80 0x98 in encoding "UTF8" has no equivalent in encoding "LATIN1"
: UPDATE "katello_errata" SET "issued" = '2011-03-10', "severity" = '', "title" = 'strace bug fix update', "reboot_suggested" = 'f', "updated" = '2011-05-19', "description" = 'The strace program intercepts and records the system calls called and received
by a running process. It can print a record of each system call, its arguments
and its return value.
:::
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.66/lib/katello/tasks/reindex.rake:37:in `index_objects'
... skipped 19 lines
caused by: (PGError) ERROR: character with byte sequence 0xe2 0x80 0x98 in encoding "UTF8" has no equivalent in encoding "LATIN1"
... skipped 47 lines
Tasks: TOP => katello:reindex
[ lo1-padm-sat-3 ] #
I have researched several reports from your knowledge database with errata_import failing on upgrade from 6.0.8 to 6.1 but none of them correspond with the error:
caused by: (PGError) ERROR: character with byte sequence 0xe2 0x80 0x98 in encoding "UTF8" has no equivalent in encoding "LATIN1"
and it seems to be on the latest available packages. The Satellite 6.1 server cannot be used usefully at the moment as there is no errata!!!
Is this of assistance:
-bash-4.2$ psql -l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
------------+----------+----------+-----------------+-----------------+-------------------------
candlepin | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =T/postgres +
| | | | | postgres=CTc/postgres +
| | | | | candlepin=CTc/postgres
foreman | foreman | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =T/foreman +
| | | | | foreman=CTc/foreman
gutterball | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =T/postgres +
| | | | | postgres=CTc/postgres +
| | | | | gutterball=CTc/postgres
postgres | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 |
template0 | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =c/postgres +
| | | | | postgres=CTc/postgres
From the following I am not seeing an explicit UTF8 creation,
https://github.com/theforeman/puppet-foreman/blob/master/manifests/database/postgresql.pp
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2015:1911
Description of problem: It appears when we create the foreman, gutterball and candlepin databases we might be using the default postgresql encoding for the db's vs explicitly forcing UTF8. This is causing issues during errata input: /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run' /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>' caused by: (ActiveRecord::StatementInvalid) PGError: ERROR: character with byte sequence 0xe2 0x80 0x98 in encoding "UTF8" has no equivalent in encoding "LATIN1" : UPDATE "katello_errata" SET "issued" = '2011-03-10', "severity" = '', "title" = 'strace bug fix update', "reboot_suggested" = 'f', "updated" = '2011-05-19', "description" = 'The strace program intercepts and records the system calls called and received by a running process. It can print a record of each system call, its arguments and its return value. ::: /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.66/lib/katello/tasks/reindex.rake:37:in `index_objects' ... skipped 19 lines caused by: (PGError) ERROR: character with byte sequence 0xe2 0x80 0x98 in encoding "UTF8" has no equivalent in encoding "LATIN1" ... skipped 47 lines Tasks: TOP => katello:reindex [ lo1-padm-sat-3 ] # I have researched several reports from your knowledge database with errata_import failing on upgrade from 6.0.8 to 6.1 but none of them correspond with the error: caused by: (PGError) ERROR: character with byte sequence 0xe2 0x80 0x98 in encoding "UTF8" has no equivalent in encoding "LATIN1" and it seems to be on the latest available packages. The Satellite 6.1 server cannot be used usefully at the moment as there is no errata!!! Is this of assistance: -bash-4.2$ psql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ------------+----------+----------+-----------------+-----------------+------------------------- candlepin | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =T/postgres + | | | | | postgres=CTc/postgres + | | | | | candlepin=CTc/postgres foreman | foreman | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =T/foreman + | | | | | foreman=CTc/foreman gutterball | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =T/postgres + | | | | | postgres=CTc/postgres + | | | | | gutterball=CTc/postgres postgres | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | template0 | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | LATIN1 | en_GB.ISO8859-1 | en_GB.ISO8859-1 | =c/postgres + | | | | | postgres=CTc/postgres From the following I am not seeing an explicit UTF8 creation, https://github.com/theforeman/puppet-foreman/blob/master/manifests/database/postgresql.pp