Skip to content
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

Lokole install blows up #2756

Closed
jvonau opened this issue Apr 28, 2021 · 1 comment · Fixed by #2757
Closed

Lokole install blows up #2756

jvonau opened this issue Apr 28, 2021 · 1 comment · Fixed by #2757
Labels
Milestone

Comments

@jvonau
Copy link
Contributor

jvonau commented Apr 28, 2021

Steps to reproduce the problem:

lokole_install True

IIAB version, OS version, hardware details:

master Ubuntu-21.04 rpi4

exception occurred during task execution.
To see the full traceback, use -vvv. The error was: UnicodeEncodeError: 'ascii' codec can't encode character '\u2014' in position 177: ordinal not in range(128) failed: [127.0.0.1] (item={'option': 'description', 'value': '"Lokole is an email service that works offline, for rural communities. With a 3G/4G modem, you can arrange to batch-upload / batch-download emails once per night — for almost no cost at all — depending on mobile data plans in your country."'}) => {"ansible_loop_var": "item", "changed": false, "item": {"option": "description", "value": ""Lokole is an email service that works offline, for rural communities. With a 3G/4G modem, you can arrange to batch-upload / batch-download emails once per night — for almost no cost at all — depending on mobile data plans in your country.""}, "module_stderr": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1619563516.5549765-137083-5628021869192/AnsiballZ_ini_file.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1619563516.5549765-137083-5628021869192/AnsiballZ_ini_file.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1619563516.5549765-137083-5628021869192/AnsiballZ_ini_file.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.ini_file', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib/python3.9/runpy.py", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib/python3.9/runpy.py", line 97, in run_module_code\n run_code(code, mod_globals, init_globals,\n File "/usr/lib/python3.9/runpy.py", line 87, in run_code\n exec(code, run_globals)\n File "/tmp/ansible_ini_file_payload_86prp13/ansible_ini_file_payload.zip/ansible_collections/community/general/plugins/modules/ini_file.py", line 336, in \n File "/tmp/ansible_ini_file_payload_86prp13/ansible_ini_file_payload.zip/ansible_collections/community/general/plugins/modules/ini_file.py", line 316, in main\n File "/tmp/ansible_ini_file_payload_86prp13/ansible_ini_file_payload.zip/ansible_collections/community/general/plugins/modules/ini_file.py", line 271, in do_ini\nUnicodeEncodeError: 'ascii' codec can't encode character '\u2014' in position 177: ordinal not in range(128)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

https://github.com/iiab/iiab/blob/master/roles/lokole/tasks/main.yml#L76-L77, making the string simpler got around the issue.

@holta
Copy link
Member

holta commented Apr 28, 2021

Somehow the EM DASH character ("\u2014") is no longer allowed here.

Presumably as a newer version of Ansible or OS starts enforcing stricter requirements going forward.

Good to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants