-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 116: ordinal not in range(128) #1276
Comments
My guess is that one of the files you added contains utf-8 characters. You may be able to work around it by setting debug = 0 in the lorax.conf file. I'm also not sure how well lorax will run in docker, since I use VMs for development. At the least it will need to be a privileged container. |
Thanks for you quicky response my docker command: docker run -ti --rm --name="rhel-8-iso-maker" --privileged -v "$(pwd):/project" -w /project registry.xxxx.xxx/xxxxx/rhel8-deployer:lorax bash my container doesn't run with systemd it cannot cause an problems ? |
As to lorax in container - we (anaconda) do that when building isos for kickstart tests. We're using podman and then the container needs to be privileged, be started under sudo, and the host must have at least two loop devices available. See here: https://github.com/rhinstaller/anaconda/blob/master/.github/workflows/kickstart-tests.yml#L211 I don't know all the details about docker but IIRC it uses a daemon that runs under root, so you may not need starting with sudo; the rest should apply. edit: The Github actions code runs on Ubuntu, the container is selected according to branch so it routinely varies between Fedora and UBI for both RHELs 8 and 9. We also sometimes do the same thing manually locally on Fedora hosts. So I think there's a good chance you can make this work for you. edit2: I'm not 100% sure but I believe our containers also do not have any systemd services started, either. |
If the package list is in sorted order the last package under pkglists/ should be the one causing the problem. Although I did try reproducing this in a podman container and was unable to make it fail by injecting utf-8 strings into the output so I'm not really sure what's going one w/o reproducing it. |
by dicotomic analyse i suspect an .rpm specfile declaration
|
Hello
i want to generate iso from RHEL 8 repositories but it fails
i'm an macos system and i use an custom rhel 8 ubi base docker image to use lorax.
I run
do you know why it's a bug ?
The text was updated successfully, but these errors were encountered: