Project

General

Profile

Bug #11625

zoneadm install fails: UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128)

Added by Olaf Bohlen about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
PKG (Image Packaging System)
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

I was trying to install a zone when it failed:

(597) x230:/root# zoneadm -z jenkins install     
Sanity Check: Looking for 'entire' incorporation.
       Image: Preparing at /export/zones/jenkins/root.

   Publisher: Using openindiana.org (http://pkg.openindiana.org/hipster/).
   Publisher: Using hipster-encumbered (http://pkg.openindiana.org/hipster-encumbered/).
   Publisher: Using localhostoih (http://sfe.opencsw.org/localhostoih/).
       Cache: Using /var/pkg/publisher.
  Installing: Packages (output follows)
Packages to install: 228
Mediators to change:   6
 Services to change:  12

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            228/228   42617/42617  363.2/363.2      --

PHASE                                          ITEMS
Installing new actions                   40040/61752Action install failed for 'etc/certs/CA/NetLock_Arany_(Class_Gold)_F\u0151tan\xfas\xedtv\xe1ny.pem' (pkg://openindiana.org/crypto/ca-certificates):
  UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128)
pkg: An unexpected error happened during install: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128)
ERROR: failed to install package

It is probably an issue from the pkg python3 migration:

11:55 < Agnar> hey...somehow I lost this channel
11:55 < Agnar> I got an error on hipster (recent):
11:55 < Agnar> Installing new actions                   12393/61752Action 
               install failed for 
'etc/certs/CA/NetLock_Arany_(Class_Gold)_F\u0151tan\xfas\xedtv\xe1ny.pem' 
               (pkg://openindiana.org/crypto/ca-certificates): 
               UnicodeEncodeError: 'ascii' codec can't encode character 
               '\u0151' in position 68: ordinal not in range(128)
11:56 < Agnar> I tried to install a new zone
12:17 < mnowak_> Agnar, hi, that's a result of move to Python 3 pkg. maybe 
                 rebuild of ca-certificates helps?
12:18 < Agnar> mnowak_: probably, but that's nothing I can do :)
12:19 < mnowak_> you can at least file a bug
12:21 < Agnar> of course, that's what I will do

Related issues

Copied to OpenIndiana Distribution - Bug #11636: pkg: UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128)New

Actions

History

#1

Updated by John Levon about 2 months ago

I hit a similar problem doing a distro-const build, worked around by using a UTF-8 locale
instead of 'C'

#2

Updated by Michal Nowak about 2 months ago

Here's a workaround for crypto/ca-certificates: https://github.com/OpenIndiana/oi-userland/pull/5272.

#3

Updated by Michal Nowak about 2 months ago

Michal Nowak wrote:

Here's a workaround for crypto/ca-certificates: https://github.com/OpenIndiana/oi-userland/pull/5272.

The workaround is in. Can someone try to install zone? Hopefully this was the only package with non-ASCII file names, otherwise the installation should give us the next candidate for workaround.

#4

Updated by Olaf Bohlen about 2 months ago

  • Status changed from New to Closed

(534) x230:/root# zoneadm -z jenkins install
A ZFS file system has been created for this zone.
Sanity Check: Looking for 'entire' incorporation.
Image: Preparing at /export/zones/jenkins/root.

Publisher: Using openindiana.org (http://pkg.openindiana.org/hipster/).
Publisher: Using hipster-encumbered (http://pkg.openindiana.org/hipster-encumbered/).
Publisher: Using localhostoih (http://sfe.opencsw.org/localhostoih/).
Cache: Using /var/pkg/publisher.
Installing: Packages (output follows)
Packages to install: 227
Mediators to change: 6
Services to change: 9

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 227/227 42618/42618 369.1/369.1 756k/s

PHASE ITEMS
Installing new actions 61732/61732
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Postinstall: Copying SMF seed repository ... done.
Done: Installation completed in 210.775 seconds.

Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
(535) x230:/root#

solved, thanks!

#5

Updated by Michal Nowak about 2 months ago

  • Copied to Bug #11636: pkg: UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128) added
#6

Updated by Michal Nowak about 2 months ago

Olaf, thanks for the confirmation.

Also available in: Atom PDF