live mode breaks onioncircuits

Before the last Whonix package update onioncircuits worked fine in live/persistent mode. Now in persistent mode works, live mode not.

user@host:~$ onioncircuits
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x0000783cdcfbe740 (most recent call first):

1 Like

//cc @onion_knight @Algernon

I can’t do any builds/tests currently. But when it works in persistent mode but not in live mode then it is usually related to apparmor. afaik the profile for onioncircuits does not have the attach_disconnected flag. Adding it might solve the issue.


Thanks, that gives a good lead. To translate this into actionable user advice…

You could try these three commands and report back. This has to be applied in persistent mode and then reboot into live mode.

one='/usr/bin/onioncircuits {'

two='/usr/bin/onioncircuits flags=(attach_disconnected) {'

sudo sed -i "s#$one#$two#g" /etc/apparmor.d/usr.bin.onioncircuits

If working, we’d need to send a patch upstream.

And as a stopgap, can this change be applied to /etc/apparmor.d/local/usr.bin.onioncircuits?


Onioncircuits working now.
Command 3 must be run with sudo.

1 Like