Jail stopped working after upgrade to 12.0-U6.1 with utf-8 decoding error

Description

Hi guys,

I just upgraded to TrueNAS-12.0-U6.1 today and after the reboot my jail stopped working with the following error:
" Error: [EFAULT] 'utf-8' codec can't decode byte 0xc2 in position 454: invalid continuation byte "

I tried to start it from the commnd line via iocage and this ist what it threw at me:

Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 764, in _call_
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/iocage_cli/start.py", line 60, in cli
ioc.IOCage(jail=jail, rc=rc).start(ignore_exception=ignore)
File "/usr/local/lib/python3.9/site-packages/iocage_lib/iocage.py", line 1811, in start
ioc_start.IOCStart(
File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_start.py", line 87, in _init_
raise e
File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_start.py", line 84, in _init_
self._start_jail_()
File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_start.py", line 274, in _start_jail_
self._check_dhcp_or_accept_rtadv_(ipv4=True, enable=wants_dhcp)
File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_start.py", line 1471, in _check_dhcp_or_accept_rtadv_
lambda l: not l.strip().startswith('#') and '=' in l, f.readlines()
File "/usr/local/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 454: invalid continuation byte

I already tried to boot the box with an older working Kernel like 12.0-U6 o -U5 instead but it didn't solve the issue. So I suppose some config files are messed up. Obviously the utf-8 character encoding in a python script isn't properly set - but as I am not into phython, I am not able to help myself at the moment.

I'd be grateful for a hint.

Best regads

Heinz

p.s.

this is a replica of my post https://www.truenas.com/community/threads/jail-stopped-working-after-upgrade-to-12-0-u6-1-with-utf-8-decoding-error.96741/

Problem/Justification

None

Impact

None

Activity

Show:

Rough Heinz December 10, 2021 at 4:47 PM

The problem occured due to a non-ascii character in /etc/rc.conf which was displayed as "E" but actually wasn't. It was encoded as "\xc2". Possibly this issue was created by me by copy/pasting from the Windows cmd to ssh shell.

Thanks again for finding / solving this issue in a few seconds!

 

 

Bug Clerk December 10, 2021 at 4:42 PM

Rough Heinz December 10, 2021 at 4:38 PM

Great Support! Thank you!

Waqar December 10, 2021 at 11:51 AM

15:00 UTC + 1 works with me. Please email me teamviewer credentials at waqar@ixsystems.com and we can go from there then. Thanks!

Rough Heinz December 9, 2021 at 9:13 PM

no problem, 15:00 UTC+1 would be earliest I could do - just let me know which time suits you.

Thanks,

Heinz

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

None

None

Priority

Katalon Platform

Created November 16, 2021 at 7:43 PM
Updated July 1, 2022 at 5:51 PM
Resolved December 10, 2021 at 8:01 PM
Loading...