Hi All,
I have successfully installed Indico v3.2.5 on Ubuntu 20.04. However, as an admin user, I cannot create events or add new users. please point me to how to fix this problem. Thank you
Do you see the admin menu item in the top bar (just to confirm you are really an admin)?
Do the event creation buttons not show up? What happens when you click one of them?
Sorry, but without specific details beyond “cannot do this” / “does not work” it’s hard to help…
The URL to your instance might be helpful, too.
I see admin menu.
below is the error I am getting
2023-07-31 02:06:24,770 ERROR 1756576e74e64476 - indico.flask 'ascii' codec can't decode byte 0xc2 in position 15721: ordinal not in range(128)
Traceback (most recent call last):
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/blueprint.py", line 85, in i18n_locale_react
return _get_i18n_locale(locale_name, react=True)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/blueprint.py", line 107, in _get_i18n_locale
i18n_data = generate_i18n_file(locale_name, react=react)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/vars_js.py", line 47, in generate_i18n_file
i18n_data = get_locale_data(root_path, locale_name, 'indico', react=react)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/vars_js.py", line 29, in get_locale_data
rv = json.load(f)
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/json/__init__.py", line 133, in load
return current_app.json.load(fp, **kwargs)
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/json/provider.py", line 72, in load
return self.loads(fp.read(), **kwargs)
File "/opt/indico/.pyenv/versions/3.9.17/lib/python3.9/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
You need to make sure your system locale (LC_CTYPE
) is set to an UTF8-based one. Once you fixed than and restarted the indico-uwsgi service it should be fine.
Thank you for the feedback. I have done as directed but am still having a problem creating an event.
the output of locale is below:
root@indico:~# locale
LANG=C
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
root@indico:~#
still getting error below when I click on create event
2023-09-10 15:14:23,742 INFO 5f5cbdd97c634687 1 indico.rh GET / [IP=197.255.118.220] [PID=6693]
2023-09-10 15:14:24,791 ERROR 36b12df2b5db4e84 1 indico.flask 'ascii' codec can't decode byte 0xc2 in position 15721: ordinal not in range(128)
Traceback (most recent call last):
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/blueprint.py", line 85, in i18n_locale_react
return _get_i18n_locale(locale_name, react=True)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/blueprint.py", line 107, in _get_i18n_locale
i18n_data = generate_i18n_file(locale_name, react=react)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/vars_js.py", line 47, in generate_i18n_file
i18n_data = get_locale_data(root_path, locale_name, 'indico', react=react)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/vars_js.py", line 29, in get_locale_data
rv = json.load(f)
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/json/__init__.py", line 133, in load
return current_app.json.load(fp, **kwargs)
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/json/provider.py", line 72, in load
return self.loads(fp.read(), **kwargs)
File "/opt/indico/.pyenv/versions/3.9.18/lib/python3.9/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 15721: ordinal not in range(128)
2023-09-10 15:14:25,094 ERROR c35eb62a072442cc 1 indico.flask 'ascii' codec can't decode byte 0xc2 in position 15721: ordinal not in range(128)
Traceback (most recent call last):
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/blueprint.py", line 85, in i18n_locale_react
return _get_i18n_locale(locale_name, react=True)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/blueprint.py", line 107, in _get_i18n_locale
i18n_data = generate_i18n_file(locale_name, react=react)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/vars_js.py", line 47, in generate_i18n_file
i18n_data = get_locale_data(root_path, locale_name, 'indico', react=react)
File "/opt/indico/.venv/lib/python3.9/site-packages/indico/web/assets/vars_js.py", line 29, in get_locale_data
rv = json.load(f)
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/json/__init__.py", line 133, in load
return current_app.json.load(fp, **kwargs)
File "/opt/indico/.venv/lib/python3.9/site-packages/flask/json/provider.py", line 72, in load
return self.loads(fp.read(), **kwargs)
File "/opt/indico/.pyenv/versions/3.9.18/lib/python3.9/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 15721: ordinal not in range(128)
Make sure the locale is set for the relevant indico processes, e.g. by setting it in the systemd unit file (and doing systemctl daemon-reload
and then restarting indico-wsgi.service
)
Thank you. it is working now.
I added Environment=LC_CTYPE=en_US.UTF-8
to indico-uwsgi.service
Do the same for indico-celery.service