You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just set up a new VM from scratch, and had a few hiccups that might be worthwhile getting updated in the documentation. Nothing I couldn't handle, but the time I spent with trial&error for a lack of resources (both in the documentation and elsewhere) could've been spent a lot better.
Following the Postgres setup without superuser permissions, I created the the two extensions pg_trgm and btree_gin by hand (as documented)...only to have weblate migrate fail on me later.
Turns out there is no weblate schema, and even if I create that by hand, weblate migrate won't use it. The fix is removing the WITH SCHEMA weblate at the end (since everything else ended up in the default public schema).
Then the Sample configuration for Apache section suggests I can pick the python version; so I installed the latest one pyenv had to offer (which is 3.11.3 as I was trying this).
Unfortunately, it seems that libapache2-mod-wsgi-py3 is linked against a specific python version (3.9 for Debian, at the time of writing), and will always look for libraries in that folder. Despite specifying both/either python-home=/home/weblate/.pyenv/versions/3.11.3 and python-path=/home/weblate/.pyenv/versions/3.11.3/lib/python3.11/site-packages (as well as combinations of WSGIPythonHome and WSGIPythonPath) it kept looking for native libraries (such as _ldap when using python-ldap) in /home/weblate/.pyenv/versions/3.11.3/lib/python3.9 (the 3.9 at the end is not a typo), which took me longer than necessary to figure out. ldd /usr/lib/apache2/modules/mod_wsgi.so prints libpython3.9.so, so installing 3.9.16 instead fixed it for me.
Last but not least, I got weblate.C023 ("System encoding is not UTF-8, processing non-ASCII strings will break") pop up in the Performance report page (but not on weblate check --deploy). Following System locales and encoding, I updated /etc/apache2/envvars and restarted everything. Only to get weblate.E034 ("The Celery process is outdated or misconfigured. Following items differ: encoding") in addition to weblate.C023.
Thats the only one I couldn't figure out yet, even after skimming through the Background tasks using Celery section and its related pages.
Looks like a machine reboot fixed this, not sure what was going on there...
[...snip...]
## The locale used by some modules like mod_dav
#export LANG=C
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale
[...snip...]
/etc/default/locale
# File generated by update-locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
With export LANG=C in /etc/apache2/envvars, only weblate.C023 shows up. But no matter what else I do, it mismatches and adds weblate.E034.
The Performance report page however shows that all encodings are utf8, except for the file encoding of the web server. So I'm not completely sure if I can just ignore those. I haven't set up the repositories yet, so I don't know if I will run into encoding issues there.
Edit: A machine reboot fixed 3. for me; so YMMV.
The text was updated successfully, but these errors were encountered:
Describe the issue
I just set up a new VM from scratch, and had a few hiccups that might be worthwhile getting updated in the documentation. Nothing I couldn't handle, but the time I spent with trial&error for a lack of resources (both in the documentation and elsewhere) could've been spent a lot better.
pg_trgm
andbtree_gin
by hand (as documented)...only to haveweblate migrate
fail on me later.Turns out there is no
weblate
schema, and even if I create that by hand,weblate migrate
won't use it. The fix is removing theWITH SCHEMA weblate
at the end (since everything else ended up in the defaultpublic
schema).pyenv
had to offer (which is3.11.3
as I was trying this).Unfortunately, it seems that
libapache2-mod-wsgi-py3
is linked against a specific python version (3.9
for Debian, at the time of writing), and will always look for libraries in that folder. Despite specifying both/eitherpython-home=/home/weblate/.pyenv/versions/3.11.3
andpython-path=/home/weblate/.pyenv/versions/3.11.3/lib/python3.11/site-packages
(as well as combinations ofWSGIPythonHome
andWSGIPythonPath
) it kept looking for native libraries (such as_ldap
when usingpython-ldap
) in/home/weblate/.pyenv/versions/3.11.3/lib/python3.9
(the3.9
at the end is not a typo), which took me longer than necessary to figure out.ldd /usr/lib/apache2/modules/mod_wsgi.so
printslibpython3.9.so
, so installing3.9.16
instead fixed it for me.Last but not least, I gotweblate.C023
("System encoding is not UTF-8, processing non-ASCII strings will break") pop up in the Performance report page (but not onweblate check --deploy
). Following System locales and encoding, I updated/etc/apache2/envvars
and restarted everything. Only to getweblate.E034
("The Celery process is outdated or misconfigured. Following items differ: encoding") in addition toweblate.C023
.Thats the only one I couldn't figure out yet, even after skimming through the Background tasks using Celery section and its related pages.
Looks like a machine reboot fixed this, not sure what was going on there...
I already tried
Steps to reproduce the behavior
Try to set up a new Weblate installation on Debian using the Apache2/WSGI method described in Configuration instructions, along with Installing on Debian and Installing from source.
Source installation because I have a few customization for file formats that cannot be configured using the UI at this point.
Expected behavior
No response
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Git checkout
Weblate versions
Weblate deploy checks
No response
Additional context
For 3., my files look like this:
/etc/apache2/envvars
/etc/default/locale
With
export LANG=C
in/etc/apache2/envvars
, onlyweblate.C023
shows up. But no matter what else I do, it mismatches and addsweblate.E034
.The Performance report page however shows that all encodings are utf8, except for the file encoding of the web server. So I'm not completely sure if I can just ignore those. I haven't set up the repositories yet, so I don't know if I will run into encoding issues there.
Edit: A machine reboot fixed 3. for me; so YMMV.
The text was updated successfully, but these errors were encountered: